Join 300,337 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,660 people online right now. Registration is fast and FREE... Join Now!
After i build the database at desktop, a setup occurs in my desktop.when i click the setup to install.Then i get a new program at my startup, and i click the new installed program, i get this error message.
At the details,
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.IO.FileNotFoundException: Could not find file 'C:\Documents and Settings\welight_meng\Local Settings\Apps\2.0\X7OYGH9Z.28D\Y69OHDD9.MJB\labd..tion_37c629b09a2d04a0_0002.0001_414f206230faced4\mystudents.txt'. File name: 'C:\Documents and Settings\welight_meng\Local Settings\Apps\2.0\X7OYGH9Z.28D\Y69OHDD9.MJB\labd..tion_37c629b09a2d04a0_0002.0001_414f206230faced4\mystudents.txt' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) at System.IO.StreamReader..ctor(String path) at System.IO.File.OpenText(String path) at makmal.Form3.Form3_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
Anyone help me?i can provide the code if anyone want the code for further information.
have you included the mystudents.txt file in your setup
have you checked where is the file is placed after it gets installed
post your code so that i can help you
CODE
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If NotFirstTime = False Then NotFirstTime = True Me.Hide() 'Me refers to the form you are on secondForm.ShowDialog() End End If
TextBox8.Text = "None" Dim sr As IO.StreamReader = IO.File.OpenText("mystudents.txt") Dim z, k As Integer Dim temp As String Dim i As Integer numcourses = 0 arraysize = 0 ListBox2.Items.Clear()
my problems solved by run and type the destination file. But i want delete the student.txt and run the program smoothly.Can u help me?
CODE
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sr As IO.StreamReader = IO.File.OpenText("mystudents.txt") Dim z, k As Integer Dim temp As String Dim i As Integer RadioButton1.Enabled = True GroupBox2.Enabled = False GroupBox1.Enabled = True