Debug WCF on Windows 7 x64

I created a very simple Sandbox Sandbox project using Visual Studio 2008, consisting of:

  • Console Client Application
  • WCF Services Library Running in WcfSvcHost.exe

I cannot debug the WCF service on my Windows 7 x64 system. I get a popup message:

Unable to automatically debug 'ServiceLibrary. The remote procedure could not be debugged. This usually indicates that debugging was not allowed on the server.

A service is Visual Studio 2008 from the box template, "IService1". The client invokes the operation GetData(), so there is nothing special.

I tried the suggestions in this question , which did not lead me to a solution, but the WCF trace log contains a peculiar exception:

<E2ETraceEvent>
<System>
<EventID>131075</EventID>
<Type>3</Type>
<SubType Name="Warning">0</SubType>
<Level>4</Level>
<TimeCreated SystemTime="2010-05-28T17:43:31.0190250Z" />
<Source Name="System.ServiceModel" />
<Correlation ActivityID="{2f5e007a-d4d0-4046-9ab5-f6384b862a4f}" />
<Execution ProcessName="WcfSvcHost" ProcessID="6692" ThreadID="5" />
<Channel />
<Computer>SUBSPACE</Computer>
</System>
<ApplicationData>
<TraceData>
<DataItem>
<TraceRecord Severity="Warning">
<Description>Throwing an exception.</Description>
<AppDomain>D:\PathTo\Service\bin\Debug\ServiceLibrary.dll.config</AppDomain>
<Exception>
<ExceptionType>System.ComponentModel.Win32Exception, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
<Message>The specified domain either does not exist or could not be contacted</Message>
<StackTrace>
at System.ServiceModel.UpnEndpointIdentity.GetUpnFromDownlevelName(String downlevelName)
at System.ServiceModel.UpnEndpointIdentity.GetUpnFromWindowsIdentity(WindowsIdentity windowsIdentity)
at System.ServiceModel.UpnEndpointIdentity.EnsureIdentityClaim()
at System.ServiceModel.EndpointIdentity.get_IdentityClaim()
at System.ServiceModel.Security.SecurityUtils.GetSpnFromIdentity(EndpointIdentity identity, EndpointAddress target)
...
</StackTrace>
<ExceptionString>System.ComponentModel.Win32Exception: The specified domain either does not exist or could not be contacted</ExceptionString>
<NativeErrorCode>54B</NativeErrorCode>
</Exception>
</TraceRecord>
</DataItem>
</TraceData>
</ApplicationData>
</E2ETraceEvent>

( , )

, , - . XML , (SUBSPACE). - , ?

, :

<identity>
    <dns value="localhost" />
</identity>

, , Debug - Start New Instance, , , ...

+3
1

<ExceptionString>System.ComponentModel.Win32Exception: 
The specified domain either does not exist or could not be contacted</ExceptionString>

, - , " \ ", - .

, . :

ping %USERDOMAIN%

, . ping IP.

+1

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


All Articles