Exception message using EnterpriseLibrary.Data

  • Thread starter Thread starter wapsiii
  • Start date Start date
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
 
Sorry. I've put

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