Unable to load DLL '*.dll': 内存位置访问无效。


dotNET开发中遇到的错误提示如下:

Unable to load DLL '*.dll': 内存位置访问无效。 (Exception from HRESULT: 0x800703E6)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.DllNotFoundException: Unable to load DLL 'ken.dll': 内存位置访问无效。 (Exception from HRESULT: 0x800703E6)


可以说它一直困扰着我:同样的机器,同一张安装盘,却有一个机器出现这个问题。现在我仍然不知道这是为什么?但好在已知道如何解决它!

“我的电脑”->“属性”->“高级”->“性能”->“设置”->“数据执行保护”
选中“只为关键Windows程序和服务启用数据执行保护”,确定后重启计算机。

原文地址:https://www.cnblogs.com/zhaoguan_wang/p/1168803.html