Problem running MVC3 app in IIS 7
Posted
by
mjmoore99
on Server Fault
See other posts from Server Fault
or by mjmoore99
Published on 2011-02-20T20:51:50Z
Indexed on
2011/02/20
23:26 UTC
Read the original article
Hit count: 161
iis7.5
|asp.net-mvc
I am having a problem getting a MVC 3 project running in IIS7 on a computer running Windows 7 Home-64 bit. Here is what I did.
- Installed IIS 7.
- Accessed the server and got the IIS welcome page.
- Created a directory named d:\MySite and copied the MVC application to it. (The MVC app is just the standard app that is created when you create a new MVC3 project in visual studio. It just displays a home page and an account logon page. It runs fine inside the Visual Studio development server and I also copied it out to my hosting site and it works fine there)
- Started IIS management console.
- Stopped the default site.
- Added a new site named "MySite" with a physical directory of "d:\Mysite"
- Changed the application pool named MySite to use .Net Framework 4.0, Integrated pipeline
When I access the site in the browser I get a list of the files in the d:\MySite directory. It is as if IIS is not recognizing the contents of d:\MySite as an MVC application.
What do I need to do to resolve this?
© Server Fault or respective owner