Search code examples
asp.net-mvciisconfigurationiis-5

Cannot host ASP.NET MVC application in IIS


I have created a virtual directory on the IIS (IIS 5.1 that's what i'm using). when i try t o run the applciation from my browser using the URL

http://localhost/sitename .

i'm able to see the initial landing page . But when i force a controller action call like this .

http://localhost/controllername/actionMethodName

i receive the 404(file not found error). But when i'm running the application from the asp.net development server (intergrated with VS ) everyhting works fine.

what may be the reason. i have set impersonate in web.config and enabled anonymous access in the IIS .

any thoughts/ suggestions

thanks,

vijay


Solution

  • Have you tried http://localhost/sitename/controllername/action?

    Edit: You could try these solutions: