-
Aug 15th, 2013, 10:46 PM
#1
Thread Starter
Lively Member
type initializer exception on opening Foxpro database with DAO
Greetings - I am trying to convert a VB6 program to VB2008
Opening the project in VB2008 took me through a conversion wizard, and converted the following vb6 code...
Set dbCompany = OpenDatabase(strDatabase, dbDriverComplete, False, "FoxPro 2.6")
to VB2008 code...
Dim dbCompany As DAO.Database
dbCompany = DAODBEngine_definst.OpenDatabase(strDatabase, DAO.DriverPromptEnum.dbDriverComplete, False, "FoxPro 2.6")
This compiles and runs on my pc.
My problem is that it doesnt run when transferred to a different pc - I get the following error as soon as I try and run it...
"The type initializer for VisiHH_ImportJobEstimates.UpgradeSupport threw an exception"
(I know it is this line because the program starts if I comment out this line)
Does the new pc require something that it does not have?
I did a build, and copied all files to the new pc from my obj\release directory.
I even tried did Publish and copied over my publish directory and ran setup (though its just one program)
Alternatively - is there some other way that I should be connecting to the foxpro database?
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|