开发者

Configuration Error on roleManager in web.config on subdirectory

开发者 https://www.devze.com 2023-03-22 02:50 出处:网络
I am getting an err开发者_开发问答or in my web.config fileat <rolemanager enabled=\"false\"> can any one tell how to resolve this

I am getting an err开发者_开发问答or in my web.config file at <rolemanager enabled="false"> can any one tell how to resolve this

Configuration Error on roleManager in web.config on subdirectory


Verify that your virtual directory is configured as an application in IIS.

http://learn.iis.net/page.aspx/150/understanding-sites-applications-and-virtual-directories-on-iis-7/


It seems that you have not created virtual directory. just create a virtual directory by going to IIS Manager


From what I see in the screen shot, you have a second web.config in a subdirectory.

In this web.config you are not allowed to add this lines, except if you make this subdirectory a new web application, something that I do not suggest to.

So you can not add this commands on the subdirectories web.config, only on root. To handle some special events in the subdirectories you need to use the code behind and a little programming.

0

精彩评论

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