简体   繁体   中英

ASP.Net MVC2 - IIS7.5 doesn't find view file for home page

We have a mid-sized asp.net project that we just promoted from our dev server (Windows 2003) to an external test server (Windows 2008 R2).

On the test server, IIS is not finding our home page, which is located in the views/home folder (404 error). As far as we can tell, the settings are the same on both servers. I've confirmed HTTP redirection is installed.

Is there perhaps some critical configuration we may have missed on IIS7.5 to let it know where to find the view and/or home page?

What do you mean by "not finding"? Are you getting 404 error?

I had a similar situation which was related with bad install of ASP.NET on windows 7 machine, so I would recommend you to:

  1. Check if ASP.NET is installed on server
  2. Run aspnet_regiis to check that ASP.NET correctly registered with IIS

我们将4个经典版的应用程序池更改为4个,似乎解决了404问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM