Solved

Help configuring remote debugging on web server 2008

Posted on 2014-04-02
4
423 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 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

22 Experts available now in Live!

Get 1:1 Help Now