WCF Fehlermeldung

27/04/2009 - 17:46 von Ivan | Report spam
Hallo,

ich bekomme mit folgendem Code bei host.Open folgende Fehlermeldung:
Der ChannelDispatcher bei "http://192.168.0.113:8000/MyService" mit den
Vertràgen ""IService1"" kann seinen IChannelListener nicht öffnen.

Was könnte das sein?

Vielen Dank.
Gruss Ivan

// Returns a list of ipaddress configuration
IPHostEntry ips = Dns.GetHostEntry(Dns.GetHostName());

IPAddress _ipAddress = ips.AddressList[1];

// Create the url that is needed to specify where the service should be
started
//urlService = "net.tcp://" + _ipAddress.ToString() + ":8000/MyService";
urlService = "http://" + _ipAddress.ToString() + ":8000/MyService";

// Instruct the ServiceHost that the type that is used is a
ServiceLibrary.service1
host = new ServiceHost(typeof(ServiceLibrary.service1));
host.Opening += new EventHandler(host_Opening);
host.Opened += new EventHandler(host_Opened);
host.Closing += new EventHandler(host_Closing);
host.Closed += new EventHandler(host_Closed);

WSHttpBinding Binding = new WSHttpBinding();
Binding.TransactionFlow = false;
Binding.Security.Message.ClientCredentialType =
MessageCredentialType.UserName;
Binding.Security.Mode = SecurityMode.Message;

// Add a endpoint
host.AddServiceEndpoint(typeof(ServiceLibrary.IService1), Binding,
urlService);

// A channel to describe the service. Used with the proxy scvutil.exe tool
ServiceMetadataBehavior metadataBehavior;
metadataBehavior = host.Description.Behaviors.Find<ServiceMetadataBehavior>();
if (metadataBehavior == null)
{
// This is how I create the proxy object that is generated via the
svcutil.exe tool
metadataBehavior = new ServiceMetadataBehavior();
metadataBehavior.HttpGetUrl = new Uri("http://" + _ipAddress.ToString()
+ ":8001/MyService");
metadataBehavior.HttpGetEnabled = true;
metadataBehavior.ToString();
host.Description.Behaviors.Add(metadataBehavior);
urlMeta = metadataBehavior.HttpGetUrl.ToString();
}
host.Open();
 

Lesen sie die antworten

#1 Frank Dzaebel
27/04/2009 - 18:28 | Warnen spam
Hallo Ivan,

ich bekomme mit folgendem Code bei host.Open folgende Fehlermeldung:
Der ChannelDispatcher bei "http://192.168.0.113:8000/MyService" mit
den Vertràgen ""IService1"" kann seinen IChannelListener nicht öffnen.
Was könnte das sein?



Zum Beispiel das:

[il maestro ignoto: Windows Communication Foundation - IChannelListener
Error]
http://doubleoh2.blogspot.com/2006/...ation.html

Weitere:

["is unable to open its IChannelListener" - Suche]
http://www.google.de/search?hl=de&a...istener%22


ciao Frank
Dipl.Inf. Frank Dzaebel [MCP/MVP C#]
http://Dzaebel.NET

Ähnliche fragen