开发者

forms authentication web config error

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜