This is my web.config for nettcpbinding : <system.serviceModel>
<services> <service behaviorConfiguration="wcfNetTcpService.Service1Behavior" name=" wcfNetTcpService.Service1"> <endpoint address="" binding="wsHttpBinding" contract=" wcfNetTcpService.IService1"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange "/> </service> <service behaviorConfiguration="wcfNetTcpService.wcfNetTcpBehavior" name=" wcfNetTcpService.wcfNetTcp"> <endpoint address="" binding="netTcpBinding" bindingConfiguration="" contract="wcfNetTcpService.IwcfNetTcp"> <identity> <dns value="localhost"/> </identity> </endpoint> <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange"/> <host> <baseAddresses> <add baseAddress="net.tcp://localhost:3409/wcfNetTcp"/> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="wcfNetTcpService.Service1Behavior"> <serviceMetadata httpGetEnabled="false"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> <behavior name="wcfNetTcpService.wcfNetTcpBehavior"> <serviceMetadata httpGetEnabled="false"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel> i'm gatting this error. Server Error in '/' Application. ------------------------------ *Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].* *Description: *An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. *Exception Details: *System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]. *Source Error:* An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. *Stack Trace:* [InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].] System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +11608615 System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress) +11606108 System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection) +55 System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, String configurationName) +35 System.ServiceModel.ServiceHostBase.ApplyConfiguration() +69 System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +190 System.ServiceModel.ServiceHost.InitializeDescription(Type serviceType, UriSchemeKeyedCollection baseAddresses) +32 System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +139 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +28 System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +331 System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +11656092 System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42 System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479 [ServiceActivationException: The service '/wcfNetTcp.svc' cannot be activated due to an exception during compilation. The exception message is: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]..] System.ServiceModel.AsyncResult.End(IAsyncResult result) +11527290 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +278 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 ------------------------------ *Version Information:* Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 please let me know if anyone got this kind of error. ---------- Forwarded message ---------- From: Vivek SHANTHARAM <[email protected]> Date: Tue, May 12, 2009 at 9:48 PM Subject: [DotNetDevelopment] Re: how can use nettcpbinding with wcf To: [email protected] http://msdn.microsoft.com/en-us/library/ms734712.aspx SUggest you to read through this excellent link. On Tue, May 12, 2009 at 12:26 PM, Anil Sharma <[email protected]>wrote: > Hi to All, > I would like to inform you that i'm developing one application using > wcf with Nettcpbinding but i'm getting *'The protocol 'net.tcp' is not > supported.* ' this error when i browse wcf service so please tell me how > can i implement wcf service with nettcpbinding or anybody this kind of error > and wht's requiremet for this. > > > Thansks > > Anil Sharma > >
