404错误Web异常

问题描述:

应用程序正在向服务发送请求,但是从httpGetresponse服务url(https://prddb02:14448/service.svc)返回404错误。404错误Web异常

错误的原因是什么?

当我在网络浏览器中运行https://prddb02:14448/service.svc(dev服务器)它运行时发生证书错误,但我忽略了警告并继续前进,我能够看到wsdl文件。

我在哪里错了?请提出任何解决此问题的方法。

错误之一:

<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>

希望这将有助于人们谁将会是新的Web服务。