的类型初始'<模块>“抛出异常和算术运算导致溢出 [英] The type initializer for '<Module>' threw an exception and Arithmetic operation resulted in an overflow

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

问题描述

同样的code运行在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

推荐答案

我只是解决了它。此应用程序需要的地方作为IIS在我​​的Windows 8机器默认运行在64位模式32位模式。我必须设置启用32位应用程序以适用于该应用程序正在使用的程序池。

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.

和它没有失败在code特定行。唯一的例外是地方抛出的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

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

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