Friends, I have a WCF service that i am trying to step into locally from my MVC 2 web client.THe WCF service is hosted inside a windows service inside the same solution.I installed the windows service and made sure that it is running.But when i try to step into the WCF service, i get the following error message "Cannot step into the remote procedure".
Here is my client and host configurations
Host
<host>
<service name="MyService" behaviorConfiguration="ServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="http://localhost:8000/MyService" />
<add baseAddress="net.tcp://localhost:9002/MyService" />
</baseAddresses>
</host>
<endpoint address="" bindingConfiguration="bigTcpArrayBinding" binding="netTcpBinding" contract="IMyServices" />
<endpoint address="" bindingConfiguration="bigArrayBinding" binding="basicHttpBinding" contract="IMyServices" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</host>
and client is
<client>
<endpoint address="net.tcp://localhost:9002/MyService" binding="netTcpBinding" bindingConfiguration="bigTcpArrayBinding" contract="LPS.HAMP.MARS.IHampServices" name="SANDBOX_HampServicesSvcContract" />
</client>
I use VS 2010 on windows 7. Any help is greatly appreciated
Thanks RJ
You can debug a running windows service, go to Debug -> Attach to process -> find the name of the service and VS will attach to this running service.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.