Error: Remote computer could not initiate DCOM communications
A DCOM error occurred when the remote machine tried to communicate with the local machine (the machine where you are running Visual Studio). This error may occur for several reasons:
The local machine has a firewall enabled.
Windows authentication from the remote machine to the local machine is not working.
You are remote debugging from a Windows XP SP2 machine with the Windows firewall enabled to a Windows 95/98/Me machine, and have not enabled Remote Access for Anonymous logon.
To correct this error
If the local machine (the machine running Visual Studio) is running Windows XP Service Pack 2 and the Internet Connection Firewall is enabled, see How to: Set Up Remote Debugging for instructions on how to configure the firewall for local debugging.
Test Windows authentication by trying to open a file share on the local machine from the remote server.
To restore Windows authentication, try rebooting both machines. Check event logs on local and remote machines for Kerberos errors and check with domain administrators for known problems.
To enable Remote Access for Anonymous Logon
From the Windows command prompt, run
dcomcnfg
:C:\WINDOWS\System32\dcomcnfg
In the Component Services window, expand the Component Services/Computers node.
Under Component Services/Computers, right-click on My Computer and choose Properties from the shortcut menu.
In the My Computer Properties window, click the COM Security tab.
Under Access Permissions, click the Edit Limits button.
Select Anonymous Logon from the top list.
Select the Remote Access checkbox from the bottom list.
Click OK.
Click OK.