TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vikram N
NA
66
19.6k
Unable to generate proxy files using svcutil.exe
Sep 16 2013 12:38 AM
hello,
I'm trying to read the journal messages in MSMQ through WCF, but I am not able to generate the client side proxy files.
below is my app.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<diagnostics performanceCounters="All" />
<services>
<service name="WishListComponent.MyWish" behaviorConfiguration="myBehavior">
<!--Address attribute specifies the name of the MSMQ Queue.-->
<endpoint name="wish" address="VishalQ" binding="netMsmqBinding"
bindingConfiguration="myMSMQ" contract="WishListComponent.IWish"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="net.msmq://localhost/private/"/>
<!--Both Mex and HttpBinding uses http://localhost:8888 port-->
<add baseAddress="http://localhost:32578"/>
</baseAddresses>
</host>
</service>
</services>
<bindings>
<!--The property exactlyOnce=false means that i am using non transactional queue. The property is by default true.-->
<netMsmqBinding>
<binding name="myMSMQ" exactlyOnce="false" >
<!--
If we donot set the security mode to none then the following error occurs.
Binding validation failed because the binding's MsmqAuthenticationMode property is set to
WindowsDomain but MSMQ is installed with Active Directory integration disabled.
The channel factory or service host cannot be opened.
-->
<security mode="None"/>
</binding>
</netMsmqBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="myBehavior">
<serviceMetadata httpGetEnabled="true"/>
<!--This is for enabling an exception-->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Below is the error I got while tryuing to generate proxy files. via svcutil.exe
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>svcutil /t:code http://lo
calhost:32578 /out: Myserviceproxy.cs /config:Myserviceproxy.config
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'http://localhost:32578/' using WS-Metadata
Exchange or DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata from http://localhost:32578/
If this is a Windows (R) Communication Foundation service to which you have acce
ss, please check that you have enabled metadata publishing at the specified addr
ess. For help enabling metadata publishing, please refer to the MSDN documentat
ion at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: http://localhost:32578/
Metadata contains a reference that cannot be resolved: 'http://localhost:325
78/'.
There was no endpoint listening at http://localhost:32578/ that could accept
the message. This is often caused by an incorrect address or SOAP action. See I
nnerException, if present, for more details.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 1
27.0.0.1:32578
HTTP GET Error
URI: http://localhost:32578/
There was an error downloading 'http://localhost:32578/'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 1
27.0.0.1:32578
If you would like more help, type "svcutil /?"
Reply
Answers (
0
)
Populate object from wcf
Difference between WCF and windows service