开发者

Access Rules created by WSAT are not enforced

I'm trying to implement roles in my site.

There are several projects in the solution, one of which is a web application.

In that web applicati开发者_C百科on, I'm trying to use WSAT to create three roles. There are many folders for the application. I've used WSAT to define role based access rules for each folder.

However, when I debug and navigate to those pages, they do not redirect to a login and show me the protected page.

There are web.config files in each folder.

Why would the system not enforce these rules?

My web.config file has:

<roleManager enabled="true" defaultProvider="AspNetSqlProvider" />

I've tested the connections in WSAT and they work.

Any ideas?


try

<roleManager enabled="true"/>

Also, please edit your question to provide the web.config from one of your subdirectories.


Yes, I fixed the problem.

A previous developer had cleared all the HTTP modules. Since all the modules were disabled, the authentication module wasn't part of the asp.net pipeline.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜