473,747 Members | 2,280 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visual Studio Remote Debugging:

I cannot for the life of me get remove debugging to work. I continue to
receive "Error while trying to run project: Unable to start debugging on the
web server. Access is denied. Verify that you are an administrator or
member of the Debugger Users".

I have followed
(ms-help://MS.VSCC.2003/MS.MSDNQTR.2003 FEB.1033/vsdebug/html/vxtbsHTTPServer
Errors.htm). I have seen
(http://www.dotnet247.com/247referenc...dotnet.com/tea
m/csharp/learn/whitepapers/howtosolvedebug gerproblems.doc ) and followed. I
have checked and double checked that my XP user/pass is on the 2k server and
user is a member of both administrators and Debugger Users. Without a doubt
the user is working correctly because I can put in the ole \\server\admin$
from the XP box and never get prompted for any information. I have removed
Remote components, .NET framework, IIS and reinstalled in reverse order. I
have tried to manually attach to the asp.net process using "tools->Debug
processes" from visual studio.

What am I missing here?
Nov 20 '05 #1
14 8672
Hi,

Based on my understanding, you have checked the following things.
1. The logon username/password has been a member of the Remote machine's
adminitrators and Debugger Users.
2. The IIS has enabled windows integrated authentication, to simplied the
problem, please disable the other authentication modes(e.g. anonymous,
basic ...)

Now please make some tests.
1. Please create a new web application on the remote machine by inputting
the URL in the Location section.
http://remotingservername/TestWebApp
2. Press F5 to debugging the TestWebApp on the remoting machine.
3. Press Ctrl+F5 to see if we can access to the
http://remotingservername/TestWebApp and the webapplication you referred to
in your post.

From your description, you have tried to manually attach to the remoting
process, did that work for you, if no, what is the error message you are
getting.

Please perform the test and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #2
Thanks peter,

See Inline:

""Peter Huang"" <v-******@online.m icrosoft.com> wrote in message
news:Sg******** ******@cpmsftng xa06.phx.gbl...
Hi,

Based on my understanding, you have checked the following things.
1. The logon username/password has been a member of the Remote machine's
adminitrators and Debugger Users.
This has been checked and confirmed.
2. The IIS has enabled windows integrated authentication, to simplied the
problem, please disable the other authentication modes(e.g. anonymous,
basic ...)

Done.
Now please make some tests.
1. Please create a new web application on the remote machine by inputting
the URL in the Location section.
http://remotingservername/TestWebApp
2. Press F5 to debugging the TestWebApp on the remoting machine.
3. Press Ctrl+F5 to see if we can access to the
http://remotingservername/TestWebApp and the webapplication you referred to in your post.

Same error as before. The error goes like this:
"Error while trying to run project: Unable to start debugging on the web
server. Access is denied. Verify that you are an administrator or a member
of the 'Debugger Users' group on the machine you are trying to debug. After
being added to the 'Debugger Users' group, you must log off and log back on
for the setting to apply."
From your description, you have tried to manually attach to the remoting
process, did that work for you, if no, what is the error message you are
getting.

Using "Default" mode for transport I receive the error:
"Unable to connect to the machine 'devbox'. Access is denied. Verify that
you are an administrator or a member of the 'Debugger Users' group on the
machine you are trying to debug. After being added to the 'Debugger Users'
group, you must log off and log back on for the setting to apply."

Changing from default to "Pipe" or "TCP/IP" gives me:
"Unable to connect to 'DEVBOX'. MSVCMON is either not running on the remote
machine or is running in tcp/ip mode."

Manually start "MSVCMON" and connecting gives me:
"Unable to connect to 'DEVBOX'. Access is denied.
Please perform the test and let me know the result.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Again Thanks,
Nov 20 '05 #3
Hi,

From you understanding, now you can create a new webapp on the remote
machine and you can use Ctrl+F5 to browse the webapp.
But you can not use the F5 or manually attach to the remoting
webapplication. If I have any misunderstandin g, please feel free to let me
know.

I think now we can try to check the following steps.
1. We use the same username/password on both the local machine and remote
machine and they are all in the Administrators group.
2. Check the "Machine Debug Manager" service's permission setting by
following the steps below.
2.1 Run DComCnfg to invoke the DCOM Setting dialog, drill through to
"Machine Debug Manager" in the DCOM Config
2.2 Right click on the "Machine Debug Manager" and select properties
2.3 Check the Security Tab to see if the user account used to logon and
debugging has the right permission, please check all the three sections.
2.4 Check the Identity to see if it runs at the "the system account"

3. Run the secpol.msc to enable the Logon Event audit in case you have not
done it.
3.1 Drill through the Security setting/Local policies/Audit policy
3.2 Check the Success and Failure for the Audit Logon Event

4. Try to do the remoting debugging again and then check the eventlog's
security section on the remote machine to see if there is any Failed event.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #4
No your first part is incorrect. I cannot use ctrl+F5 to debug. Neither
ctrl+F5 or pushing the run button starts debugging. Both ways give the same
error message.

"Error while trying to run project: Unable to start debugging on the web
server. Access is denied. Verify that you are an administrator or a member
of the 'Debugger Users' group on the machine you are trying to debug. After
being added to the 'Debugger Users' group, you must log off and log back on
for the setting to apply."

I checked the settings in "Machine Debug Manager" and the only one that
required changing was the Identity->"the system account". As for "security
settings", it was already running but does not get any failures or signs of
attempted logins. I also tried adding both "everyone" and enabling and
adding "guest" to the "debugging users" account and still receive the same
error. I can connect to \\server\wwwroo t$\ without a hitch. I can log on
locally to the server using the same credentials and get on the system as an
administrator.

""Peter Huang"" <v-******@online.m icrosoft.com> wrote in message
news:OJ******** ********@cpmsft ngxa06.phx.gbl. ..
Hi,

From you understanding, now you can create a new webapp on the remote
machine and you can use Ctrl+F5 to browse the webapp.
But you can not use the F5 or manually attach to the remoting
webapplication. If I have any misunderstandin g, please feel free to let me
know.

I think now we can try to check the following steps.
1. We use the same username/password on both the local machine and remote
machine and they are all in the Administrators group.
2. Check the "Machine Debug Manager" service's permission setting by
following the steps below.
2.1 Run DComCnfg to invoke the DCOM Setting dialog, drill through to
"Machine Debug Manager" in the DCOM Config
2.2 Right click on the "Machine Debug Manager" and select properties
2.3 Check the Security Tab to see if the user account used to logon and
debugging has the right permission, please check all the three sections.
2.4 Check the Identity to see if it runs at the "the system account"

3. Run the secpol.msc to enable the Logon Event audit in case you have not
done it.
3.1 Drill through the Security setting/Local policies/Audit policy
3.2 Check the Success and Failure for the Audit Logon Event

4. Try to do the remoting debugging again and then check the eventlog's
security section on the remote machine to see if there is any Failed event.
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #5
Hi,

Ctrl+ F5 equals to pressing Debug/Start Without Debugging Ctrl+F5 menu.
So running the project in this approach is similar with we navigate the
webapplication remotely.
Now you may try to make a test.
Assuming we want to debug the remote application
http://remoteserver/webapp/webform1.aspx, then we can open the IE and then
navigate the http://remoteserver/webapp/webform1.aspx to see if the problem
persists.
[NOTE, please specified the remote server IIS setting with windows
authentication ONLY]

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #6
Ctrl + F5 compiles the project and opens a IE browser to the page. No
errors, page displays as expected. Breakpoints are not followed. No
debugging is being done. Im not following what you were wanting from this
test. This server will run a asp.net app without a hitch as long as you
don't try to remotely debug the app. Also as noted the server is setup with
only "Integrated Windows Authentication" checked. Server does NOT prompt
for information when the page loads.

Bryan
""Peter Huang"" <v-******@online.m icrosoft.com> wrote in message
news:2H******** ******@cpmsftng xa06.phx.gbl...
Hi,

Ctrl+ F5 equals to pressing Debug/Start Without Debugging Ctrl+F5 menu.
So running the project in this approach is similar with we navigate the
webapplication remotely.
Now you may try to make a test.
Assuming we want to debug the remote application
http://remoteserver/webapp/webform1.aspx, then we can open the IE and then
navigate the http://remoteserver/webapp/webform1.aspx to see if the problem persists.
[NOTE, please specified the remote server IIS setting with windows
authentication ONLY]

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #7
Hi Bryan,

To further troubleshoot the problem, I think we may need to enable the
EventLog, so that we will know what has happened.

On the Start menu, select Programs , select Administrative Tools , and then
select Local Security Policy .
On the left-hand pane, you see a tree view. Click the plus (+) sign at the
left of the Local Policies , and you see the Audit Policy entry. Select the
Audit Policy entry, and note that the right pane contains all audit
options, which one is enabled and which one is not. Right-clicking at any
of these options allows you to enable or disable them.
Enable auditing for success and failure for the following options: Audit
logon events, Audit object access, Audit privilege use.
Close the Local Security Policy window.

Once you have activated these logging options, test your client again.
After you get the error message, use Event Viewer to see if there are any
events. The event may tell you why access was denied. Also, it can tell you
who is logged on to the client computer and if this is a domain user or a
local user. It can tell you that the protocol requested by the client is
not available on the server, and so forth.

Also please enable the Audit account logon events too by repeated the steps
above.

If I use Ctrl+F5 to run the Webapplication, I will see the account logon to
the machine on the remote machine's eventlog.
Also when you press Ctrl+Alt+P to open the attach dialog and set the
Transport to default(the other two are for native code only), and set the
name to the remote machine's name, and then click refresh, can you see the
processed on the remote machine in the Available Processes?

And to isolate the problem, I think you may try to remote debugging another
remote machine to see if the problem persists.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #8
So we are clear, at this point I have "anonymous allowed" unchecked under
"directory security" in the IIS control panel. I have did the below
settings to "local security policy". Starting the startpage using Ctrl+F5
causes a prompt for username/password which I use the same that I login
with, this causes numerous events such as 576, 680, and 540's all successful
either from the "SYSTEM" account or from my username account.. Loading the
project and starting using F5 still shows the same error and does not
produce any events on the developer server. Attempting to debug using the
"Tools->Debug processes" or Ctrl+Alt+P gives the same error and no events.
""Peter Huang"" <v-******@online.m icrosoft.com> wrote in message
news:Tz******** ******@cpmsftng xa06.phx.gbl...
Hi Bryan,

To further troubleshoot the problem, I think we may need to enable the
EventLog, so that we will know what has happened.

On the Start menu, select Programs , select Administrative Tools , and then select Local Security Policy .
On the left-hand pane, you see a tree view. Click the plus (+) sign at the
left of the Local Policies , and you see the Audit Policy entry. Select the Audit Policy entry, and note that the right pane contains all audit
options, which one is enabled and which one is not. Right-clicking at any
of these options allows you to enable or disable them.
Enable auditing for success and failure for the following options: Audit
logon events, Audit object access, Audit privilege use.
Close the Local Security Policy window.

Once you have activated these logging options, test your client again.
After you get the error message, use Event Viewer to see if there are any
events. The event may tell you why access was denied. Also, it can tell you who is logged on to the client computer and if this is a domain user or a
local user. It can tell you that the protocol requested by the client is
not available on the server, and so forth.

Also please enable the Audit account logon events too by repeated the steps above.

If I use Ctrl+F5 to run the Webapplication, I will see the account logon to the machine on the remote machine's eventlog.
Also when you press Ctrl+Alt+P to open the attach dialog and set the
Transport to default(the other two are for native code only), and set the
name to the remote machine's name, and then click refresh, can you see the
processed on the remote machine in the Available Processes?

And to isolate the problem, I think you may try to remote debugging another remote machine to see if the problem persists.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #9
Hi,

The problem is very strange, to isolate the problem, can you try to do the
remote debugging on another machine to see if the problem persists.
i.e. on another machine with VS.NET 2003 installed and try to remote
debugging from the current machine to see if the problem persists.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
10870
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio compiles the same solution much faster (about 10 seconds for the first project). My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM). On the slow machine, the CPU usage is very low,...
3
1570
by: Web Team | last post by:
Hi, Our team has just upgraded our development machines from Windows 2000 to Windows XP SP2. We previously developed remotely, which worked AOK. Since going to SP2, when we try to debug, we get this error: "Error while trying to run project: Unable to start debugging on the web server. The debugger component on the server failed to connect to the local machine."
1
1474
by: Bryan ZM | last post by:
I had always loved debugging remote ASP.NET applications on our web server. However, after installing XP service pack 2, it no longer worked. When trying to run the application in debug mode VS would produce this error: "no suitable logon session on the server". I looked up all sorts of information on google but found no solution to the problem. I even disabled the firewall, among other things. The only thing that fixed it was uninstalling...
0
3219
by: Rudolf Dvoracek | last post by:
Hi all, I have Visual Studio 6.0 (Interdev only) installed on Windows XP Professional (IIS 5.1 platform). I have also installed Visual Studio 2005. I want to debug ASP applications on IIS. Because debugging under non-administrative account doesn't work, I assigned my domain account into Administrators local group. I installed Inderdev Server and Remote machine debugging from Visual Studio 6 CD#2. I set appropriate user rights to...
0
1249
by: Jason Huang | last post by:
Hi, In my Windows Server 2003 I have installed VS2005, and I have the Visual Studio Remote Debugging Monitor runnig. The Debugging Monitor recorded this line: 3/22/2007 05:37:58PM MyDomain\MyAccount connected. On my Windows XP SP2, I also have the VS 2005. I started a http://Win2003Server'IP/MyWebsite from VS2005 running on my Windows XP.
5
1344
by: Anil Gupte | last post by:
I am trying to decide between buying Visual Studio 2005 Professional and Standard versions. As far as I can tell, there is not a whole lot of difference, but the price for Professional is almost three times. Standard Professional User experience - Simplified menu options and defaults Full XML Editor Support- XML Only Full XML/XSLT Debugging- Local
7
1392
by: Anil Gupte | last post by:
I am trying to decide between buying Visual Studio 2005 Professional and Standard versions. As far as I can tell, there is not a whole lot of difference, but the price for Professional is almost three times. Standard Professional User experience - Simplified menu options and defaults Full XML Editor Support- XML Only Full XML/XSLT Debugging- Local
12
1976
by: hufaunder | last post by:
I often find myself in the situation where at a customers site I have to do some quick debugging or program changes. Obvioiusly, I do not want to install VS2005 on their system. Is there a ways to install VS2005 on a big and fast USB stick, plug it into a computer without VS2005 and start using it there? If not are there any alternatives. Thanks
1
4873
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up in msvsmon.exe on the remote machine, however, the client box with visual studio displays error: "Unable to connect to the mricosoft visual studio remtoe debugging monitor named 'the box name' the micorosft visual studio remote debugging monitor...
1
2409
ram09
by: ram09 | last post by:
I'm trying to run our website on the visual studio of my pc using remote. I already open our website on my visual studio remotely. The problem now is that I cannot debug the application, everytime I debug the application an error says that the firewall of the the server might be blocking the remote debugger. I already made some changes on our server for it to allow remote debugging on visual studio. I also exempt the visual studio debugger on...
0
8979
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9522
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9307
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9225
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4860
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.