Type Initializition exception in DataProviderFactory

Topics: Developer Forum, User Forum
Jul 23, 2009 at 10:50 PM

Hi,

When I start debugging I get an exception when trying to load the provider assembly, "activeProvider = Assembly.Load(providerName);".

I'm using version 4.1 of ENTLIB can this be the cause?

Aug 1, 2009 at 10:05 AM

Same problem here, anyone can fix it??

Thank You.

Aug 3, 2009 at 9:31 AM

I solved the problem copy the missing .dll in the bin folder of the presentation I'm using.

IE, copy ManagedDesigns.Northwind.Data.Hibernate.dll or ManagedDesigns.Northwind.Data.SqlServer.dll (if u change the provider in the config file like me)

in the folder ..\Baseline-branch-2.0\src\ManagedDesigns.Northwind.Windows.UI\bin\Debug

next if u try to run another bug will came up, u have to download DataAccessApplicationBlock.msi, intall it and compile, after copy the dll

Microsoft.ApplicationBlocks.Data.dll in the same folder as before.

I have tested the right working of the project using Windows form and sql provider, still have some problem with Nhibernate.

Hope this can help.