Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have got this error when i run my wcf project:

System.InvalidOperationException: Impossible de trouver une adresse de base qui correspond au schéma net.tcp pour le point de terminaison avec la liaison NetTcpBinding. Les schémas d’adresse de base inscrits sont [http].
à System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses)
à System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress)
à System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection)
à System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, String configurationName)
à System.ServiceModel.ServiceHostBase.ApplyConfiguration()
à System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)
à System.ServiceModel.ServiceHost.InitializeDescription(Type serviceType, UriSchemeKeyedCollection baseAddresses)
à System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
à Microsoft.Tools.SvcHost.ServiceHostHelper.CreateServiceHost(Type type, ServiceKind kind)
à Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService(ServiceInfo info)





If any one have solution please help me
Posted

If you haven't already done so, I recommend downloading ".Net Reflector" from www.redgate.com/products/reflector/index.htm[^], and then using it to study some of the classes that are referenced in the stack trace you included.

(Roughly) translating the French, the exception is saying that the system couldn't find a base address that corresponds to the net.tcp schema; it finishes by saying that the included (available? valid?) schema base addresses are http.

You need to study the ServiceInfo, ServiceHostHelper and ServiceHostBase objects' documentation to understand what is meant by 'base address.' This will be the key to understanding the exception.

At a guess, the WCF server is only exposing services via the HTTP protocol and your client is asking for TCP-based services. But that's a big guess since I've never used WCF!
 
Share this answer
 
It's a configuration error. The endpoint your client is using isn't compatible with any endpoints implemented for the service itself.
 
Share this answer
 
when i change the configuration of endpoint from NetTcpBindind to wsHttpBinding my project work without any problem
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900