Removing .pdb from ASP.NET app on IIS breaks application

蹲街弑〆低调 提交于 2019-12-11 00:35:38

问题


I'm trying to deploy an ASP.NET MVC 4 application to IIS 8. When built with Debug mode selected in VS 2012, the application runs fine on IIS. However, when Release mode is selected, the application gives a yellow screen with a 404 error and something about the path not implementing IController.

I found out that adding the .pdb debug symbols to the bin/ folder on IIS, the application starts working fine.

Does anyone know why this is happening? I've played around with the Release mode build settings in VS, but to no avail.


回答1:


Turns out I was using the StackFrame class, which of course doesn't work without the debug symbols present. Switched to using the CallerMemberName attribute in .NET 4.5 and everything is working fine now!



来源:https://stackoverflow.com/questions/15664008/removing-pdb-from-asp-net-app-on-iis-breaks-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!