data layer thread proccess error

Topics: Data Access Application Block, Enterprise Library Core
Nov 29, 2008 at 8:23 PM

I korking with the data component, but when execute the  “DatabaseFactory.CreateDatabase();” the following exception rise “Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized.”

I trance the error to the “this.dbProviderFactory = dbProviderFactory;” into the "public abstract class Database : IInstrumentationEventProvider" this not set any value at any time.

How I can fix it?

Dec 2, 2008 at 6:08 AM

Can you post your code? or send me your sample solution. so i can have a look.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.