'<Module>' 的类型初始值设定项抛出异常,算术运算导致溢出 [英] The type initializer for &#39;&lt;Module&gt;&#39; threw an exception and Arithmetic operation resulted in an overflow

查看:33
本文介绍了'<Module>' 的类型初始值设定项抛出异常,算术运算导致溢出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同样的代码在 Windows 7 32 位上运行.但在 Windows 8 64 位中失败.有任何想法吗?谢谢

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

推荐答案

我刚刚解决了.此应用程序需要 32 位模式,因为我的 Windows 8 机器中的 IIS 默认以 64 位模式运行.对于此应用程序正在使用的 AppPool,我必须将 Enable 32-bit Applications 设置为 true.

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.

并且它没有在特定的代码行上失败.异常是在 Application_BeginRequest 和 Session_Start 之间的某个地方抛出的

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

这篇关于'<Module>' 的类型初始值设定项抛出异常,算术运算导致溢出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆