简体   繁体   中英

Can't access SVC files in WCF services after deployment

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.

在此输入图像描述

在此输入图像描述

Things to check:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM