Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. clr20r3 problem

clr20r3 problem

Scheduled Pinned Locked Moved Visual Basic
helpsysadmindata-structuresdebuggingtutorial
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheComputerMan
    wrote on last edited by
    #1

    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!

    D 0 2 Replies Last reply
    0
    • T TheComputerMan

      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!

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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...

      T 1 Reply Last reply
      0
      • T TheComputerMan

        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!

        0 Offline
        0 Offline
        0x3c0
        wrote on last edited by
        #3

        You're getting an error in the form FGetMetSat's constructor (I think). Beyond that, I've got no idea. More information please?

        OSDev :)

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          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...

          T Offline
          T Offline
          TheComputerMan
          wrote on last edited by
          #4

          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 &
          
          D L 2 Replies Last reply
          0
          • T TheComputerMan

            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 &
            
            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            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...

            T 1 Reply Last reply
            0
            • T TheComputerMan

              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 &
              
              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Log the entire ex.ToString(), the stack-trace could contain some clues. Create a dummy-testapplication that writes the text "Hello World" to the event-log. Ditto for the registry :)

              I are Troll :)

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                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...

                T Offline
                T Offline
                TheComputerMan
                wrote on last edited by
                #7

                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:

                D 1 Reply Last reply
                0
                • T TheComputerMan

                  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:

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  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...

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups