Hello everybody
4 years ago I have made my own VB.Net aplication. I was never an expert in programming but I have accomplished a good working application, and I used it a lot. It is a program of about 10.000 lines of code.
Now I have to change a very small part as a consequence of a new computer environment. And as you will see the program isn't working anymore. My problem is that most of the knowledge I have required 4 years ago, is lost. So I find it hard to try to make some alternatives.
What is the problem:
One of the tasks of the program is creating a text file, let say bones.txt
When I try to run the program and create and save the text file, I got an error saying:
"An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The network path was not found"
But the strange thing is. When I make a new very small VB.Net application with only the specific program lines isolated, I don't get the error, and it works very well. When I copy the code back to the original to make sure that I have the same lines, I got the error again.
I hope somebody recognize this problem, and can give a clue for the solution.
Thank you, Plutiko
I forgot to mention I work with version 2002. I don't know if that matters
4 years ago I have made my own VB.Net aplication. I was never an expert in programming but I have accomplished a good working application, and I used it a lot. It is a program of about 10.000 lines of code.
Now I have to change a very small part as a consequence of a new computer environment. And as you will see the program isn't working anymore. My problem is that most of the knowledge I have required 4 years ago, is lost. So I find it hard to try to make some alternatives.
What is the problem:
One of the tasks of the program is creating a text file, let say bones.txt
Private Sub btnAtom_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAtom.Click
Atom()
End Sub
Private Sub Atom()
Dim stream As New StreamWriter("C:\bones.txt", False)
stream.WriteLine("gooooooo")
stream.Flush()
stream.Close()
End Sub
When I try to run the program and create and save the text file, I got an error saying:
"An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The network path was not found"
But the strange thing is. When I make a new very small VB.Net application with only the specific program lines isolated, I don't get the error, and it works very well. When I copy the code back to the original to make sure that I have the same lines, I got the error again.
I hope somebody recognize this problem, and can give a clue for the solution.
Thank you, Plutiko
I forgot to mention I work with version 2002. I don't know if that matters