403

www.abc.com/pages/landingpage.aspxI entered my login credential và log into the site.

You watching: 403

After some time I opened a new tab và enter my trang web address

www.abc.comNow it gives me an error:

403 - Forbidden: Access is denied. You vì not have sầu permission lớn view this directory or page usingthe credentials that you supplied.

The whole story is this: if I am not logged on my site, then I can open my site number of tabs and browsers. But as soon as I logged in my site, I am getting the error above.


asp.net c#-4.0 web-config
Share
Improve this question
Follow
edited Jun 16 at 10:34

*

Hakan Fıstık
12.1k88 gold badges7979 silver badges109109 bronze badges
asked Oct 15 "12 at 9:45
*

vikasvikas
28722 gold badges55 silver badges1414 bronze badges
1
Add a comment |

7 Answers 7


Active sầu Oldest Votes
11
Try this

Now you are using that means you are not allowing authenticated user to use your site.

authorization Element


Share
Improve sầu this answer
Follow
answered Oct 15 "12 at 10:05
*

jamsjams
20k2626 gold badges7070 silver badges9393 bronze badges
5
Add a phản hồi |
9
I had the same problem. It turned out that I didn"t specify a default page và I didn"t have sầu any page that is named after the default page convention (mặc định.html, defult.aspx etc). As a result, ASPhường.NET doesn"t allow the user to lớn browse the directory (not a problem in Visual Studio built-in website VPS that allows you khổng lồ view the directory) & shows the error message. To fix it, I added one mặc định page in Web.Config and it worked.


Share
Improve this answer
Follow
answered Jan 18 "13 at 20:07

*

YingYing
2,4522121 silver badges2121 bronze badges
Add a bình luận |
2
You can get the same error in Asp.net MVC5 if you have sầu a class name & a thư mục with a matching nameExample : If you have class lands where when you want lớn see view/lands/index.cshtml tệp tin, if you also have sầu a folder with name "lands" you get the error as it first try the lands folder


Share
Improve this answer
Follow
answered Feb 1 "đôi mươi at 4:07
*

Sam PatirageSam Patirage
10955 bronze badges
Add a comment |
2
If your using MVC in your project you must use:

routes.IgnoreRoute("");More here.

See more: Chất Nhũ Hóa Là Gì ? Chất Nhũ Hóa Thực Phẩm Là Gì

ASP..NET MVC not serving mặc định document


Share
Improve this answer
Follow
edited Jun 16 at 10:35
Hakan Fıstık
12.1k88 gold badges7979 silver badges109109 bronze badges
answered Aug 6 "14 at 20:46
Eric WildEric Wild
57133 silver badges1111 bronze badges
Add a bình luận |
1
Resolution for 404 Forbidden in recent .Net 4.7 MVC/websize pplication hosting in Azure VMWe need to lớn install the .Net 4.7 and extensibilty và development in server role other than the .Net 4.7/version feature as below:This might have been alreday activated .Net Activated feature

We need khổng lồ also add the below under IIS webhệ thống role-> Application Development -> select the .Net version as belowImage khổng lồ Activate the requited Role under IIS webVPS RoleServer Role Activation under application Development


Share
Improve this answer
Follow
edited May 31 "trăng tròn at 20:27
Wai Ha Lee
7,8385656 gold badges5454 silver badges8181 bronze badges
answered May 31 "đôi mươi at 19:59
HimanjanHimanjan
1122 bronze badges
1
Add a phản hồi |
0
In my case, the issue was new sites had an implicit deny of all IP addresses unless an explicit allow was created. To fix: Under the site in Features View: Under the IIS Section > IP Address & Domain Restrictions > Edit Feature Settings > Set "Access for unspecified clients:" khổng lồ "Allow"


Share
Improve this answer
Follow
edited Feb 27 "15 at 19:39
Community♦
111 silver badge
answered Feb 27 "15 at 15:05
KenKen
111 bronze badge
Add a phản hồi |
0
Share
Improve sầu this answer
Follow
answered Aquảng cáo 11 "15 at 6:52
Musakkhir SayyedMusakkhir Sayyed
6,3081313 gold badges3838 silver badges6161 bronze badges
Add a comment |

Your Answer


Thanks for contributing an answer to Stack Overflow!

Please be sure to lớn answer the question. Provide details & share your research!

But avoid

Asking for help, clarification, or responding khổng lồ other answers.Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

See more: Phân Biệt Cách Dùng Adopt Và Adapt Là Gì, Adaptation Là Gì


Draft saved
Draft discarded

Sign up or log in


Sign up using Google
Sign up using Facebook
Sign up using Thư điện tử và Password
Submit

Post as a guest


Name
Thư điện tử Required, but never shown


Post as a guest


Name
E-Mail

Required, but never shown


Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy và cookie policy


Not the answer you're looking for? Browse other questions tagged asp.net c#-4.0 web-config or ask your own question.


The Overflow Blog
Featured on Meta
Visit chat
Linked
21
ASP.NET MVC not serving mặc định document
0
.NET website khung application redirect issue
1
Why docker on IIS gives http 403 error after source code change?
0
403 access denied error occure when i cliông chồng khổng lồ an url. I want help regarding this issue
Related
26
Asp.net forms authentication cookie not honoring timeout with IIS7
25
Which one is better, InProc or Squốc lộ Server, for Session State mode in asp.net?
0
ASPhường.NET: 403 - Forbidden: Access is denied. You vì chưng not have sầu permission to view this directory or page using the credentials that you supplied
0
Session.Abandon does not automatically redirect to lớn loginurl in asp.net
0
ASP.NET not redirecting khổng lồ defaultURL automatically after ending session
1
Time outs in asp.net website config settings and security
1
Upgrading Sitecore 8.0 to 8.1 issue (Session state in website config)
Hot Network Questions more hot questions

Question feed
Subscribe to RSS
Question feed To subscribe to lớn this RSS feed, copy và paste this URL into lớn your RSS reader.


lang-cs
Staông chồng Overflow
Products
Company
Stachồng Exchange Network
site kiến thiết / biệu tượng công ty © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.8.18.40012


Staông xã Overflow works best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stachồng Exchange can store cookies on your device & discthua thảm information in accordance with our Cookie Policy.