D
dmbuso
I'm migrating a VB.NET 2003 application to VB.NET 2008. The 2003 app used the
June 2005 Enterprise Library while I'm going to use the latest EntLib, 4.0 -
May 2008.
I copied the 2003 app to a new 2008 folder structure, recreated the
app.config using the new 4.0 EntLib config tool, and referenced the 4.0
Microsoft.Practices.EnterpriseLibrary.Data.dll file.
The problem is there is a Function that has errors in it and I'm not sure
how to fix these.
Here are the lines of code and their respective errors:
Dim authConnectString As ConnectionStringData
Error: Type 'ConnectionStringData' is not defined.
authConnectString =
dbSettings.ConnectionStrings.Item(String.Concat(Common.Constants.AuthDbInstanceName, "_CS"))
Error: 'ConnectionStrings' is not a member of
'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings'.
authInstance = New InstanceData(Common.Constants.AuthDbInstanceName)
Error: Argument not specified for parameter 'sample' of 'Public Sub
New(instanceName As String, sample As System.Diagnostics.CounterSample)'.
There are a few more. Please contact me and I'll send you the Function so
you can take a look at it.
June 2005 Enterprise Library while I'm going to use the latest EntLib, 4.0 -
May 2008.
I copied the 2003 app to a new 2008 folder structure, recreated the
app.config using the new 4.0 EntLib config tool, and referenced the 4.0
Microsoft.Practices.EnterpriseLibrary.Data.dll file.
The problem is there is a Function that has errors in it and I'm not sure
how to fix these.
Here are the lines of code and their respective errors:
Dim authConnectString As ConnectionStringData
Error: Type 'ConnectionStringData' is not defined.
authConnectString =
dbSettings.ConnectionStrings.Item(String.Concat(Common.Constants.AuthDbInstanceName, "_CS"))
Error: 'ConnectionStrings' is not a member of
'Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings'.
authInstance = New InstanceData(Common.Constants.AuthDbInstanceName)
Error: Argument not specified for parameter 'sample' of 'Public Sub
New(instanceName As String, sample As System.Diagnostics.CounterSample)'.
There are a few more. Please contact me and I'll send you the Function so
you can take a look at it.