Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Exception thrown: 'System.Net.WebException' in System.dll The remote name could not be resolved:

$
0
0

I have a WCF Service hosted in IIS on a Windows 10 IoT Enterprise machine on a private network (no domain). When i make calls to my service from the client it is unable to resolve my computer name as it is on my companies domain.Is there a way to tell WCF to use the ip of the incoming request? Using the local hosts file is a non starter.

Currently site binding are IP: *, Host Name: "", Port:80.

Service Model Config:

<system.serviceModel><protocolMapping><remove scheme="http" /><add scheme="http" binding="wsDualHttpBinding" bindingConfiguration="CamWindowBinding"/><remove scheme="net.tcp" /></protocolMapping><services><service name="CompanyName.EIVisionServer"><endpoint address="&quot;&quot;" binding="wsDualHttpBinding"
          bindingConfiguration="CamWindowBinding" name="EICamWindowEndpoint"
          contract="CompanyName.Vision.Services.IEICamWindowContract" /><endpoint address="&quot;&quot;" binding="wsDualHttpBinding"
          bindingConfiguration="CamWindowBinding" name="CC24Endpoint"
          contract="CompanyName.Vision.Services.ICC24ServiceContract" /><host><baseAddresses><add baseAddress="http://192.168.1.200/EIVisionServer/" /></baseAddresses></host></service></services><bindings><wsDualHttpBinding><binding name="CamWindowBinding" receiveTimeout="24.20:31:23.6470000"
          maxReceivedMessageSize="2147483647" messageEncoding="Mtom"><readerQuotas maxArrayLength="2147483647" /><reliableSession inactivityTimeout="24.20:31:23.6470000" /><security mode="None"><message clientCredentialType="None" /></security></binding></wsDualHttpBinding></bindings><client><endpoint address="http://192.168.1.200/EIVisionServer.svc" binding="wsDualHttpBinding"
     bindingConfiguration="CamWindowBinding" contract="CompanyName.Vision.Services.IEICamWindowContract"
     name="EICamWindowEndpoint" /><endpoint address="http://192.168.1.200/EIVisionServer.svc" binding="wsDualHttpBinding"
     bindingConfiguration="CamWindowBinding" contract="CompanyName.Vision.Services.ICC24ServiceContract"
     name="CC24Endpoint" /></client><behaviors><serviceBehaviors><behavior name=""><useRequestHeadersForMetadataAddress><defaultPorts><add scheme="http" port="80" /></defaultPorts></useRequestHeadersForMetadataAddress><serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" /><serviceDebug includeExceptionDetailInFaults="true" /></behavior></serviceBehaviors></behaviors><serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /></system.serviceModel>

Thanks,

Ryan


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>