ReadWriteAuthorization Extender Control

ReadWriteAuthorization Extender Control

Old forum URL: forums.lhotka.net/forums/t/481.aspx


Pradeep posted on Tuesday, June 27, 2006

Hi all,

I am trying to implement the CSLA 2.0's ReadWriteAuthorization Extender control in .Net 1.1 version.

I created the control and when I drag and drop the control onto my form, I got an error

"An exception occured while trying to create an instance of CSLA.Security.ReadWriteAuthorization. The exception was "Constructor on type CSLA.Security.ReadWriteAuthorization not found "."

The code in the book says we have to have a constructor of the format.

public ReadWriteAuthorization(IContainer container)

Think this suppressed the default constructor. I then added a default constructor and I am able to add it to my form.

Just want to make sure, if this idea will work for 1.1 version of .Net. I don't want to spend couple of days trying to implement it and figure out it would not work. If any one have any experience in this, please let me know about it.

Thank You

Pradeep

 

Pradeep replied on Tuesday, June 27, 2006

I figured it out. It's working in 1.1 version as well..

ajj3085 replied on Tuesday, June 27, 2006

You're right, the presence of the IContainer constructor will cause the default constructor to not be created (unless explicitly defined).

I don't know of anyone that's backported that control, so I think you are treading new water here.

Good luck!
Andy

Brian Criswell replied on Tuesday, June 27, 2006

I backported this a couple of months ago, along with authorization rules and a couple other things.  You can take what you want from this.  The only thing I changed about the extender control was to hide controls that a user did not have access to.  I did not use it much because I changed over to CSLA 2.0 shortly after.

Copyright (c) Marimer LLC