The type initializer for '<Module>' threw an exception and Arithmetic operation resulted in an overflow

半腔热情 提交于 2019-12-11 11:35:36

问题


The same code runs in Windows 7 32 bit. But fails in windows 8 64 bit. Any ideas? Thanks


回答1:


I just resolved it. This application requires 32-bit mode where as the IIS in my Windows 8 machine runs in 64-bit mode by default. I had to set Enable 32-bit Applications to true for the AppPool this application is using.

and it was not failing on a specific line of code. The exception was thrown somewhere between Application_BeginRequest and Session_Start



来源:https://stackoverflow.com/questions/27805312/the-type-initializer-for-module-threw-an-exception-and-arithmetic-operation

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