Unable to start T-SQL Debugging. Cannot attach to sql server process on SERVERNAME. RPC server is unavailable

I am running VS2005 from my workstation, connecting to SQL2008 Std x64 on a Win2008 server.

After following the instructions for setting up remote debugging (VS2005 to SQLServer2008), I get the following error:

"Unable to start T-SQL Debugging. Cannot attach to sql server process on SERVERNAME. RPC server is unavailable"

*** It all works perfectly if I disable the windows firewall on the server!  ***

I have added FW exceptions as follows:

netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - UDP 137" dir=in action=allow enable=yes localport=137 protocol=udp

netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - UDP 138" dir=in action=allow enable=yes localport=138 protocol=udp

netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - TCP 139" dir=in action=allow enable=yes localport=139 protocol=tcp

netsh advfirewall firewall add rule name="Microsoft Visual Studio Remote Debugging Monitor - TCP 445" dir=in action=allow enable=yes localport=445 protocol=tcp

At the moment I am packet sniffing with wireshark to try and work out the blocked ports....which is my best guess at the cause of the problem.






ben84Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
You need to exclude some other ports like TCP 80, 135 and more info here:

http://msdn.microsoft.com/en-us/library/bt727f1t%28VS.80%29.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Chris MConsulting - Technology ServicesCommented:
Add the SQL ports to the list of exceptions on the server's firewall.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.