Hi,
I using the Security Application Block from the Enterprise Library in my
application.
I'm getting the following error message:
There is an error in the XML document. The specified type was not
recognized: name='DbRolesProviderData',
namespace='http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/security',
at <rolesProvider
xmlns='http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/security'>.
I'd admit I'm not the full bottle on XML. Can someone please let me know
where the problem is. I have attached the XML from the file in question
below.
<?xml version="1.0" encoding="utf-8"?>
<securityConfiguration>
<xmlSerializerSection
type="Microsoft.Practices.EnterpriseLibrary.Securi ty.Configuration.SecuritySettings, Microsoft.Practices.EnterpriseLibrary.Security">
<enterpriseLibrary.securitySettings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
defaultAuthorizationInstance="RuleProvider"
defaultAuthenticationInstance="Authentication Provider"
defaultRolesInstance="Roles Provider" defaultProfileInstance="Profile
Provider" defaultSecurityCacheInstance="Caching Store Provider"
xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/security">
<rolesProviders>
<rolesProvider xsi:type="DbRolesProviderData" name="Roles Provider"
database="TimemasterAccess" />
</rolesProviders>
<authorizationProviders>
<authorizationProvider xsi:type="AuthorizationRuleProviderData"
name="RuleProvider">
<rules>
<rule name="Hire Employee" expression="R:Manager OR
R:HumanResources" />
<rule name="Print Document" expression="NOT I:?" />
<rule name="Submit New Order" expression="(R:Employee AND (NOT
I:Bob))" />
</rules>
</authorizationProvider>
</authorizationProviders>
<authenticationProviders>
<authenticationProvider xsi:type="DbAuthenticationProviderData"
name="Authentication Provider" database="TimemasterAccess"
hashProvider="sha1" />
</authenticationProviders>
<profileProviders>
<profileProvider xsi:type="DbProfileProviderData" name="Profile
Provider" database="TimemasterAccess" />
</profileProviders>
<securityCacheProviders>
<securityCacheProvider xsi:type="CachingStoreProviderData"
name="Caching Store Provider" cacheManagerInstanceName="Default Cache
Manager" defaultSlidingSessionExpirationInMinutes="10"
defaultAbsoluteSessionExpirationInMinutes="60" />
</securityCacheProviders>
</enterpriseLibrary.securitySettings>
</xmlSerializerSection>
</securityConfiguration>