Problem hosting WCF service in IIS Express

筅森魡賤 提交于 2019-12-01 16:01:30
Jose Antonio

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.

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!