Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem hosting WCF service in 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?

like image 424
Jose Antonio Avatar asked Mar 30 '11 16:03

Jose Antonio


2 Answers

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.

like image 116
Jose Antonio Avatar answered Sep 20 '22 12:09

Jose Antonio


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.

like image 25
Alisson Reinaldo Silva Avatar answered Sep 20 '22 12:09

Alisson Reinaldo Silva