Answered by:
Unable to add reference to service in ASP.Net application in Visual Studio 2010

Question
-
User2021053726 posted
Hi,
I have a WCF service hosted in console application which was provided by our client, which we are suppose to consume in our web application. This WCF Service is using "netnamedpipebinding". When i tried to add a reference to the service in my asp.net solution i am getting the following error "There was an error reading from the pipe: The pipe has been ended. (109, 0x6d)". Because of this error i am unable to add reference to the service in my asp.net solution. net.pipe listner adapter is running. I also tried to download the metadata using svcutil but got the following error "This url does not support DISCO".
Please help.
Thanks,
Harish
Thursday, February 28, 2013 6:10 AM
Answers
-
User1630798415 posted
please refer below, similar problem is answered. May be help you
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/7fb2bfac-ef76-4f6a-b649-3729b54f7b8a/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, February 28, 2013 6:56 AM -
User-1000095884 posted
Hi,
To narrow down the issue, do you try create a simple service with netnamedpipebinding binding at your side to test if it works? Below is the app.config for my test service, please have a try.
<system.serviceModel> <services> <service name="WcfServiceLibrary1.Service1"> <endpoint address="net.pipe://localhost/Design_Time_Addresses/WcfServiceLibrary1/Service1/service" binding="netNamedPipeBinding" bindingConfiguration="" contract="WcfServiceLibrary1.IService1"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="http://localhost:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/service" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
Also you can find a sample here.http://msdn.microsoft.com/en-us/library/ms731291.aspx
Best Regards.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, March 1, 2013 3:10 AM
All replies
-
User1630798415 posted
please refer below, similar problem is answered. May be help you
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/7fb2bfac-ef76-4f6a-b649-3729b54f7b8a/
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, February 28, 2013 6:56 AM -
User-1000095884 posted
Hi,
To narrow down the issue, do you try create a simple service with netnamedpipebinding binding at your side to test if it works? Below is the app.config for my test service, please have a try.
<system.serviceModel> <services> <service name="WcfServiceLibrary1.Service1"> <endpoint address="net.pipe://localhost/Design_Time_Addresses/WcfServiceLibrary1/Service1/service" binding="netNamedPipeBinding" bindingConfiguration="" contract="WcfServiceLibrary1.IService1"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="http://localhost:8732/Design_Time_Addresses/WcfServiceLibrary1/Service1/service" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
Also you can find a sample here.http://msdn.microsoft.com/en-us/library/ms731291.aspx
Best Regards.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, March 1, 2013 3:10 AM