Dependency Injection error

Posts   
 
    
ftuttle
User
Posts: 40
Joined: 10-Dec-2006
# Posted on: 05-Oct-2007 20:34:34   

I moved by DAL layer to use the new 2.5 version of code gen. I made no other changes and I am not using dependency Injection and i am getting this error:

The type initializer for 'SD.LLBLGen.Pro.ORMSupportClasses.DependencyInjectionInfoProviderSingleton' threw an exception

When at this point in code:

adapter.FetchEntityCollection(EntNote, Nothing)

I am using:

Friend EntNote As New EntityCollection(Of ConfigNoteEntity)(New ConfigNoteEntityFactory())

I am also referencing the 2.5 version of SD.LLBLGen.Pro.ORMSupportClasses.

Any ideas on what is causing this? I am not sure what to do.

ftuttle
User
Posts: 40
Joined: 10-Dec-2006
# Posted on: 05-Oct-2007 20:44:38   

I found the problem:

There was a config file in Documents and Settings that was old but was still being read. I deleted that file folder and it works.

C:\Documents and Settings\ABS\Local Settings\Application Data.....