首页 文章

将System.Web.Mvc添加到\ bin会使MVC 3应用程序抛出403.14 Forbidden

提问于
浏览
0

所以我在\ bin目录中包含System.Web.Mvc dll,我得到配置错误,说它可以_1155321_尝试从服务器上安装MVC 3到运行命令的所有内容: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -ir

应用程序池设置为Asp.net v4.0集成管道 . 超级沮丧所以任何其他想法都会有所帮助 . 我已阅读SO上的所有帖子都无济于事 .

服务器是Windows 2008 Enterprise 32位 . 已安装.NET 4 .

Update :我've discovered that some role services for IIS were disabled on the server. Namely HTTPRedirection and Static Content Compression. Installing those two services allows the web app to run, but the installation actually fails and says it needs to reboot to undo the changes. After reboot, the app obviously stops working. At least I know what the issue is now. I' m要禁用服务器上的某些服务并尝试再次安装角色服务 .

1 回答

  • 0

    SOLVED! 希望这有助于其他人 . Web服务器上未安装IIS角色服务 . 该测试服务器应该与我们的开发服务器完全一样,但事实并非如此 . 无论如何, HTTP RedirectionStatic Content Compression 没有安装......在其他一些服务中 . 当我尝试安装它们时,我收到一个安装错误,需要重新启动才能回滚更改 . 我不得不卸载 Windows Process Activation Service 并重新安装 IIS . 那时,我安装ASP.NET MVC 3并运行: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -ir 现在一切正常 .

相关问题