Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
默认执行的文件是什么?也许您应该将主页文件添加到 ISS 的列表中? Default.aspx 应该作为默认值在那里。
What is the default file that is executed? Maybe you should add your homepage file to the list in ISS? Default.aspx should be in there as default.
可能是服务器上没有安装MVC。请参阅有关执行 BIN 部署的这些说明(基本上是将 MVC 运行时 dll 复制到 bin 目录中)。
http://haacked.com/ archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx
新的
AddDeployableDependencies
功能非常漂亮 凉爽的!编辑:另一种可能性是 IIS 安装因某种原因损坏或
web.config
有错误。有关更多信息,请参阅此问题的所有不同答案:无法在 IIS 7.5 上运行 ASP.NET MVC 2 Web 应用It could be that MVC is not installed on the server. See these notes about doing a BIN deploy (basically copying the MVC runtime dlls into the bin directory).
http://haacked.com/archive/2011/05/25/bin-deploying-asp-net-mvc-3.aspx
The new
AddDeployableDependencies
functionality is pretty cool!EDIT: Another possibility is that the IIS installation is somehow corrupted or the
web.config
has errors. See all the different answers to this question for more: Can't run ASP.NET MVC 2 web app on IIS 7.5