Authorization and Profile Application Block generates errors when using whithin Web Application
From: Cello (mjaspan_at_hotmail.com)
Date: 12/24/04
- Next message: Sam Santiago: "Re: Page_Load Event Fires Twice"
- Previous message: Cello: "Re: AzManProvider is not declared & The type or namespace name Interop does not exist ERROR"
- Messages sorted by: [ date ] [ thread ]
Date: 24 Dec 2004 12:22:19 -0800
Dear Group,
I am trying to use the "Authorization and Profile Application Block"
inside my Web Application, however, I keep getting the following error:
Note: I have started out by taking all that I needed from the
"AuthorizationProviderQuickStart" example which happens to be a console
application and have ported it to my Web Application.
Here is the error:
Parser Error Message: File or assembly name
XmlFileBasedAuthorizationProvider, or one of its dependencies, was not
found.
Interestingly, this error doesn't make much sence since the real error
happens here (I found this by stepping through the code...):
Referenced Class:
Microsoft.ApplicationBlocks.Common::ProviderManagerBase::GetProvider
On Line 35 -> IDictionary providers =
ConfigurationSettings.GetConfig(configSection) as IDictionary;
Clearly, this method cannot find my config file entries... I have
tried adding the required configSections to the Web.Config and to all
sorts of .config files whithin my solution (i.e: App.Config,
AppName.config, Appname.exe.config and etc...)
This is the code I need this method to be able to find:
<configSections>
<section name="authorizationProviders"
type="Microsoft.ApplicationBlocks.Common.ProviderConfigHandler,
Microsoft.ApplicationBlocks.Common" />
</configSections>
<authorizationProviders>
<provider name="XmlFileBasedAuthorizationProvider"
type="EmployeeReview.XmlFileBasedAuthorizationProvider,
XmlFileBasedAuthorizationProvider">
<storeLocation>CustomXmlAuthzInfo.xml</storeLocation>
<identitiesSupported>
<identityName>primaryIdentity</identityName>
</identitiesSupported>
</provider>
</authorizationProviders>
Thank you in advance,
Cello
- Next message: Sam Santiago: "Re: Page_Load Event Fires Twice"
- Previous message: Cello: "Re: AzManProvider is not declared & The type or namespace name Interop does not exist ERROR"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|