Category Archives: Asp.net

Exception from HRESULT: 0x8007000B 异常的解决方法

今天在Asp.net里调用非托管的.dll文件时,出现“
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)”这样的错误。

解决方法:

这是由于我使用的操作系统是Windows 7 64位的,而.dll确是32位的,于是出现了这个错误。只需将网站的连接池的设置改成支持32位程序运行就可以解决问题。

ASP.NET Development Server Problems Under Vista

Today, when I use VS2008 to create a Demo WebSite and right click a page and click “View in Browser”, then firefox open, but pass a long time, it show nothing. when i use the same url in IE, it also said can not open the page.

But, when i replace “localhost” in url to “127.0.0.1”, it worked. So I thinked mybe some problem happend when it resolve “localhost” to “127.0.0.1”. So I open a file named “host” under path “C:\Windows\System32\drivers\etc”, find this line “::1             localhost”, this should be “:::1             localhost”, change it.

now it worked.

Fatal Execution Engine Error (716E7706) (80131506)

今天在用VS做一个ASP.Net项目时,也不知道做了什么操作,只要对着WEB APP的项目点击右键,整个VS就崩溃了,什么出错提示也没有,到Windows日志->应用程序里看到了这个错误:

.NET Runtime version 2.0.50727.3053 – Fatal Execution Engine Error (716E7706) (80131506)

网上找了一下,也没找到完全一样的错误解释。只能自己解决了,打开Open Visual Studio 2008 Command Prompt这个命令行窗口,输入”devenv /ResetSettings”,VS重新打开,嘿嘿,一切正常了,但是不能保证不旧病复发,果然只点了两下,又死了,而且后来更严重,打开项目就死。猜测有可能是最近安装的Svn的插件AnkhSVN引起的,卸掉再说。耶!这下完全正常了。