[英]Debugging a WCF service hosted inside a windows service from an ASP.NET MVC client hosted on local IIS
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". 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当我尝试进入 WCF 服务时,我收到以下错误消息“无法进入远程过程”。
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我在 windows 7 上使用 VS 2010。非常感谢任何帮助
Thanks RJ谢谢 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.您可以调试一个正在运行的 windows 服务,go 到 Debug -> Attach to process -> 找到该服务的名称,VS 将附加到这个正在运行的服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.