Authorization and Profile Application Block generates errors when using whithin Web Application

From: Cello (mjaspan_at_hotmail.com)
Date: 12/24/04


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



Relevant Pages

  • How can the location roles be read from the web.config file?
    ... I have a config file such as this: ... As you can see there are two directories 'Admin' and 'Account' which have ... Gery D. Dorazio ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: authentication mode for specific files?
    ... the web config. ... I have an img tag to an image in ... config file to specify specific files that do not require ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: web.config question
    ... "bill" wrote in message ... > my web.config for a specific folder that checks IP ... > config file that would allow access only from specific IP ... There is no built-in authorization module which restricts by IP address. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ADAM and Authorization and Profile Application Block
    ... but that is not using the Authorization and Profile Application Block. ... > implementing an Authorization and Profilation system based on ADAM. ... > ADAM (I had found a non Microsoft site about ADAM development but I ...
    (microsoft.public.windows.server.active_directory)
  • AzManProvider is not declared & The type or namespace name Interop does not exist ERROR
    ... I am running Windows 2000 Advance Server SP4. ... Authorization and Profile Application Block and tried to Build it but I ... namespace 'Microsoft' " ...
    (microsoft.public.dotnet.distributed_apps)

Loading