Home All Groups Group Topic Archive Search About

Exception message using EnterpriseLibrary.Data

Author
29 Mar 2006 11:57 AM
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

Author
29 Mar 2006 12:01 PM
wapsiii
Sorry. I've put

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



On Wed, 29 Mar 2006 13:57:55 +0200, wapsiii <waps***@otmail.com>
wrote:

Show quote
>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

AddThis Social Bookmark Button