Simply cant see it.....

Topics: Validation Application Block
Jan 31, 2009 at 8:57 AM
Hi
I am starting to learn VAB,,, and have tried to follow a couple tutorials on the internet. It seems simple enough,,,, but...........

I get the following error message.............

"Method 'CreateObject' in type 'Microsoft.Practices.EnterpriseLibrary.Validation.Instrumentation.ValidationInstrumentationListenerCustomFactory' from assembly 'Microsoft.Practices.EnterpriseLibrary.Validation, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation."

....... when doing something like

string this [ string columnName]
{
    get { return CheckProperty(columnName); }
}

 

private string CheckProperty(string name)
{
    ValidationResults results = Microsoft.Practices.EnterpriseLibrary.Validation.Validation.Validate(this);
    ...
    ...
}

As you can see se,,, I am using IDataErrorInfo on my Business entities and I using MEF.


Please,,, open my eyes,,, :)

//lasse

 

 

 

 

Feb 2, 2009 at 4:15 AM
Would you mind showing the structure of the class you're validating? And other details in order for me to repro your error.


Sarah Urmeneta
Global Technology & Solutions
Avanade, Inc.
entlib.support@avanade.com
Feb 2, 2009 at 4:00 PM
Hi
It seems like my problems vanished when I removed some unused references to old assemblies.

//lasse