NetSqlAzManRoleProvider causing parser error

Nov 12, 2009 at 7:46 PM

Parser Error Message: Invalid object name 'dbo.netsqlazman_Stores'.

Source Error:

Line 51:       <providers>
Line 52:         <clear/>
Line 53:         <add name="NetSqlAzManRoleProvider" type="NetSqlAzMan.Providers.NetSqlAzManRoleProvider" connectionStringName="SECURITYCONNECTION" storeName="TestStore" applicationName="TestApplication" userLookupType="DB" defaultDomain=""/>
Line 54:         <!-- UserLookupType options: { LDAP, DB } -->
Line 55:         <!-- Leave DefaultDomain blank if userLookupType=="DB" (DB users) -->

below configuration in web.config file causing  above parser error

<roleManager defaultProvider="NetSqlAzManRoleProvider"
                 enabled="true"
                 cacheRolesInCookie="false"
                 cookieName=".ASPROLES"
                 cookieTimeout="30"
                 cookiePath="/"
                 cookieRequireSSL="false"
                 cookieSlidingExpiration="true"
                 cookieProtection="All">
      <providers>
        <clear/>
        <add name="NetSqlAzManRoleProvider"
             type="NetSqlAzMan.Providers.NetSqlAzManRoleProvider"
             connectionStringName="SECURITYCONNECTION"
             storeName="TestStore"
             applicationName="TestApplication"
             userLookupType="DB" defaultDomain=""/>
        <!-- UserLookupType options: { LDAP, DB } -->
        <!-- Leave DefaultDomain blank if userLookupType=="DB" (DB users) -->
      </providers>
    </roleManager>

Any ideas?

 

Thanks,

Satya

 

 

Coordinator
Nov 12, 2009 at 8:51 PM

Hi Satya,

this kind of error occurs in two cases:
1) the connection string does not refer to a valid NetSqlAzMan database schema
2) You are using a previous NetSqlazman DB version (previous to 3.6.0.0)

Regards,
Andrea.

Nov 13, 2009 at 2:40 PM

Yes, my connection string is wrong and it pointing to correct database now.

Thanks,

Satya.