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.Pract ices.Enterprise Library.Data.dl l 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 authConnectStri ng As ConnectionStrin gData
Error: Type 'ConnectionStri ngData' is not defined.
authConnectStri ng =
dbSettings.Conn ectionStrings.I tem(String.Conc at(Common.Const ants.AuthDbInst anceName, "_CS"))
Error: 'ConnectionStri ngs' is not a member of
'Microsoft.Prac tices.Enterpris eLibrary.Data.C onfiguration.Da tabaseSettings' .
authInstance = New InstanceData(Co mmon.Constants. AuthDbInstanceN ame)
Error: Argument not specified for parameter 'sample' of 'Public Sub
New(instanceNam e As String, sample As System.Diagnost ics.CounterSamp le)'.
There are a few more. Please contact me and I'll send you the Function so
you can take a look at it.
--
Thanks,
Dave B.
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.Pract ices.Enterprise Library.Data.dl l 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 authConnectStri ng As ConnectionStrin gData
Error: Type 'ConnectionStri ngData' is not defined.
authConnectStri ng =
dbSettings.Conn ectionStrings.I tem(String.Conc at(Common.Const ants.AuthDbInst anceName, "_CS"))
Error: 'ConnectionStri ngs' is not a member of
'Microsoft.Prac tices.Enterpris eLibrary.Data.C onfiguration.Da tabaseSettings' .
authInstance = New InstanceData(Co mmon.Constants. AuthDbInstanceN ame)
Error: Argument not specified for parameter 'sample' of 'Public Sub
New(instanceNam e As String, sample As System.Diagnost ics.CounterSamp le)'.
There are a few more. Please contact me and I'll send you the Function so
you can take a look at it.
--
Thanks,
Dave B.
Comment