2

I've deployed a web application in IIS7. I working with a client and trying to debug the website. I can access myUrl/ApplicationName.aspx?user=user1. I attached the process to Visual Studio using Tools -> Attached Process and have a breakpoint on the page_load. When I access myUser/ApplicationName.aspx?user=user1/ApplicationName.aspx?user=user1, I was expected to reached the breakpoint, but it never did. What am I doing wrong?

4
  • Are you trying to debug on the server from your local PC? Commented Jul 28, 2014 at 13:56
  • I installed Visual Studio on the server, so I am running it from there now. Once testing is completed, I will delete the code from the server. Commented Jul 28, 2014 at 15:26
  • Yikes. That doesn't sound right. What if you get another bug next week, are you going to do the same thing again? You better look at making your local environment identical to the server, or enabling remote debugging as mentioned in @GrokSrc answer. Commented Jul 28, 2014 at 16:30
  • I am trying to set it up now. I've been waiting on IT to open the ports number, but they've not done it. I thought my next best option is to install it on the server and debug it from there. Commented Jul 28, 2014 at 20:14

1 Answer 1

3

Remote Debugging needs to be enabled on the server. Here are the instructions for setting it up: http://msdn.microsoft.com/en-us/library/bt727f1t(v=vs.100).aspx

Once you have msvsmon.exe running and your firewalls configured correctly you should be able to hit your breakpoint.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.