clr20r3 problem
-
The original message was a clr20r3 message - clr20r3, P1 getmetsatdata.exe, P2 2.1.21.5, P3 4ad621e6, P4 getmetsatdata, P5 2.1.21.5, P6 4ad621e6, P7 20, P8 c6, P9 system.invalidoperationexception, P10 NIL. I have searched the Internet, and here, and got lots of answers as to how to find out what this error is and have managed to get the program to create a text file on hitting the unhandled exception which tells me this is a 'network path not found error', so I got it to output the stack trace which tells me this: 17/10/2009 11:34:12 Unhandled exception on start up at GetMetSatData.My.MyProject.MyForms.Create__Instance__[T](T Instance) at GetMetSatData.My.MyProject.MyForms.get_FGetMetSat() at GetMetSatData.My.MyApplication.OnCreateMainForm() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() This does not happen of the development machine by the way , but on 2 (or more) XP machines on which it has been installed. My problem is that I have absolutely no idea what 'network path' this is referring to!
-
The original message was a clr20r3 message - clr20r3, P1 getmetsatdata.exe, P2 2.1.21.5, P3 4ad621e6, P4 getmetsatdata, P5 2.1.21.5, P6 4ad621e6, P7 20, P8 c6, P9 system.invalidoperationexception, P10 NIL. I have searched the Internet, and here, and got lots of answers as to how to find out what this error is and have managed to get the program to create a text file on hitting the unhandled exception which tells me this is a 'network path not found error', so I got it to output the stack trace which tells me this: 17/10/2009 11:34:12 Unhandled exception on start up at GetMetSatData.My.MyProject.MyForms.Create__Instance__[T](T Instance) at GetMetSatData.My.MyProject.MyForms.get_FGetMetSat() at GetMetSatData.My.MyApplication.OnCreateMainForm() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() This does not happen of the development machine by the way , but on 2 (or more) XP machines on which it has been installed. My problem is that I have absolutely no idea what 'network path' this is referring to!
Not enough information to answer the question. What do the app do?? What does the app do on startup?? Are you using any threading in the app?? What is going on in the threaded sections??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
The original message was a clr20r3 message - clr20r3, P1 getmetsatdata.exe, P2 2.1.21.5, P3 4ad621e6, P4 getmetsatdata, P5 2.1.21.5, P6 4ad621e6, P7 20, P8 c6, P9 system.invalidoperationexception, P10 NIL. I have searched the Internet, and here, and got lots of answers as to how to find out what this error is and have managed to get the program to create a text file on hitting the unhandled exception which tells me this is a 'network path not found error', so I got it to output the stack trace which tells me this: 17/10/2009 11:34:12 Unhandled exception on start up at GetMetSatData.My.MyProject.MyForms.Create__Instance__[T](T Instance) at GetMetSatData.My.MyProject.MyForms.get_FGetMetSat() at GetMetSatData.My.MyApplication.OnCreateMainForm() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() This does not happen of the development machine by the way , but on 2 (or more) XP machines on which it has been installed. My problem is that I have absolutely no idea what 'network path' this is referring to!
-
Not enough information to answer the question. What do the app do?? What does the app do on startup?? Are you using any threading in the app?? What is going on in the threaded sections??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...The app collects satellite pictures from the EUMETSAT site. On startup it checks the registry, but it never gets as far as that as it crashes even before it writes the first event log entry. There is no threading.
Private Sub FGetMetSat\_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim intLoop As Integer = 0 Dim listErrors As New List(Of String) Try EventLog1.WriteEntry("MetSatGetter " & Application.ProductVersion & " was started: " & Now.ToString, EventLogEntryType.Information, 60000) If RegistrySet() = False Then Dim myKey As RegistryKey = My.Computer.Registry.CurrentUser.OpenSubKey("Software\\DA Software\\MetSat\\Imagery\\MSG\\IR039\\COL\\AMERICA", False) If myKey Is Nothing = True Then 'We may have a problem here - false overwrite listErrors = Registry\_Setup() If listErrors.Count > 0 Then SaveErrorList(listErrors) End If Else If MsgBox("Problem: Your settings are indicating that the program registry was not installed, but one of the keys was found possibly indicating " \_ & "that registry entries have been removed, or some other problem has occurred." & vbCrLf & vbCrLf \_ & "MetSatGetter will now re-create the keys unless you click 'Cancel'. Note recreating the keys will overwrite any settings.", \_ MsgBoxStyle.OkCancel + MsgBoxStyle.Critical, "Met Sat Getter") = MsgBoxResult.Cancel Then 'User is cancelling m\_bRegLoadError = True For intLoop = 0 To Me.cmsMain.Items.Count - 2 Me.cmsMain.Items(intLoop).Enabled = False Next MsgBox("Please wait for the program to terminate. This should happen in about 1 minute, or you can terminate it yourself.", MsgBoxStyle.Information, "Met Sat Getter") Else listErrors = Registry\_Setup() If listErrors.Count > 0 Then m\_bRegLoadError = True SaveErrorList(listErrors) Else ParseTasks() Me.trayIcon.Text = "Met Sat Getter - " & Tasks.Count.ToString &
-
The app collects satellite pictures from the EUMETSAT site. On startup it checks the registry, but it never gets as far as that as it crashes even before it writes the first event log entry. There is no threading.
Private Sub FGetMetSat\_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim intLoop As Integer = 0 Dim listErrors As New List(Of String) Try EventLog1.WriteEntry("MetSatGetter " & Application.ProductVersion & " was started: " & Now.ToString, EventLogEntryType.Information, 60000) If RegistrySet() = False Then Dim myKey As RegistryKey = My.Computer.Registry.CurrentUser.OpenSubKey("Software\\DA Software\\MetSat\\Imagery\\MSG\\IR039\\COL\\AMERICA", False) If myKey Is Nothing = True Then 'We may have a problem here - false overwrite listErrors = Registry\_Setup() If listErrors.Count > 0 Then SaveErrorList(listErrors) End If Else If MsgBox("Problem: Your settings are indicating that the program registry was not installed, but one of the keys was found possibly indicating " \_ & "that registry entries have been removed, or some other problem has occurred." & vbCrLf & vbCrLf \_ & "MetSatGetter will now re-create the keys unless you click 'Cancel'. Note recreating the keys will overwrite any settings.", \_ MsgBoxStyle.OkCancel + MsgBoxStyle.Critical, "Met Sat Getter") = MsgBoxResult.Cancel Then 'User is cancelling m\_bRegLoadError = True For intLoop = 0 To Me.cmsMain.Items.Count - 2 Me.cmsMain.Items(intLoop).Enabled = False Next MsgBox("Please wait for the program to terminate. This should happen in about 1 minute, or you can terminate it yourself.", MsgBoxStyle.Information, "Met Sat Getter") Else listErrors = Registry\_Setup() If listErrors.Count > 0 Then m\_bRegLoadError = True SaveErrorList(listErrors) Else ParseTasks() Me.trayIcon.Text = "Met Sat Getter - " & Tasks.Count.ToString &
OK, all of this looks decent. I'd move on to the Form's constructor (New method) and whatever is in the InitializeComponent method. This could mean that you have a problem with a control on the form.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
The app collects satellite pictures from the EUMETSAT site. On startup it checks the registry, but it never gets as far as that as it crashes even before it writes the first event log entry. There is no threading.
Private Sub FGetMetSat\_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim intLoop As Integer = 0 Dim listErrors As New List(Of String) Try EventLog1.WriteEntry("MetSatGetter " & Application.ProductVersion & " was started: " & Now.ToString, EventLogEntryType.Information, 60000) If RegistrySet() = False Then Dim myKey As RegistryKey = My.Computer.Registry.CurrentUser.OpenSubKey("Software\\DA Software\\MetSat\\Imagery\\MSG\\IR039\\COL\\AMERICA", False) If myKey Is Nothing = True Then 'We may have a problem here - false overwrite listErrors = Registry\_Setup() If listErrors.Count > 0 Then SaveErrorList(listErrors) End If Else If MsgBox("Problem: Your settings are indicating that the program registry was not installed, but one of the keys was found possibly indicating " \_ & "that registry entries have been removed, or some other problem has occurred." & vbCrLf & vbCrLf \_ & "MetSatGetter will now re-create the keys unless you click 'Cancel'. Note recreating the keys will overwrite any settings.", \_ MsgBoxStyle.OkCancel + MsgBoxStyle.Critical, "Met Sat Getter") = MsgBoxResult.Cancel Then 'User is cancelling m\_bRegLoadError = True For intLoop = 0 To Me.cmsMain.Items.Count - 2 Me.cmsMain.Items(intLoop).Enabled = False Next MsgBox("Please wait for the program to terminate. This should happen in about 1 minute, or you can terminate it yourself.", MsgBoxStyle.Information, "Met Sat Getter") Else listErrors = Registry\_Setup() If listErrors.Count > 0 Then m\_bRegLoadError = True SaveErrorList(listErrors) Else ParseTasks() Me.trayIcon.Text = "Met Sat Getter - " & Tasks.Count.ToString &
-
OK, all of this looks decent. I'd move on to the Form's constructor (New method) and whatever is in the InitializeComponent method. This could mean that you have a problem with a control on the form.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...The programmer had sat at his machine most of the weekend so far tearing out his hair and burning the midnight oil. He looked though every single line of code, those produced by him and those produced by VS. Nothing, no answers. Every run on a different machine failed. On Sunday he received a mail from Dave Kreskowiak, a coder supreme, a God amongst programmers. Heartened that Dave thought his code looked OK, the programmer was never the less still tearing his hair out. Dave said "and whatever is in the InitializeComponent method". Huh? He thinks I have not looked at that a million times. OK, well one last time. The programmer saw something, and hung his head in abject shame. If this was the cause of several days of heartache he deserved a good kicking. In the EventLog control property he had filled the name of the LocalMachine with his machine's name! :-O Was this the cause ----> :thumbsup: Oh yes it was. Once replaced with a dot everything worked. The programmer gave thanks to Dave :rose:, groveling on the floor before the greatness of the man and thinking, my name may be as his, but it will be many years before I aspire to such greatness. He then went out side to kick himself thoroughly.:mad: :mad:
-
The programmer had sat at his machine most of the weekend so far tearing out his hair and burning the midnight oil. He looked though every single line of code, those produced by him and those produced by VS. Nothing, no answers. Every run on a different machine failed. On Sunday he received a mail from Dave Kreskowiak, a coder supreme, a God amongst programmers. Heartened that Dave thought his code looked OK, the programmer was never the less still tearing his hair out. Dave said "and whatever is in the InitializeComponent method". Huh? He thinks I have not looked at that a million times. OK, well one last time. The programmer saw something, and hung his head in abject shame. If this was the cause of several days of heartache he deserved a good kicking. In the EventLog control property he had filled the name of the LocalMachine with his machine's name! :-O Was this the cause ----> :thumbsup: Oh yes it was. Once replaced with a dot everything worked. The programmer gave thanks to Dave :rose:, groveling on the floor before the greatness of the man and thinking, my name may be as his, but it will be many years before I aspire to such greatness. He then went out side to kick himself thoroughly.:mad: :mad:
TheComputerMan wrote:
a God amongst programmers
:wtf: Hardly. But, I am willing to accept a sacrifice! :laugh:
TheComputerMan wrote:
Dave said "and whatever is in the InitializeComponent method". Huh? He thinks I have not looked at that a million times. OK, well one last time.
2 clues pointed in that direction after seeing the code. First, the error you originally posted was an unheandled exception. Second, you said it never made an event log entry. That was pretty much the first line of code in the Load handler, so it appears that it never got this far. The order for execution of a Form start's with the contructor, then goes to InitializeComponent, then the Load event is raised, where your Load handler gets called. Those two clues says that either the New method (constructor) failed, but it's rare to find code in a Form's New method, or in InitializeComponent, which New calls by default. Also, You normally don't find Try/Catch blocks in InitializeComponent so the exception most likely came from there.
TheComputerMan wrote:
groveling on the floor before the greatness of the man
You can get up now. I work for a living. I can only wish I could sit around and have my wife feed me grapes all day.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...