2017-01-16 2 views
0

Ich frage mich, warum in derselben Maschine localhost: 1988/MyService.svc? WSDL reagiert, während http://myMachineIp:port/MyService.svc nicht funktioniert.Fehler beim Zugriff auf remote WCF-Dienst von Xamarin android

habe ich versucht IIS Express Konfigurieren von Remote-Verbindungen zu akzeptieren, indem applicationhost Datei als

<bindings> 
    <binding protocol="http" bindingInformation="*:1988:localhost" /> 
    <binding protocol="http" bindingInformation="*:1989:MyMachineIP" /> 
</bindings> 

und führen Sie diesen Befehl in Prompt

netsh http add urlacl url=http://MyMachineIP:1989/ user=everyone 

und auch Setup-Firewall

netsh advfirewall firewall add rule name="IISExpressMyApplication" dir=in protocol=tcp localport=1989 profile=private remoteip=localsubnet action=allow 

Was muss ich noch einrichten?

Ich versuche, WCF-Dienstanforderung von Xamarin Android-Anwendung zu verbinden, die in realen Gerät, aber nicht in Emulator ausgeführt wird.

Vielen Dank.

Grüße Ishwor

Antwort

Verwandte Themen