401 WebResource.axd的 [英] 401 (Unauthorized) WebResource.axd

查看:77
本文介绍了401 WebResource.axd的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有固定与Windows身份验证和角色提供一个网站,但该网站也有一个公共的部分,允许访问任何人。

I have a website that is secured with windows authentication and role provider, however the site also has a public section that allows access by anyone.

<location path="Public">
    <system.web>
      <authorization>
        <allow users="*" />
        <allow users="?" />
      </authorization>
    </system.web>
</location>

公共页面与所需的字段验证等一些DevEx preSS控制数据输入页

The public page is a data entry page with some DevExpress Controls with required field validation etc.

页面试图访问WebResource.axd的,并得到这个错误:无法加载资源:服务器与401状态(未授权)

The page is trying to access WebResource.axd and is failing with this error: Failed to load resource: the server responded with a status of 401 (Unauthorized)

我怎样才能从公共页面授予WebResource.axd的访问,同时保持对网站的其余部分?

How can I grant access to WebResource.axd from the public pages while maintaining the permissions on the rest of the site?

推荐答案

尝试一些这样的事。

   <location path="path for your axd file">
      <system.web>    
         <authorization>
            <allow users="?" />
         </authorization>
      </system.web>
   </location>

这篇关于401 WebResource.axd的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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