DllNotFoundException:无法加载DLL“nativrd2.dll”:找不到指定的模块。 (来自HRESULT的异常:0x8007007E)

时间:2013-12-19 13:53:46

标签: c# asp.net .net wcf dll

我最近在.NET MVC应用程序中将.NET框架从4.0升级到4.5.1。我的项目中有一个wcf Web服务,现在我的IIS 7似乎不再喜欢我的wcf服务了。当我尝试连接到它时,在浏览器中使用soapUI或url,它将重新路由到我的常规登录页面。

我在事件日志中收到此错误。

WebHost failed to process a request.
 Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/60493796
 Exception: System.DllNotFoundException: Unable to load DLL 'nativrd2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
 Process Name: w3wp
 Process ID: 2852

由于

1 个答案:

答案 0 :(得分:0)

也许我不清楚尝试嵌入资源'nativrd2.dll'

你必须通过VS找到资源文件,然后右键单击文件名 - >属性 - >构建行动 - >嵌入资源