System.TyepInitialization.Exception w connection
I've written a small app that worked fine on my laptop. The laptop is running windows 2000 with the .net framwork and development environment installed. I moved the exe and pdb generated by the build to one of our servers. This server has the .net framework on it. For some reason when I run it on this server I get the following error:
An exception 'System.TyepInitialization.Exception' has occurred in Myprogram.exe
The app did a number of things but, for the sake of debugging this problem, I've stripped eveything else out. All I have now is a public sub main with nothing in it and a global declartion at the top of the module:
Dim myConnection As New System.Data.OleDb.OleDbConnection()
That's all. If this declaration in there it causes the error. If it is commented out, the program runs (though it doesn't do anything).
We have other exe's running on this same server that also declare a New System.Data.OleDb.OleDbConnection() and they work fine. I added the adodb reference but the problem is still there. Any suggestions?