Reputation: 6849
I am using IIS Express with a virtual directory for my MVC 3 project.
From the browser, the website works well - http://localhost:8080/VirtualDirectory/Home
etc.
But I also have designed an API that I call from another desktop tool.
The problem is that it calls to http://localhost:8080/VirtualDirectory/Api/Action
fails. It times out.
The same thing worked with Cassini web server without the VirtualDirectory from both browser and desktop tool.
Please help. What should I do? Any changes to web.config or MapRoute?
Upvotes: 1
Views: 1233
Reputation: 1652
You'll need to provide more details: Could you use Fiddler to see what's going on when issuing the POST to http://localhost:8080/VirtualDirectory/Api/Action
with your desktop client?
Which version of IIS Express are you using?
If you made any changes to the default route could you paste them in the question?
Are the browser, IIS and the desktop client on the same machine?
Upvotes: 0
Reputation: 15593
If you are using web api, you should replace 'Action' for 'Controller':
http://localhost:8080/VirtualDirectory/Api/CONTROLLER
Upvotes: 1