Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have published my project on desktop in a folder and created a virtual directory, with same name as .sln file, in IIS server but when i browse it then it diplays a massege in browser that "YOU ARE NOT AUTHORIZED TO SEE THIS PAGE, THE CREDENTIALS YOU SUPPLIED IS NOT CORRECT".HTTP ERROR 401.3.
While i am the administrator of my system and when i check windows integrated security but unable to access.

Pls help me out.

Thanks
Abhishek
Posted

1 solution

When you publish your web project, your logged in security credentials doesn't matter. ASP.NET pages are processed through a different account (depends on IIS version). By default that account has very limited permissions. You need to assign permissions to that account.

Moreover creating a virtual directory on a desktop doesn't sound like a good idea to me, though I don't think there's anything wrong in it. You should create a folder in one of the drive and keep all your web applications inside different folders if you are testing on your system.

BTW if you search Google for http error 401.3[^], you will get a lot of links discussing the same. Read them and you will get detailed information abut the issue.

Hope this helps!
 
Share this answer
 
Comments
abhiamity86 7-Apr-11 7:32am    
Thanks for reply,

I have done enough googling but unable to find the solution.
pls guide me for giving the permission to the default account same of the server.

Thanks
Abhishek
Ankur\m/ 7-Apr-11 7:36am    
Did you check the link in my answer? It already lists the same problem and solutions.
What's your IIS version? You need to search on how to assign permissions to ASP.NET account based on that IIS version.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900