Last post Apr 22, 2008 06:53 PM by mark peters
Feb 25, 2008 03:27 AM|bagga|LINK
I am trying to extend the security application block by creating a class that inherits from
AuthorizationProvider. I am pretty much following the directions in the help file. I am using a website project.
Everything works well when this class is part of an external assembly. However if I add this class to my App_Code folder then I get an exception. Following is the exception:
The type 'AuthorizationMan1' cannot be resolved. Please verify the spelling is correct or that the full type name is provided.
Following is the relevant section from my web.config
Here is a trivial version of the class:
public class AuthorizationMan1 : AuthorizationProvider
public AuthorizationMan1(NameValueCollection configurationItems)
public override bool Authorize(IPrincipal principal, string context)
So how should I be declaring the 'type' attribute if I wish to have this class in my App_Code folder? My understanding was that assembly name does not need to be included if the class is in the App_Code folder..
Apr 22, 2008 06:53 PM|mark peters|LINK
I don't have the answer, but am having a similar question with defining the type= in web.config for the EHAB.. I put the custom classes in their own assembly, installed it in the GAC and still can't get it to find it.. (I get a similar error as you mentioned)
Please let me know what you find if you get an answer! (email@example.com)