Unable to automatically log into the server. Remote procedure cannot be debugged

I have a problem navigating to code, which is a website hosted on IIS7.

Basically, I have a test class that calls the WCF service, for example,

ISecurityService service = new SecurityServiceClient();
MembershipUser membershipUser = null;
membershipUser = service.GetMembershipUser("Mark"); // THIS LINE FAILS!!!

I get the following error, but as far as I know, everything is included, i.e.

<compilation debug="true" targetFramework="4.0" />

Here is the msg error, I would appreciate any feedback. If I do not try to enter the line above, everything works fine.


Microsoft Visual Studio

Unable to automatically go to server. Remote procedure cannot be debugged. This usually indicates that debugging was not enabled on the server. For more information, see Help.

+3
source share
5

debug = "true" web.config wcf.

+1

. , - WCF IIS , !

, , :

netstat -aon | find ":your_iis_web_services_port_number" 

, .

0
source

You can also try enabling anonymous authentication in IIS. This worked for me when I ran into this problem.

0
source

dont forget to set compilation debug="true" in your wcf service web.config file.

If your startup project is different from the WCF service in question, and you checked start wcf service host when debugging another project in the same solution, you need to install compilation debug="true"App.config in these projects.

0
source

Source: https://habr.com/ru/post/1748093/


All Articles