在 IIS Express 中托管 WCF 服务时出现问题

发布于 2024-10-27 19:11:11 字数 406 浏览 4 评论 0原文

我们正在尝试在 IIS Express 7.5 (7.5.1046) 中托管 WCF 服务。 IIS Express 正确启动,但在尝试连接到 .svc 文件时,出现异常,并显示消息“无法加载 DLL 'nativerd.dll':找不到指定的模块。(来自 HRESULT 的异常:0x8007007E)” 。

我们已经搜索了这个 dll,它位于 %WINDIR%\system32\inetsrv\nativerd.dll。我们使用的 applicationHost.config 文件基于 IIS Express 安装在用户目录中的模板。

该系统采用Windows 7作为操作系统,并配置了Visual Studio 2010 SP 1和IIS 7.5来运行WCF应用程序。

有人遇到过同样的问题吗?也许IIS对IIS Express安装有影响?

We are trying to host a WCF service in IIS Express 7.5 (7.5.1046). IIS Express starts correctly, but when trying to connect to our .svc file, we get an exception with the message "Unable to load DLL 'nativerd.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)".

We have searched for this dll and it is present at %WINDIR%\system32\inetsrv\nativerd.dll. The applicationHost.config file that we are using is based on the templates that IIS Express install in the user´s directory.

The system has Windows 7 as operating system, with Visual Studio 2010 SP 1 and IIS 7.5 configured to run WCF applications.

Anyone has experienced this same issue? Maybe IIS has any influence in IIS Express installation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦屿孤独相伴 2024-11-03 19:11:11

在比较 IIS Express 的正常安装和失败的安装后,我们注意到问题在于用户的主目录中没有包含一些配置文件的“IISExpress\config”文件夹。仅在安装 IIS Express 的用户的主目录中创建此文件夹。只需将“config”文件夹复制到“My Documents\IISExpress”中其他用户的主目录中,我们就可以运行 Web 服务而不会出现其他问题。

希望这对其他可能遇到同样问题的人有所帮助。

After comparing a working installation of IIS Express and the one that one was failing, we have noticed that the problem was that in the user´s home directory there wasn´t an "IISExpress\config" folder with some configuration files. This folder is created only in the home directory of the user who installed IIS Express. Just copying the "config" folder to the home directory of the other user in "My Documents\IISExpress" we have been able to run the web service without further problems.

Hope this helps to other who could experience this same issue.

流星番茄 2024-11-03 19:11:11

就我而言,WCF 项目正常打开,然后突然出现此错误(也使用 IIS Express)。

Web 菜单下的项目属性中更改 port 后问题得到解决。

更改自:

http://localhost:50206/

至:

http://localhost:50207/

刚刚向端口添加了 1。无法确切说明为什么会发生这种情况,在此之前,我什至尝试删除“我的文档”中的 bin 和 obj 文件夹、IISExpress 文件夹,上述解决方案都没有帮助我,尽管它帮助了其他人。

我希望有一天这可以帮助别人。

In my case, the WCF project was being opened normally, then suddenly this error started (using IIS express as well).

Problem solved after changing the port in project Properties, under Web menu.

Changed from:

http://localhost:50206/

To:

http://localhost:50207/

Just added 1 to the port. Can't tell exactly why this happened, before that I tried even deleting bin and obj folders, IISExpress folder in My Documents, and neither the above solution helped me, though it helped others.

I hope this help someone one day.

月光色 2024-11-03 19:11:11

我认为当您升级 IIS Express 时,它不会在您的 applicationhost.config 文件中添加一些条目。我移动了移动配置文件夹并重新运行了我的网络项目,然后它就被修复了

I think that when you upgrade IIS express it doesn't add some entries into your applicationhost.config file. I moved move config folder and re-ran my web project then it was fixed

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文