0

大家好,当我通过 ISS 发布我的网站时,我收到此错误,如下所示

Server Error in '/WebCity' Application.
--------------------------------------------------------------------------------

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

Requested URL: /WebCity/Views/Home/Index.cshtml
4

1 回答 1

1

This bit:Requested URL: /WebCity/Views/Home/Index.cshtml表示它正在寻找不应该的特定 URL。

即看起来你已经导航到http://domain.com/WebCity/Views/Home/Index.cshtml而不是只是http://domain.com/WebCity/或任何它应该是。

您在浏览器中输入了错误的 URL,或者服务器上未安装 MVC 框架。

如果没有安装框架,请不要担心。请参阅此处了解 Phil Haack 的说明bin deployhttp ://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx

于 2012-08-22T12:49:38.297 回答