Logo 
Search:

C# Forum

Ask Question   UnAnswered
Home » Forum » C#       RSS Feeds

Unable to start debugging the web server. Access is denied.

  Asked By: Brooklyn    Date: May 07    Category: C#    Views: 2614
  

I am getting Error while trying to run project: Unable to start debugging the web server. Access is denied. Would you like to disable future attempts to debug ASP.Netpages for this project?

Can anyone please explain, what could be the cause of problem.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Cadencia Bernard     Answered On: May 07

Error while trying to run  project: Unable to start  debugging the web  server. access  is denied. Would you like to disable  future attempts to debug  ASP.Netpages for this project?


Check different Cases for error
1.Microsoft Internet Information server  (IIS) is not running or is not functioning properly.
Trials - Restart the IIS using iisreset command at command prompt.

Soution
Check this also
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click Administrative Tools.
3. Double-click Internet Information services.
4. Expand Web Sites and then Default Web Site
5. Right click on the Default Web Site to get Properties.
6. Now click on Directory Security tab
7. Edit in Anonymous access and authentication control
8. Finally Checked the Integrated Windows authentication.


Other Trials
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click Administrative Tools.
3. Double-click Internet Information services.
4. select your virtual dir.
5. Right-click and select Properties
6. In the Properties dialog box, click on the Create button.
( This Create Button is next to Application name)


2.Microsoft Internet Information Server (IIS) is not attached with ASP.net.
Solution
The following command installs the ASP.NET version associated with the IIS and updates the script maps of all existing ASP.NET applications.
C:\*Windows Path*\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
Check v1.1.4322 Dir means aspnet_regiis.exe is placed in the framework version: 1.1.4322.

3.User who is trying to remotely debug is not a member of the Debugger Users group on the Microsoft Internet Information Server (IIS) server.
Solution
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click Administrative Tools
3. Double-click Computer Management.
4. In the left pane, click to expand the Computer Management, System Tools, and Local Users and Groups nodes.
5. Click Groups, and then double-click Debugger Users.
6. In the Debugger Users Properties dialog box, click Add.
7. In the Select Users or Groups dialog box, select the appropriate user, and then click OK.
8. Click OK to exit the Debugger Users Properties dialog box.

4.ASP.NET worker process does not have the Impersonate a client after authentication user right. If the worker process account does not have this right, the debugger cannot attach to the process. The worker process account is configured by using the processModel element in the Machine.config file.
Solution
To give the worker process account the Impersonate a client after authentication user right, follow these steps:
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click Administrative Tools.
3. Double-click Local Security Policy.
4. Expand Security Setting, expand Local Policies, and then click User Rights Assignment.
5. In the Policy pane, right-click Impersonate a client after authentication, and then click Properties.
6. Click Add User or Group.
7. Add the worker process account that is configured in the processModel element in the Machine.config file.
8. Click OK two times.
9. Click Start, click Run, type iisreset, and then click OK.
10.At a command prompt, type the following command to refresh policies on the computer: gpupdate /force

 
This post is locked for further answers.




Tagged: