0

After deep googling I'm not found any solution or ways to troubleshoot my problem, so ask here. In first part of web.config

......
   <location path="DevReg.aspx">
    <system.web>
      <authorization>
        <allow roles="C,csvImportExport"/>
        <deny users="*,?"/>
      </authorization>
    </system.web>
  </location>
.......
  <system.web>
    <roleManager enabled="true" defaultProvider="MyRoleProvider">
      <providers>
        <clear />
        <add name="MyRoleProvider" type="DataAccess.Common.MyRoleProvider, DataAccess" applicationName="myapp" />
      </providers>
    </roleManager>
  </system.web>
.......

Main WebApp in other project in the same solution. When I run app in Visual Studio provider run fine -- authorization work as must, I also can call my provider from code (e.g IsUserInRole return right result). But after deployment to local IIS (Win 7/ IIS 7.5). I tried with VirtualDirectory and with WebApp with no luck.

When my app run in IIS look like server never use Role provider, only call Initialize method on start and newer more.

Please give me right direction to troubleshoot this problem, if need I will show more details.

sage444
  • 5,661
  • 4
  • 33
  • 60

2 Answers2

0

create a new Application Pool with Managed Pipeline Mode set to Integrated. Set the Identity value to NetworkService. After this set the newly created Application Pool as Application Pool of the site.

Krishanu Dey
  • 6,326
  • 7
  • 51
  • 69
  • Thanks you for reply, this changed nothing but can you provide some explanation about your suggestion, this may get me some point to research – sage444 May 21 '12 at 12:20
0

After changing point of view I found the problem. In project we also using one ugly HttpHandler with a row: Context.SkipAuthorization = true; that make all my troubles.

sage444
  • 5,661
  • 4
  • 33
  • 60