开发者

forms authentication web config error

开发者 https://www.devze.com 2023-02-06 05:04 出处:网络
I am incorporating forms authentic开发者_JAVA百科ation into a new app, I have deny users=\"?\" in the web.config I would like all javascript/css/images to be accessible so i included

I am incorporating forms authentic开发者_JAVA百科ation into a new app, I have deny users="?" in the web.config I would like all javascript/css/images to be accessible so i included

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

I am receiving an error stating The element 'system.web' has invalid child element location.

I don't understand why this is being generated. Can someone explain why, and a possible fix for this. Thank you very much


Solved:

The location element needs to be in the configuration section and not in the system.web.

the reasoning is it is part of the application configuration not how it runs.

0

精彩评论

暂无评论...
验证码 换一张
取 消