2017-06-21 10 views
0

Ich habe einfach. Net-WCF-Dienst, der auf dem Apache und mod-mono funktioniert. wenn ich Dienst wie https://localhost/Myservice.svc Zugriff funktioniert es einwandfrei, aber wenn ich wie https://my.server.net/Myservice.svc zugreifen (auch aus dem gleichen Computer) Ich sehe Ausnahme selbst versuche ich Wsdl von ServiceZugriff auf .net-WCF-Dienst auf dem Apache (Mono)

System.InvalidOperationException 
HttpListenerContext does not match any of the registered channels 

Description: HTTP 500.Error processing request. 

Details: Non-web exception. Exception origin (name of application or object): System.ServiceModel. 
Exception stack trace: at 
System.ServiceModel.Channels.Http.HttpListenerManager.ProcessNewContext (System.ServiceModel.Channels.Http.HttpContextInfo ctxi) [0x0000e] in <e281f37e433a4b9291b04f8a9c25b68f>:0 at System.ServiceModel.Channels.SvcHttpHandler.ProcessRequest (System.Web.HttpContext context) [0x00060] in <e281f37e433a4b9291b04f8a9c25b68f>:0 at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext() [0x00dd7] in <d3ba84a338d241e2ab5397407351c9cd>:0 at System.Web.HttpApplication.Tick() [0x00000] in <d3ba84a338d241e2ab5397407351c9cd>:0 Version Information: 4.6.1 (tarball Fri Oct 21 13:04:27 CEST 2016); ASP.NET Version: 4.0.30319.42000 Powered by Mono 
+0

Also, was ist deine Frage? Was hast du bisher versucht? – DarkCygnus

+0

@GrayCygnus Meine Frage ist, wie ich meinen Dienst für voll qualifizierte DNS-Namen ausführen und diese Ausnahme vermeiden. Ist dieses Problem von Apache Config oder Problem meiner Anwendung? Ich habe meinen Dienst im IIS überprüft, es funktioniert ordnungsgemäß. Ich weiß gar nicht, was ich ändern kann. –

Antwort

0

Änderung

Anwendungsausnahme zu beantragen die Web.config

<serviceHostingEnvironment multipleSiteBindingsEnabled="false" /> 

Und

<endpoint address="http://server.com/"