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

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

问题描述

相同的代码在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,我必须将启用32位应用程序"设置为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

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

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