|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
distributing softwareI thought that one of the basics of .net was that you could just "xcopy"
the finished software to another machine provided it had the .net framework. I have a program which I converted from vb6. It uses an access style database (.mdb). If I copy this and interopdao.dll to another PC that PC cannot open the DB. Any ideas gratefully received Thanks -
Show quote
Hide quote
"Jack Russell" <ja***@norubbish.tpg.com.au> wrote in message 1. You need the .net framework version you are targeting. It sounds like news:OfVnlH97JHA.1372@TK2MSFTNGP05.phx.gbl... >I thought that one of the basics of .net was that you could just "xcopy" >the finished software to another machine provided it had the .net >framework. > > I have a program which I converted from vb6. It uses an access style > database (.mdb). > > If I copy this and interopdao.dll to another PC that PC cannot open the > DB. > > Any ideas gratefully received > > Thanks > - that is there, otherwise the application would not start. 2. You need the drivers for the db. Access style databases don't exist for 64 bit OSs. A work arround for that issue is to build for 32 bit OSs. To help with your issue, you need to include what the actual error is, as well as perhaps the lines of code that give the error. -- Mike Code is
On Error Resume Next trainmake = DAODBEngine_definst.OpenDatabase(traindb) If trainmake Is Nothing Then MsgBox("Could not open Database " & traindb) If Err.Number <> 0 Then MsgBox("Error during open:" & Err.Number & "/" & ErrorToString(Err.Number)) Stop End If I get error 5 , procedure call or argument is not valid What are the drivers that I need, I did not have to disribute anything with VB. Indeed the PC did not even need access installed Thanks Jack Russell Family Tree Mike wrote: Show quoteHide quote > "Jack Russell" <ja***@norubbish.tpg.com.au> wrote in message > news:OfVnlH97JHA.1372@TK2MSFTNGP05.phx.gbl... >> I thought that one of the basics of .net was that you could just >> "xcopy" the finished software to another machine provided it had the >> .net framework. >> >> I have a program which I converted from vb6. It uses an access style >> database (.mdb). >> >> If I copy this and interopdao.dll to another PC that PC cannot open >> the DB. >> >> Any ideas gratefully received >> >> Thanks >> - > > > 1. You need the .net framework version you are targeting. It sounds > like that is there, otherwise the application would not start. > 2. You need the drivers for the db. Access style databases don't exist > for 64 bit OSs. A work arround for that issue is to build for 32 bit > OSs. To help with your issue, you need to include what the actual error > is, as well as perhaps the lines of code that give the error. Jack,
In past it was not uncommon the sot the mdb file in the program folder, that is not allowed anymore in Vista and Windows 7 This kind of issues have therefore not to do with xcopy but simply with security settings Cor Show quoteHide quote "Jack Russell" <ja***@norubbish.tpg.com.au> wrote in message news:OfVnlH97JHA.1372@TK2MSFTNGP05.phx.gbl... >I thought that one of the basics of .net was that you could just "xcopy" >the finished software to another machine provided it had the .net >framework. > > I have a program which I converted from vb6. It uses an access style > database (.mdb). > > If I copy this and interopdao.dll to another PC that PC cannot open the > DB. > > Any ideas gratefully received > > Thanks > - Cor,
I am running XP and have put it in its own folder on the main drive having encountered the Vista "Program files" debacle with other programs. Jack Cor Ligthert[MVP] wrote: Show quoteHide quote > Jack, > > In past it was not uncommon the sot the mdb file in the program folder, > that is not allowed anymore in Vista and Windows 7 > > This kind of issues have therefore not to do with xcopy but simply with > security settings > > Cor > > "Jack Russell" <ja***@norubbish.tpg.com.au> wrote in message > news:OfVnlH97JHA.1372@TK2MSFTNGP05.phx.gbl... >> I thought that one of the basics of .net was that you could just >> "xcopy" the finished software to another machine provided it had the >> .net framework. >> >> I have a program which I converted from vb6. It uses an access style >> database (.mdb). >> >> If I copy this and interopdao.dll to another PC that PC cannot open >> the DB. >> >> Any ideas gratefully received >> >> Thanks >> - > Jack Russell wrote:
> I thought that one of the basics of .net was that you could just "xcopy" You are using Interop (ie, old COM DLLs) so you cannot expect to just be > the finished software to another machine provided it had the .net > framework. > > I have a program which I converted from vb6. It uses an access style > database (.mdb). > > If I copy this and interopdao.dll to another PC that PC cannot open the DB. > > Any ideas gratefully received > > Thanks > - able to xcopy deploy your .NET program. You will still need to install DAO (probably Jet 4.0). Howerver, you don't say what version of Jet/Access you're using, so we can only guess the answer. One place you can get the components you require (apart from Microsoft) is: http://www.randem.com/support.html HTH
Need some help from VB Programmers...
How to hide base class member variable in derived class (w/o shadows)? Visual Basic is Dead! serialPort receive problem Application Icon language for databases Creating user friendly error messages for SqlExceptions Is this a bug? SerialPort in vista QBasic 4.5 modules in VB.Net? |
|||||||||||||||||||||||