netraThapa
netraThapa

Reputation: 379

HTTP Error 403 - Forbidden

When I start Debugging on asp.net3.5 . Browser display bellow message

*Server Error in '/attn-web' Application.

HTTP Error 403 - Forbidden.

Version Information: ASP.NET Development Server 9.0.0.0*

Upvotes: 6

Views: 31249

Answers (7)

Lasith Jayalath
Lasith Jayalath

Reputation: 137

I also had the same problem. This is how I solved it. I think this may be helpful for you.

1. Go to "start" and then type IIS(Internet Information Services) and hit Enter
2. In the right side there are "connections"
3. Go to "sites"-> "Default Web Site" which is located inside the connections
4. Double click the "Default website"
5. There in the features view double click the "Directory Browsing"
6. In the right side there are the actions if "Enable" is available double click on that (Otherwise that feature is all ready available)
7. Then go back to the previous page
8. Double click on "Default Document"
9. There you can see a list of default documents
10. If your default document for the website is not available you can add it by clicking the "add" in the right side and there type the name of your default document.

Upvotes: 0

MPelletier
MPelletier

Reputation: 16657

It happened to me too. I had moved the project and fetched it again. It turns out that Visual Studio binds the virtual directory name as the source path for the files, and moving a (physical) directory makes IIS adjust the virtual directory to the new path. Visual Studio uses the virtual directory name still, and that causes a conflict.

Deleting in IIS the virtual directory made things work again.

Upvotes: 0

M.Adel
M.Adel

Reputation: 31

you just need to change the specific port you are using:

  1. Right-click on your project in the Solution Explorer.
  2. Go to Properties.
  3. Select Web in the dialog.
  4. Change the Specific port to anything else e.g. 44444

hope this is the solution for your problem

Upvotes: -1

Rami Sarieddine
Rami Sarieddine

Reputation: 5432

It might be an issue with NTLM Authentication.

  1. Right-click on your solution in the Solution Explorer.
  2. Select Property Pages.
  3. Select Start Options in the dialog.
  4. In the Server section, uncheck NTLM Authentication

Upvotes: 5

bjan
bjan

Reputation: 2030

I was getting following issues, after trying their solutions i got this same error message

WCFTestClient The HTTP request is unauthorized with client authentication scheme 'Anonymous' (my service is a non-WCF service)

The HTTP request is unauthorized with client authentication scheme 'Ntlm'

and finally got the solution from here which is In the Server section, uncheck NTLM Authentication (Project Properties -> Web -> Servers)

Upvotes: 2

Shadow Wizard
Shadow Wizard

Reputation: 66399

If you have Vista or Windows 7 try running the Visual Studio as administrator (right click the EXE and choose "Run as administrator") as it might be some security/permissions issue.

Upvotes: 2

Genius
Genius

Reputation: 1782

  1. Firewall,
  2. bad 'hosts' file,
  3. aspnet server configuration problem,
  4. Folder security restrictions

..

Try to look at log files (Win+F, select folder /Windows and specify to find fresh files) and 'Event Viewer' (Press Win, then type: Event Viewer)

P.S.: Nothing personal, but your question is really unclear.

Upvotes: 1

Related Questions