Unable to automatically step into the server when debugging WCF

后端 未结 5 2609
半阙折子戏
半阙折子戏 2021-02-19 19:45

I get the dreaded:

Unable to automatically step into the server. The remote procedure could not be debugged.This usually indicates that debugging has not been enable

相关标签:
5条回答
  • 2021-02-19 20:24

    First of all, I have this problem in Visual Studio 2015.

    If you add a breakpoint on the line that calls WCF Service and press F11 in debug time to go into the WCF code, be aware you MUST add a breakpoint on the first line of WCF Service you are calling.

    0 讨论(0)
  • 2021-02-19 20:27

    I have just had the same problem. In order to be able to debug a WCF service, you should add the <compilation debug="true"> line in the server's config file inside the <system.web> section.

    For more details, please check the link: http://msdn.microsoft.com/en-us/library/bb157687.aspx

    0 讨论(0)
  • 2021-02-19 20:35

    I had the same issue. When i checked, my service project was built using .NET Framework 4.5 where was client project was on .NET Framework 4.0

    I changed the project properties of service project to have .NET Framework 4.0 and it worked.

    0 讨论(0)
  • 2021-02-19 20:40
    <pre>
    Add the below in your server config file
    (i) Add below in app.config, if you are hosting your WCF service on windows service. 
    <system.web>
      ...
      ...
      ...
      <compilation debug="true" /> 
    </system.web>
    
    (ii) Add below in web.config, if you are hosting your WCF service on IIS. 
    <system.web>
      ...
      ...
      ...
      <compilation debug="true" /> 
    </system.web>
    </pre>
    
    0 讨论(0)
  • 2021-02-19 20:49

    Just found a possible resolution. Repair installation as described in this article http://msdn.microsoft.com/en-us/library/bb157687.aspx. (re)installing the VS SP1 will do the trick too.

    0 讨论(0)
提交回复
热议问题