InvalidProgramException:公共语言运行库检测到无效的程序 [英] InvalidProgramException: Common Language Runtime detected an invalid program

查看:1690
本文介绍了InvalidProgramException:公共语言运行库检测到无效的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有,

我运行到麻烦部署ASP.NET 4.0的网页。该错误是

I'm running into trouble deploying an ASP.NET 4.0 web page. The error is

System.InvalidProgramException:公共语言运行库检测到无效的程序

System.InvalidProgramException: Common Language Runtime detected an invalid program

该错误的IIS7发生在64位Windows Server中。在同一页面上工作IIS7在我的发展中(32位的Windows 7),并在Visual Studio开发环境。我不知道在IIS7配置中的任何差异。

The error occurs on IIS7 on a 64 bit Windows Server box. The same page works on IIS7 on my development box (32bit Windows 7) and in the Visual Studio Development Environment. I'm not aware of any differences in the IIS7 configuration.

我使用PEVerify验证DLL的应用程序的bin目录。

I've used PEVerify to validate the dll's in the application's bin directory.

我可以通过使用实体框架查询来填充DataGrid.DataSource重现该问题。这是不是一个特别沉重的查询。

I can reproduce the problem by using an Entity Framework query to populate a DataGrid.DataSource. It is not a particularly heavy query.

这是什么可能会导致此任何想法?我的下一步是尝试使用简单的查询。

Any ideas on what could be causing this? My next step is to try and simply the queries used.

感谢您的帮助。

推荐答案

这看起来是由于decimal类型的主键(1,0)。

This looks like it's due to a primary key of type decimal(1,0).

这篇关于InvalidProgramException:公共语言运行库检测到无效的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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