404 file or directory not found in wcf?

Why am I getting 404 file or directory not found issue in WCF?

I have a client system with two IP addresses, one of them is local and the other is global. I published the files using the local IP address.

I get results, but using global IP, I get a 404 file or directory not found error.

What causes this?

+4
source share
2 answers

Ensure that the Windows Communication Foundation HTTP / Non-HTTP activation activation is enabled for the .Net structure in the Windows Features.

To enable it, go to the "control panel" → click "Programs and Features" / "Add / Remove Programs" → click "Enable or Disable the Windows Function" → from the list of "Microsoft" .NET framework 3.5.1 (/ your version) '-> check both “activation of the Windows Communication Foundation HTTP connection” and “activation of the Windows Communication Foundation HTTP connection” → click “OK”.

I hope this was helpful.

+8
source

Check wcf configuration. Perhaps your service is published only at the local address.

for example, if you have a line that looks something like this:

 <endpoint address="http://localhost/test" binding="wsHttpBinding" contract="WCF4Configuration.IEchoService"/> 

Pay attention to localhost

0
source

Source: https://habr.com/ru/post/1399519/


All Articles