Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 27, 2012 08:58 AM by tahazubairahmed
Participant
887 Points
798 Posts
Jun 21, 2012 09:35 AM|LINK
Hi
i want to call the NET TCP service in browsers (Exmaple: net.tcp://localhost/Services/Service.svc)
After this i want to call this service at client end
I am successfully upload the service in IIS using (works with BasicHTTPBinding but not work with NETTCPBinding)
Further i am also set the following things
References: http://galratner.com/blogs/net/archive/2010/10/08/setting-up-a-nettcpbinding-enabled-wcf-service-in-iis-7.aspx
but unable to browse the net.tcp service on browser
here is a service config file
<service name="Service" behaviorConfiguration="MyBehav"> <!--<endpoint name="WCFHTTPBinding" address="" contract="IService" binding="basicHttpBinding" bindingConfiguration="portSharingBinding" />--> <endpoint name="WCFNETTCPBinding" address="" contract="IService" binding="netTcpBinding" bindingConfiguration="portSharingBinding"/> <host> <baseAddresses> <add baseAddress="net.tcp://localhost:808/Services/Service.svc" /> </baseAddresses> </host> </service> </services> <bindings> <netTcpBinding> <binding name="portSharingBinding" portSharingEnabled="true"/> </netTcpBinding> </bindings>
Please advice
All-Star
15346 Points
3142 Posts
Jun 21, 2012 09:56 AM|LINK
in IIS when you click on the application does it show you the link to browse with net.tcp ? meaning its configured successfully .
whats the error you are getting ?
Jun 21, 2012 10:22 AM|LINK
It browse only when i set
When i use basicHttpBinding binding in endpoint instead of netTcpBinding
While if i Add / Change the binding name basicHttpBinding to netTcpBinding it gives me error.
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
Further if i also change the baseAddress="net.tcp://localhost/"
it remains give me the same error
Note: All the changes i made in Service Config file
Thank you
Member
14 Points
8 Posts
Jun 26, 2012 09:15 PM|LINK
when You calling the service references is there any error??? or it just show error after upload in IIS???
Jun 27, 2012 08:58 AM|LINK
Thanks to all of your reply
Finally i resolve my problem i.e. Enable the Protocols in IIS http,net.tcp must be set in MyWebName instead of Default Website Advance settings
tahazubairah...
Participant
887 Points
798 Posts
TCP Binding WCF
Jun 21, 2012 09:35 AM|LINK
Hi
i want to call the NET TCP service in browsers (Exmaple: net.tcp://localhost/Services/Service.svc)
After this i want to call this service at client end
I am successfully upload the service in IIS using (works with BasicHTTPBinding but not work with NETTCPBinding)
Further i am also set the following things
References: http://galratner.com/blogs/net/archive/2010/10/08/setting-up-a-nettcpbinding-enabled-wcf-service-in-iis-7.aspx
but unable to browse the net.tcp service on browser
here is a service config file
<service name="Service" behaviorConfiguration="MyBehav"> <!--<endpoint name="WCFHTTPBinding" address="" contract="IService" binding="basicHttpBinding" bindingConfiguration="portSharingBinding" />--> <endpoint name="WCFNETTCPBinding" address="" contract="IService" binding="netTcpBinding" bindingConfiguration="portSharingBinding"/> <host> <baseAddresses> <add baseAddress="net.tcp://localhost:808/Services/Service.svc" /> </baseAddresses> </host> </service> </services> <bindings> <netTcpBinding> <binding name="portSharingBinding" portSharingEnabled="true"/> </netTcpBinding> </bindings>Please advice
</div>Taha Zubair Ahmed
http://www.tahazubair.blogspot.com
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: TCP Binding WCF
Jun 21, 2012 09:56 AM|LINK
in IIS when you click on the application does it show you the link to browse with net.tcp ? meaning its configured successfully .
whats the error you are getting ?
tahazubairah...
Participant
887 Points
798 Posts
Re: TCP Binding WCF
Jun 21, 2012 10:22 AM|LINK
It browse only when i set
While if i Add / Change the binding name basicHttpBinding to netTcpBinding it gives me error.
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
Further if i also change the baseAddress="net.tcp://localhost/"
it remains give me the same error
Note: All the changes i made in Service Config file
Thank you
Taha Zubair Ahmed
http://www.tahazubair.blogspot.com
Syed Aoun Al...
Member
14 Points
8 Posts
Re: TCP Binding WCF
Jun 26, 2012 09:15 PM|LINK
when You calling the service references is there any error??? or it just show error after upload in IIS???
tahazubairah...
Participant
887 Points
798 Posts
Re: TCP Binding WCF
Jun 27, 2012 08:58 AM|LINK
Thanks to all of your reply
Finally i resolve my problem i.e. Enable the Protocols in IIS http,net.tcp must be set in MyWebName instead of Default Website Advance settings
Thank you
Taha Zubair Ahmed
http://www.tahazubair.blogspot.com