473,503 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating Client Proxy from a WCF Service hosted by a Windows Service

1 New Member
I am trying to generate a client proxy from a WCF service library. I am using VS2005, .NET 3.0 on a Windows XP Pro workstation. The WCF service is hosted in a windows service. When I run the windows service as a console application, there are no problems. I can run svcutil.exe against that address and it generates the proxy. However, when I compile that service in release mode, and install it on the workstation using InstallUtil, I get an error "Error: Cannot obtain Metadata from net.tcp://localhost:9090/Service2 ". These are the settings I am using the app.config for the service

<system.serviceModel>
<services>
<service behaviorConfiguration="serviceBehaviour" name="WCFServiceLibrary3.service2">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:9090/Service_2" />
</baseAddresses>
</host>
<endpoint binding="mexTcpBinding" name="TCP_Mex" contract="IMetadataExchange" />
<endpoint address="mex" binding="customBinding" bindingConfiguration="TestBinding2" name="TestBinding2" contract="WCFServiceLibrary3.IService2" behaviorConfiguration="Test2" />
</service>
</services>

<behaviors>
<endpointBehaviors>
<behavior name="Test2">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="serviceBehaviour">
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata />
<!--<serviceMetadata httpGetEnabled="true" />-->
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</serviceBehaviors>
</behaviors>


<bindings>
<customBinding>
<binding name="TestBinding2" inactivityTimeout = "00:30:00" openTimeout="00:30:00"
receiveTimeout="00:30:00"
sendTimeout="00:30:00">
<binaryMessageEncoding />
<tcpTransport transferMode="StreamedResponse" />

</binding>
</customBinding>
</bindings>


</system.serviceModel>
Attached Files
File Type: zip WCFServiceLibrary3.zip (82.1 KB, 79 views)
Mar 28 '09 #1
0 5675

Sign in to post your reply or Sign up for a free account.

Similar topics

5
12470
by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error...
1
2840
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
3
2074
by: Roland Riess | last post by:
Hi all, as an absolute beginner with all web matters I'm sure there are still many things that I do net understand yet - so please point me to the right direction whereever you feel that I'm...
0
970
by: deeelpea | last post by:
My Web Service is built in VS 2005 (.NET 2.0), and it runs on my workstation. It also implements WSE 3.0, but I am not running it as self-hosted I am hosting it through IIS. On the same switch,...
3
1656
by: Albertas | last post by:
Hello, Here is the situation: I had a Web Service that ran on IIS. Proxy for client application was generated using wsdl.exe. Now I replaced WS with ..NET Framework 3.0 so that I can host it on...
1
15106
by: khubieb | last post by:
Situation: We have to connect to a 3rd party XML Web Service outside our LAN by adding a WCF Service Reference to a simple console application Problem: When attempting to invoke any of the...
0
2903
by: =?iso-8859-1?Q?Norbert_P=FCrringer?= | last post by:
Hello! Does anyone know how to create the proxy client by reading out the metadata of an IIS hosted WCF service? An IIS hosted WCF service does not have the setting HttpGetUrl, therefore I...
1
5804
by: C Downey | last post by:
I have created a WCF Service hosted in IIS. In my web.config it has its endpoint configured like so: <service behaviorConfiguration="JobServiceConfig" name="MyTest.JobService"> <endpoint...
2
2146
by: =?Utf-8?B?RWQgU2huZWtlbmRvcmY=?= | last post by:
I am trying to create a WCF host/client combination using mixed security with UserName authentication. Everything looks good on the host side, but when I go to generate the client proxy using...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5005
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.