404 Error Web Exception

时间:2015-12-14 18:04:41

标签: asp.net web-services wcf wcf-security system.net.webexception

the application is sending request to service but from httpGetresponse service url (https://prddb02:14448/service.svc) it returns 404 error.

What can be the reason for the errors?

When i run the https://prddb02:14448/service.svc(dev server) in web browser it runs giving certificate error but i ignore the warning and go ahead and i am able to see the wsdl file.

Where am i going wrong?Please suggest any ways to tackle this issue.

1 个答案:

答案 0 :(得分:0)

错误之一:

<endpoint address="json" binding="webHttpBinding" contract="Contract.IService" behaviorConfiguration="web" bindingConfiguration="webHttpBinding"></endpoint>

正确的一个 <endpoint address="" binding="webHttpBinding" contract="Contract.IService" behaviorConfiguration="web" bindingConfiguration="webHttpBinding"></endpoint>

希望它能帮助那些不熟悉网络服务的人。