b3jsd73jfx
Active member
- Joined
- Mar 6, 2006
- Messages
- 28
- Programming Experience
- 1-3
Ok, I have a program that compiles and runs fine under visual studio.net 2003. I have copied this program to many other computers and it works fine. I recently upgraded to visual studio.net 2005 and the program runs fine on my computer. But when I try to run the program on another computer, I get an error. Here's the code that i'm having issues with:
Now I am running this on a network drive, but I've increased all security policies to Full Trust and I still cannot get it to work. The error I get is "Object reference not set to instance of an object". I know the error occurs on the Dim Reader as new IO.StreamReader line.
If I copy the files locally though, the program runs fine. The only thing is, I can't copy the files locally on the other computers because of how we run our work systems. Anyone have any ideas?
VB.NET:
Public DB as String
Dim Reader As New IO.StreamReader("BrentDB.txt")
DB = Reader.ReadLine
Reader.Close()
If I copy the files locally though, the program runs fine. The only thing is, I can't copy the files locally on the other computers because of how we run our work systems. Anyone have any ideas?