我在本地有一个正确的ASP.NET MVC 4(.NET Framework 4.5.6)网站。它在VS 2015和Windows 7的IIS 7下运行良好。
当我将同一文件夹部署到MS WIn Server 2008 R2时,它无法正常工作,我遇到了很多错误。请检查日志。
有任何线索如何解决?
答案 0 :(得分:0)
我可以使用以下步骤修复它
%windir%\ Microsoft.NET \ Framework \ v4.0.30319 \ aspnet_regiis.exe -ir
%windir%\ Microsoft.NET \ Framework64 \ v4.0.30319 \ aspnet_regiis.exe -ir