Can't access SVC files in WCF services after deployment

微笑、不失礼 提交于 2020-01-14 14:21:10

问题


I'm crying blood at the moment. What more can I do to trouble-shoot and analyse the problem?

I've deployed my WCF service layer but can't access it. In the same physical directory I that the SVC files are uploaded to, I also placed a static HTML file. The first line gets me that file, while the second complains about the resource being removed, renamed, unavailable etc.

http://MyServerName/Services/ping.html  
http://MyServerName/Services/MyService.svc

When I deployed the service layer to Azure, I got a WSDL file when accessing it. I'm pretty sure that I'm forgetting some setting on the server but I need a hint on what to look for.

The files are there so the publish process works. The same problem occurs if I try to access the services directly on the server using localhost. Suggestions are welcome.

EDIT

I ran aspnet_regiis.exe -iru as suggested here and here. I also went through all the settings I could find and I've made sure that WAS is on and that .NET Framework is checked.

I followed this guide too, in order to make sure that I haven't overlooked anything. According to it, I didn't - everything was already set up as suggested.

Two system services are stopped (ASP.NET State Service and Web Management Service) but as far I can see, they aren't the problem.

Apparently, the handlers seem to be configured properly as well as the screenshot illustrates. The error message is also included.


回答1:


Things to check:

  1. Handlers for svc extension on IIS side.
  2. .Net runtime version for the app pool.


来源:https://stackoverflow.com/questions/17786507/cant-access-svc-files-in-wcf-services-after-deployment

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