问题描述
- 无法在 DLL“advapi32.dll”中 入口点。
-
无法在 DLL“advapi32.dll”中找到名为“EventSetInformation”的入口点。在安装完vs2015之后 在用2010编译项目时,一旦有数据库调用的情况(考虑是"mscorlib"这里有问题)就会产生
“无法在 DLL“advapi32.dll”中找到名为“EventSetInformation”的入口点。” 的异常
System.Exception {System.EntryPointNotFoundException}
堆栈信息:
在 Microsoft.Win32.UnsafeNativeMethods.ManifestEtw.EventSetInformation(Int64 registrationHandle, EVENT_INFO_CLASS informationClass, Void* eventInformation, Int32 informationLength)
在 System.Diagnostics.Tracing.EventProvider.SetInformation(EVENT_INFO_CLASS eventInfoClass, Void* data, Int32 dataSize)怀疑方向有:安装vs2015时是不是对net4.0一下的什么东西做了修改?还是32位或64位的调用错误?
有大神吗求破解!!!
解决方案
2010的代码跟2015不兼容了,一些API有变化了,你需要把你调用数据库的代码用2015的类库
解决方案二:
就是vs2010开2010的代码,在安装完2015后就不行了,并没有用2015打开过任何东西并运行。。。
时间: 2024-09-17 04:52:59