Geeks With Blogs
Shailen Sukul blog July 2006 Entries
Things to watch out for when implementing a custom role provider
I recently implemented a custom role provider for an project and discovered an interesting point. I had to instantiate a role business component in the custom provider class like so: public class MyRoleProvider : RoleProvider { BLRole blRole = null; public MyRoleProvider() { blRole = new BLRole(); } All I could see on at runtime was: Parser Error Message: Exception has been thrown by the target of an invocation. I moved the instantiation code into the Initialize block and hey pretso, the ......

Posted On Sunday, July 30, 2006 4:57 PM

Copyright © Shailen Sukul | Powered by: