OK, so it looks like you are doing COM interop. But how does the error manifest itself? is it an exception? If so, what is the exception and the stacktrace. How about putting some tracing code in there to see which of those lines fails.
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Tracing through the application I think the error happens in the following
code when opening the database (SQLServer 2000)
Module UpgradeSupport
Friend DAODBEngine_definst As New DAO.DBEngine
Friend WordGlobal_definst As New Word.Global
End Module
"Richard Blewett [DevelopMentor]" wrote:
here is the statement where it fails
gsnapshotdb = DAODBEngine_definst.OpenDatabase(gstDatabase, False,
False, gstdbconnect)
the error states "type initializer for Myapp.UpgradeSupport threw an
exception.
I want to thank you for trying to help me
> OK, so it looks like you are doing COM interop. But how does the error manifest itself? is it an exception? If so, what is the exception and the stacktrace. How about putting some tracing code in there to see which of those lines fails.
>
[quoted text clipped - 16 lines]
>
> > So what *is* the error then?
Richard Blewett [DevelopMentor] - 07 Dec 2004 13:20 GMT
So is gstDatabase a string to the .mdb file location? is it correct for a network based client?
Regards
Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
here is the statement where it fails
gsnapshotdb = DAODBEngine_definst.OpenDatabase(gstDatabase, False,
False, gstdbconnect)
the error states "type initializer for Myapp.UpgradeSupport threw an
exception.
I want to thank you for trying to help me
"Richard Blewett [DevelopMentor]" wrote:
Rodrigue - 07 Dec 2004 15:29 GMT
Yes it is correct for a network based client. Again I can run the code on the
server and on my box without any problem
> So is gstDatabase a string to the .mdb file location? is it correct for a network based client?
>
[quoted text clipped - 12 lines]
>
> "Richard Blewett [DevelopMentor]" wrote: