Click here to Skip to main content
16,021,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a winform,WPF two projects in same solution.In winform used Microsoft.Practices.EnterpriseLibrary.If i run this winform project it wont throe any exception and inserts data into database. when i call this winform in wpf button click, it throws above exception

exception:The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView' threw an exception

at the line: Database db = DatabaseFactory.CreateDatabase();

any idea to solve ..please help me
Posted
Comments
ZurdoDev 29-Aug-13 7:46am    
Is there an inner exception? Something that gives more details?
keerth516 29-Aug-13 8:59am    
I get this exception nothing else..





Check this[^]
 
Share this answer
 
Add below dll it will solve your problem,

Microsoft.Practices.EnterpriseLibrary.Data.dll
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900