简体   繁体   English

从托管在本地 Z5DA5ACF4137ED1502B5045D6083AA258B5C42Z 服务中的 ASP.NET MVC 客户端调试托管在 windows 服务内的 WCF 服务

[英]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.

相关问题 调试IIS中托管的asp.net WCF服务 - debugging asp.net WCF service hosted in IIS ASP.NET,WCF:使用本地Windows服务中托管的WCF服务的ASP.NET应用程序 - ASP.NET, WCF: ASP.NET application consuming WCF service hosted in a local windows service 从Windows Service托管WCF到ASP.NET客户端的进度报告(也许是ajax?) - Progress reporting from windows service hosted WCF to ASP.NET client (ajax maybe?) 与Windows服务上托管的WCF服务的ASP.net服务器连接 - ASP.net server connection with WCF service hosted on windows service ASP.NET ExecutionTimeout对IIS托管的WCF服务无效 - ASP.NET ExecutionTimeout no effect on IIS-hosted WCF service 使用ASP.NET 1.1客户端将IIS中托管的WF作为WCF服务使用 - Consume a WF hosted in IIS as a WCF service using ASP.NET 1.1 Client WCF会话服务托管在ASP.NET MVC 2.0应用程序中 - WCF Session Service hosted in ASP.NET MVC 2.0 application ASP.NET网站中托管的WCF服务-Windows身份验证不起作用 - WCF Service Hosted in ASP.NET website - Windows Authentication not working 如何从Asp.net 2.0使用IIS托管的WCF服务 - How to Comsume IIS Hosted WCF Service from Asp.net 2.0 从IIS中托管的ASP.NET Web应用接收WCF回调服务 - Receiving a WCF callback service from a ASP.NET web app hosted in IIS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM