簡體   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當我嘗試進入 WCF 服務時,我收到以下錯誤消息“無法進入遠程過程”。

這是我的客戶端和主機配置

主持人

<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>

和客戶是

<client>
    <endpoint address="net.tcp://localhost:9002/MyService" binding="netTcpBinding" bindingConfiguration="bigTcpArrayBinding" contract="LPS.HAMP.MARS.IHampServices" name="SANDBOX_HampServicesSvcContract" />
</client>

我在 windows 7 上使用 VS 2010。非常感謝任何幫助

謝謝 RJ

您可以調試一個正在運行的 windows 服務,go 到 Debug -> Attach to process -> 找到該服務的名稱,VS 將附加到這個正在運行的服務。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM