Exception message using EnterpriseLibrary.Data

W

wapsiii

I'm getting an exception message using EnterpriseLibrary.Data block.

In the profiler I can see that the sql i fired in the sql database.

Imports Microsoft.Practices.EnterpriseLibrary.Data

Dim db As Database = DatabaseFactory.CreateDatabase
Dim cmd As DBCommandWrapper = db.GetSqlStringCommandWrapper(sql)
Dim ds As DataSet = db.ExecuteDataSet(cmd)

I'm getting the following ex.Message:

"The type initializer for
"Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataCommandFailedEvent"
threw an exception."

I'm not sure what this is all about!

\M
 
W

wapsiii

Sorry. I've put

the <enterpriselibrary.configurationSettings node in my web.config
inside the <appSettings> node.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top