403 - 禁止:访问被拒绝.您无权使用您提供的凭据查看此目录或页面 [英] 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied

查看:33
本文介绍了403 - 禁止:访问被拒绝.您无权使用您提供的凭据查看此目录或页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的网站.第一次可以成功登录.

默认地址:

www.abc.com

我在浏览器上输入了这个,然后重定向到了我的登录页面:

www.abc.com/pages/landingpage.aspx

我输入了我的登录凭据并登录了该站点.

一段时间后,我打开了一个新标签并输入了我的网站地址

www.abc.com

现在它给了我一个错误:

<块引用>

403 - 禁止:访问被拒绝.
您没有使用权限查看此目录或页面您提供的凭据.

整个故事是这样的:如果我没有登录我的网站,那么我可以打开我网站的标签和浏览器数量.但是一旦我登录我的网站,我就会收到上述错误.

 <身份验证模式=表单"><表单名称=MMFormAUTH"loginUrl="页面/LandingPage.aspx";defaultUrl="Pages/LandingPage.aspx";超时=60"保护=所有"滑动到期=真"enableCrossAppRedirects="false";requireSSL =假"/></认证><授权><拒绝用户=?"/></授权><sessionState cookieless="false";cookieName=abc"模式=InProc"超时=60"></sessionState><httpRuntime maxRequestLength="1000240";executionTimeout=120";/>

解决方案

试试这个

 

现在您正在使用 <deny users="?"/> 这意味着您不允许经过身份验证的用户使用您的站点.

授权元素

I have my website. First time I can successfully login.

Default address:

www.abc.com   

I typed this on browser and I redirected to my login page:

www.abc.com/pages/landingpage.aspx

I entered my login credential and log into the site.

After some time I opened a new tab and enter my website address

www.abc.com

Now it gives me an error:

403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the 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.

 <authentication mode="Forms">
  <forms name="MMFormAUTH" loginUrl="Pages/LandingPage.aspx" defaultUrl="Pages/LandingPage.aspx" timeout="60" protection="All" slidingExpiration="true" enableCrossAppRedirects="false" requireSSL="false" />
</authentication>
<authorization>
  <deny users="?" />
</authorization>
<sessionState cookieless="false" cookieName="abc" mode="InProc" timeout="60">
</sessionState>
<httpRuntime maxRequestLength="1000240" executionTimeout="120" />

解决方案

Try this

 <allow  users="?" />

Now you are using <deny users="?" /> that means you are not allowing authenticated user to use your site.

authorization Element

这篇关于403 - 禁止:访问被拒绝.您无权使用您提供的凭据查看此目录或页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆