Cannot get IIS7 to work with my MVC Site
Okay I've read the other StackOverflow postings, forum posts on MSDN, everywhere. I CANNOT get this to work for the life of me.
Here is what I have setup.
In IIS7.0 - Default Si开发者_如何学运维te in ASP.NET v4.0 App Pool - C:\Inetpub\wwwroot as the physical path
I published my MVC2 site in VS2010 to the Default Site path, it succeeded.
Here are the settings for that: - Same App Pool - C:\Inetpub\wwwroot\PerfectSchedule as the physical path - Default Document is Views/Home.mvc
I open the URL in my IE browser - http://localhost/ --> just gives me the Apache "It works!" page - http://localhost/PerfectSchedule --> The WebPage cannot be found - http://perfectschedule/ --> Internet Explorer cannot display the webpage
WHAT AM I DOING WRONG?!?!
Apache "It works!"
And this is IIS7 you say? Looks like a BIG clue. Perhaps you have Apache running on port 80? Try killing Apache and restarting W3SVC.
精彩评论