question

Box57-3624 avatar image
0 Votes"
Box57-3624 asked ryanchill edited

Azure App Service WCF Service 404

I am testing the migration of a WCF service hosted on IIS 8.5 to an Azure App Service. The WCF service loads and WSDL is accessible but I receive a 404 when sending a request. A virtual directory is used for the hosted service.

The error is: "There was no channel actively listening at 'https://xxxx.azurewebsites.net/VirtualDirectory/Service.svc/method?string'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening."

It appears the trailing forward slash after the "Service.svc" is the issue as the App Service is looking for a matching physical path. I have attached a screenshot of the detailed error message.

Any ideas on how to support this within an Azure App Service?

89323-capture.jpg

azure-webapps-development
capture.jpg (60.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking in to see if you have chance to see below response. Let us know if further query or issue remains.

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered Box57-3624 commented

Thanks for asking question. You may try specifying the security mode in the webHttpBinding tag.

Check: WCF webservice doesn’t respond via HTTPS when hosted in Microsoft Azure.

Refer to this query: https://docs.microsoft.com/en-us/answers/questions/8732/calling-my-svc-which-is-hosted-inside-azure-app-se.html

Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.



· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @SnehaAgrawal-MSFT the solution solved the problem.

0 Votes 0 ·

Glad to know it helped. If this answers your query, do click “Accept Answer” and Up-Vote for the same as this will help the community finding answer fast.

0 Votes 0 ·