Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# web服务端点地址错误_C# - Fatal编程技术网

C# web服务端点地址错误

C# web服务端点地址错误,c#,C#,但我的终点仍然是 svcutil.exe。如何将服务器iis更改为我的IP?请尝试中建议的解决方案 我不确定,但我希望这个建议能对您有所帮助。您能确认您更改了正确的配置文件吗?89.212.252.73是您的iis服务器地址吗?89.212.252.73是我的测试iis服务器等等,您想不想更改消息中的地址,该消息告诉您使用svcutil生成代码?是的,此邮件:svcutil.exe。看这里: <services> <service name="WebServices.S

但我的终点仍然是

svcutil.exe。如何将服务器iis更改为我的IP?

请尝试中建议的解决方案


我不确定,但我希望这个建议能对您有所帮助。

您能确认您更改了正确的配置文件吗?89.212.252.73是您的iis服务器地址吗?89.212.252.73是我的测试iis服务器等等,您想不想更改消息中的地址,该消息告诉您使用svcutil生成代码?是的,此邮件:svcutil.exe。看这里:
<services>
    <service name="WebServices.Service" behaviorConfiguration="WebServices.ServiceBehavior">
        <!-- Service Endpoints -->
        <endpoint address="http://ip/Service.svc" binding="wsHttpBinding" contract="WebServices.IService">
            <identity>
               <dns value="localhost" />
            </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    </service>
</services>