Solved

Help configuring remote debugging on web server 2008

Posted on 2014-04-02
4
431 Views
Last Modified: 2014-05-27
Hi all,

I am having trouble connecting to an application I want to remote debug.

I have installed the remote debug on the server and run the program. I now have

Msvsmon started a new server named 'S12392934:4016'. Waiting for new connections.

I have opened the project using FTP in visual studio and can now access the files etc.

When I go to debug the project compiles and prompt for a user name pass;

I have then enter this info with the server name (i.e. S12392934\admin)

afte it accepts these I get the message

Unable to start debugging on the web server. The visual Studio Remote Debugging Monitor (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging.

Clicking help goes to the following KB;

msdn.microsoft.com/query/dev11.query?appId=Dev11IDEF1&l=EN-US&k=k(vs.debug.error.remote_debug);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5);k(DevLang-csharp)&rd=true

now how do I ensure point 2 is correct? do I enter S12392934:4016 as the project name? as it doesnt accept the ':' char?

any ideas what I shoudl do next?
0
Comment
Question by:flynny
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 40044948
I'm a bit confused about your details, but just to be clear, here's how I'm seeing it:

Server name: S12392934
Port running debugging: 4016
Remote username: admin

Is this correct? Or does the servername somehow contain a colon? You also don't specify whether your website (or the server) are x86 or x64 - there's a separate debugger installation depending on which you're using to host your remote website.

A user gets a similar error here (not the original error, but the last three posts in the thread):

http://social.msdn.microsoft.com/Forums/vstudio/en-US/11bd5a3a-263d-49ec-b50e-45cb0ffa4c6f/remote-debugging-with-vs-2012-on-windows-2008-32-bit

Can you check that and see if it applies?
0
 

Author Comment

by:flynny
ID: 40093230
HI,

after looking a little deeper I am not sure I can attain this functionality.

The web server is outside of the local network (I was hoping I would have been able to debug whilst on th emove etc.)

from what I can see this functionality does not work?
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 40093249
The functionality will work as long as you can access the necessary ports on your web server and the remote debugger is running. If you've got a VPN connection, that's fine.

If you don't have a VPN, you'd have to open those ports through your firewall so you can access them remotely. That's a terrible idea - don't do it, as it's a huge security risk. Huge. Debugging gives you insight into exactly how code is running, and even allowing the possibility of a connection to that service from a malicious host is something to be avoided at all costs.

If this is the case, then you're correct - this functionality wouldn't work for you. I'd recommend debugging be done on the local network (and even then, the remote debugging tool should only be run as required, and shut down when you're not using it) or over a secured VPN.
0
 

Author Closing Comment

by:flynny
ID: 40093267
thank you for clarifying this.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
.Net Web Site IIS Web.Config Content-Security-Policy 1 43
Server Error 11 47
Run time Error 4 34
Counting connections to SQL Server through C# 3 29
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now