Problems when pinging

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry Spence1

    #1

    Problems when pinging

    I am doing:

    My.Computer.Net work.Ping("192. 168.0.1", 2000)

    I often (but not always) get the following error:

    System.Net.Netw orkInformation. PingException: An exception occurred during a
    Ping request. ---System.AccessVi olationExceptio n: Attempted to read or
    write protected memory. This is often an indication that other memory is
    corrupt.

    I see several references to this on Google and also a claimed fix from
    Microsoft, but this fix didn't work. I get the following:

    "The upgrade patch cannot be installed by the windows installer service
    because the program to be upgraded may be missing, or the upgrade patch may
    update a different version of the program."
    The refence for this fix is here: http://support.microsoft.com/kb/923028

    I am running .NET 2.0 and VB2005, which is exactly what is required by the
    fix.

    If I download .NET 3.5, how do I tell my VB application to use this instead
    of 2.0? I can't find a reference to the version of .NET in the IDE.

    -Jerry





  • Michel Posseth  [MCP]

    #2
    Re: Problems when pinging

    Hello Jerry,

    There is ofcourse also the posibility that your memory banks are not in such
    a good state as you might believe ( hardware flaw )
    so i would say test it also on another computer first and / or run memtest
    386 to be sure http://support.dunaweb.hu/UTIL/memtest386/?C=M;O=A
    If I download .NET 3.5, how do I tell my VB application to use this
    instead
    of 2.0? I can't find a reference to the version of .NET in the IDE.
    AFAIK : you can only do this with VS.net 2008 there you have the option to
    use the 2.0 or 3.5 framework ( advanced compile options )




    "Jerry Spence1" <123@dfgh.comsc hreef in bericht
    news:13pofd2fsf 9j3d7@corp.supe rnews.com...
    >I am doing:
    >
    My.Computer.Net work.Ping("192. 168.0.1", 2000)
    >
    I often (but not always) get the following error:
    >
    System.Net.Netw orkInformation. PingException: An exception occurred during
    a
    Ping request. ---System.AccessVi olationExceptio n: Attempted to read or
    write protected memory. This is often an indication that other memory is
    corrupt.
    >
    I see several references to this on Google and also a claimed fix from
    Microsoft, but this fix didn't work. I get the following:
    >
    "The upgrade patch cannot be installed by the windows installer service
    because the program to be upgraded may be missing, or the upgrade patch
    may
    update a different version of the program."
    The refence for this fix is here: http://support.microsoft.com/kb/923028
    >
    I am running .NET 2.0 and VB2005, which is exactly what is required by the
    fix.
    >
    If I download .NET 3.5, how do I tell my VB application to use this
    instead
    of 2.0? I can't find a reference to the version of .NET in the IDE.
    >
    -Jerry
    >
    >
    >
    >
    >

    Comment

    • Jerry Spence1

      #3
      Re: Problems when pinging

      Thanks Michel. I sould have mentioned that this happens on a number of
      production PCs as well, and I was going to ask also if this patch should be
      applied to all the target PC's or just the one the code is developed on. The
      Microsoft artcle doesn't make this clear.

      So on VB2005, does it automatically use the latest version of .NET it finds
      installed? If I put 3.5 on the target PC, does it automatically use this, or
      will it always use the same version as I compiled on?

      -Jerry


      "Michel Posseth [MCP]" <MSDN@posseth.c omwrote in message
      news:eQq1iXNYIH A.5396@TK2MSFTN GP02.phx.gbl...
      Hello Jerry,
      >
      There is ofcourse also the posibility that your memory banks are not in
      such a good state as you might believe ( hardware flaw )
      so i would say test it also on another computer first and / or run
      memtest 386 to be sure http://support.dunaweb.hu/UTIL/memtest386/?C=M;O=A
      >
      >If I download .NET 3.5, how do I tell my VB application to use this
      >instead
      >of 2.0? I can't find a reference to the version of .NET in the IDE.
      >
      AFAIK : you can only do this with VS.net 2008 there you have the option to
      use the 2.0 or 3.5 framework ( advanced compile options )
      >
      >
      >
      >
      "Jerry Spence1" <123@dfgh.comsc hreef in bericht
      news:13pofd2fsf 9j3d7@corp.supe rnews.com...
      >>I am doing:
      >>
      >My.Computer.Ne twork.Ping("192 .168.0.1", 2000)
      >>
      >I often (but not always) get the following error:
      >>
      >System.Net.Net workInformation .PingException: An exception occurred during
      >a
      >Ping request. ---System.AccessVi olationExceptio n: Attempted to read or
      >write protected memory. This is often an indication that other memory is
      >corrupt.
      >>
      >I see several references to this on Google and also a claimed fix from
      >Microsoft, but this fix didn't work. I get the following:
      >>
      >"The upgrade patch cannot be installed by the windows installer service
      >because the program to be upgraded may be missing, or the upgrade patch
      >may
      >update a different version of the program."
      >The refence for this fix is here: http://support.microsoft.com/kb/923028
      >>
      >I am running .NET 2.0 and VB2005, which is exactly what is required by
      >the
      >fix.
      >>
      >If I download .NET 3.5, how do I tell my VB application to use this
      >instead
      >of 2.0? I can't find a reference to the version of .NET in the IDE.
      >>
      >-Jerry
      >>
      >>
      >>
      >>
      >>
      >
      >

      Comment

      • Bill McCarthy

        #4
        Re: Problems when pinging

        Hi Jerry,

        First of, the KB article you referred to, is included in .NET 2.0 SP1. So
        if you have 2.0 SP1 you don't need the hotfix. That's probably why it isn't
        installing for you.

        As to 3.5, well 3.5 is 2.0 SP1 really, and then added features such as LINQ
        libraries, WPF, WCF, Cardspace and Workflow libraries. The runtime is still
        the CLR version 2, and the 2.0 SP1 libraries are the same. So installing
        3.5 will not change anything for a 2.0 SP1 application at all.




        "Jerry Spence1" <123@dfgh.comwr ote in message
        news:13ppbudnps anfc2@corp.supe rnews.com...
        Thanks Michel. I sould have mentioned that this happens on a number of
        production PCs as well, and I was going to ask also if this patch should
        be applied to all the target PC's or just the one the code is developed
        on. The Microsoft artcle doesn't make this clear.
        >
        So on VB2005, does it automatically use the latest version of .NET it
        finds installed? If I put 3.5 on the target PC, does it automatically use
        this, or will it always use the same version as I compiled on?
        >
        -Jerry
        >
        >
        "Michel Posseth [MCP]" <MSDN@posseth.c omwrote in message
        news:eQq1iXNYIH A.5396@TK2MSFTN GP02.phx.gbl...
        >Hello Jerry,
        >>
        >There is ofcourse also the posibility that your memory banks are not in
        >such a good state as you might believe ( hardware flaw )
        >so i would say test it also on another computer first and / or run
        >memtest 386 to be sure http://support.dunaweb.hu/UTIL/memtest386/?C=M;O=A
        >>
        >>If I download .NET 3.5, how do I tell my VB application to use this
        >>instead
        >>of 2.0? I can't find a reference to the version of .NET in the IDE.
        >>
        >AFAIK : you can only do this with VS.net 2008 there you have the option
        >to use the 2.0 or 3.5 framework ( advanced compile options )
        >>
        >>
        >>
        >>
        >"Jerry Spence1" <123@dfgh.comsc hreef in bericht
        >news:13pofd2fs f9j3d7@corp.sup ernews.com...
        >>>I am doing:
        >>>
        >>My.Computer.N etwork.Ping("19 2.168.0.1", 2000)
        >>>
        >>I often (but not always) get the following error:
        >>>
        >>System.Net.Ne tworkInformatio n.PingException : An exception occurred
        >>during a
        >>Ping request. ---System.AccessVi olationExceptio n: Attempted to read or
        >>write protected memory. This is often an indication that other memory is
        >>corrupt.
        >>>
        >>I see several references to this on Google and also a claimed fix from
        >>Microsoft, but this fix didn't work. I get the following:
        >>>
        >>"The upgrade patch cannot be installed by the windows installer service
        >>because the program to be upgraded may be missing, or the upgrade patch
        >>may
        >>update a different version of the program."
        >>The refence for this fix is here: http://support.microsoft.com/kb/923028
        >>>
        >>I am running .NET 2.0 and VB2005, which is exactly what is required by
        >>the
        >>fix.
        >>>
        >>If I download .NET 3.5, how do I tell my VB application to use this
        >>instead
        >>of 2.0? I can't find a reference to the version of .NET in the IDE.
        >>>
        >>-Jerry
        >>>
        >>>
        >>>
        >>>
        >>>
        >>
        >>
        >
        >

        Comment

        • Jerry Spence1

          #5
          Re: Problems when pinging

          Thanks Bill. I've upgraded to SP1 but unfortunately the problem still
          exists. I guess this is a Microsoft Bug. Do Microsoft read this news group?

          -Jerry

          "Bill McCarthy" <Bill@NOSPAM.co mwrote in message
          news:322BD0CA-DBD7-4245-9642-CC6F9F0DD5CB@mi crosoft.com...
          Hi Jerry,
          >
          First of, the KB article you referred to, is included in .NET 2.0 SP1. So
          if you have 2.0 SP1 you don't need the hotfix. That's probably why it
          isn't installing for you.
          >
          As to 3.5, well 3.5 is 2.0 SP1 really, and then added features such as
          LINQ libraries, WPF, WCF, Cardspace and Workflow libraries. The runtime
          is still the CLR version 2, and the 2.0 SP1 libraries are the same. So
          installing 3.5 will not change anything for a 2.0 SP1 application at all.
          >
          >
          >
          >
          "Jerry Spence1" <123@dfgh.comwr ote in message
          news:13ppbudnps anfc2@corp.supe rnews.com...
          >Thanks Michel. I sould have mentioned that this happens on a number of
          >production PCs as well, and I was going to ask also if this patch should
          >be applied to all the target PC's or just the one the code is developed
          >on. The Microsoft artcle doesn't make this clear.
          >>
          >So on VB2005, does it automatically use the latest version of .NET it
          >finds installed? If I put 3.5 on the target PC, does it automatically use
          >this, or will it always use the same version as I compiled on?
          >>
          >-Jerry
          >>
          >>
          >"Michel Posseth [MCP]" <MSDN@posseth.c omwrote in message
          >news:eQq1iXNYI HA.5396@TK2MSFT NGP02.phx.gbl.. .
          >>Hello Jerry,
          >>>
          >>There is ofcourse also the posibility that your memory banks are not in
          >>such a good state as you might believe ( hardware flaw )
          >>so i would say test it also on another computer first and / or run
          >>memtest 386 to be sure
          >>http://support.dunaweb.hu/UTIL/memtest386/?C=M;O=A
          >>>
          >>>If I download .NET 3.5, how do I tell my VB application to use this
          >>>instead
          >>>of 2.0? I can't find a reference to the version of .NET in the IDE.
          >>>
          >>AFAIK : you can only do this with VS.net 2008 there you have the option
          >>to use the 2.0 or 3.5 framework ( advanced compile options )
          >>>
          >>>
          >>>
          >>>
          >>"Jerry Spence1" <123@dfgh.comsc hreef in bericht
          >>news:13pofd2f sf9j3d7@corp.su pernews.com...
          >>>>I am doing:
          >>>>
          >>>My.Computer. Network.Ping("1 92.168.0.1", 2000)
          >>>>
          >>>I often (but not always) get the following error:
          >>>>
          >>>System.Net.N etworkInformati on.PingExceptio n: An exception occurred
          >>>during a
          >>>Ping request. ---System.AccessVi olationExceptio n: Attempted to read
          >>>or
          >>>write protected memory. This is often an indication that other memory
          >>>is
          >>>corrupt.
          >>>>
          >>>I see several references to this on Google and also a claimed fix from
          >>>Microsoft, but this fix didn't work. I get the following:
          >>>>
          >>>"The upgrade patch cannot be installed by the windows installer service
          >>>because the program to be upgraded may be missing, or the upgrade patch
          >>>may
          >>>update a different version of the program."
          >>>The refence for this fix is here:
          >>>http://support.microsoft.com/kb/923028
          >>>>
          >>>I am running .NET 2.0 and VB2005, which is exactly what is required by
          >>>the
          >>>fix.
          >>>>
          >>>If I download .NET 3.5, how do I tell my VB application to use this
          >>>instead
          >>>of 2.0? I can't find a reference to the version of .NET in the IDE.
          >>>>
          >>>-Jerry
          >>>>
          >>>>
          >>>>
          >>>>
          >>>>
          >>>
          >>>
          >>
          >>
          >

          Comment

          • Bill McCarthy

            #6
            Re: Problems when pinging

            It appears they do, but that may only be for MSDN subscribers ?? What I
            would suggest is you report it as a bug, in the new bug feedback forum:

            Although it doesn't look like anyone responds at all in there yet ;)

            In the meantime, I'd suggest wrapping your Ping calling into a separate
            function with a Try Catch block around the Ping call, and perhaps a loop for
            a number of retries. Sorry can't be of more help.



            "Jerry Spence1" <123@dfgh.comwr ote in message
            news:13psscm6sd 91j2f@corp.supe rnews.com...
            Thanks Bill. I've upgraded to SP1 but unfortunately the problem still
            exists. I guess this is a Microsoft Bug. Do Microsoft read this news
            group?
            >
            -Jerry
            >
            "Bill McCarthy" <Bill@NOSPAM.co mwrote in message
            news:322BD0CA-DBD7-4245-9642-CC6F9F0DD5CB@mi crosoft.com...
            >Hi Jerry,
            >>
            >First of, the KB article you referred to, is included in .NET 2.0 SP1.
            >So if you have 2.0 SP1 you don't need the hotfix. That's probably why it
            >isn't installing for you.
            >>
            >As to 3.5, well 3.5 is 2.0 SP1 really, and then added features such as
            >LINQ libraries, WPF, WCF, Cardspace and Workflow libraries. The runtime
            >is still the CLR version 2, and the 2.0 SP1 libraries are the same. So
            >installing 3.5 will not change anything for a 2.0 SP1 application at all.
            >>
            >>
            >>
            >>
            >"Jerry Spence1" <123@dfgh.comwr ote in message
            >news:13ppbudnp sanfc2@corp.sup ernews.com...
            >>Thanks Michel. I sould have mentioned that this happens on a number of
            >>production PCs as well, and I was going to ask also if this patch should
            >>be applied to all the target PC's or just the one the code is developed
            >>on. The Microsoft artcle doesn't make this clear.
            >>>
            >>So on VB2005, does it automatically use the latest version of .NET it
            >>finds installed? If I put 3.5 on the target PC, does it automatically
            >>use this, or will it always use the same version as I compiled on?
            >>>
            >>-Jerry
            >>>
            >>>
            >>"Michel Posseth [MCP]" <MSDN@posseth.c omwrote in message
            >>news:eQq1iXNY IHA.5396@TK2MSF TNGP02.phx.gbl. ..
            >>>Hello Jerry,
            >>>>
            >>>There is ofcourse also the posibility that your memory banks are not in
            >>>such a good state as you might believe ( hardware flaw )
            >>>so i would say test it also on another computer first and / or run
            >>>memtest 386 to be sure
            >>>http://support.dunaweb.hu/UTIL/memtest386/?C=M;O=A
            >>>>
            >>>>If I download .NET 3.5, how do I tell my VB application to use this
            >>>>instead
            >>>>of 2.0? I can't find a reference to the version of .NET in the IDE.
            >>>>
            >>>AFAIK : you can only do this with VS.net 2008 there you have the option
            >>>to use the 2.0 or 3.5 framework ( advanced compile options )
            >>>>
            >>>>
            >>>>
            >>>>
            >>>"Jerry Spence1" <123@dfgh.comsc hreef in bericht
            >>>news:13pofd2 fsf9j3d7@corp.s upernews.com...
            >>>>>I am doing:
            >>>>>
            >>>>My.Computer .Network.Ping(" 192.168.0.1", 2000)
            >>>>>
            >>>>I often (but not always) get the following error:
            >>>>>
            >>>>System.Net. NetworkInformat ion.PingExcepti on: An exception occurred
            >>>>during a
            >>>>Ping request. ---System.AccessVi olationExceptio n: Attempted to read
            >>>>or
            >>>>write protected memory. This is often an indication that other memory
            >>>>is
            >>>>corrupt.
            >>>>>
            >>>>I see several references to this on Google and also a claimed fix from
            >>>>Microsoft , but this fix didn't work. I get the following:
            >>>>>
            >>>>"The upgrade patch cannot be installed by the windows installer
            >>>>service
            >>>>because the program to be upgraded may be missing, or the upgrade
            >>>>patch may
            >>>>update a different version of the program."
            >>>>The refence for this fix is here:
            >>>>http://support.microsoft.com/kb/923028
            >>>>>
            >>>>I am running .NET 2.0 and VB2005, which is exactly what is required by
            >>>>the
            >>>>fix.
            >>>>>
            >>>>If I download .NET 3.5, how do I tell my VB application to use this
            >>>>instead
            >>>>of 2.0? I can't find a reference to the version of .NET in the IDE.
            >>>>>
            >>>>-Jerry
            >>>>>
            >>>>>
            >>>>>
            >>>>>
            >>>>>
            >>>>
            >>>>
            >>>
            >>>
            >>
            >
            >

            Comment

            Working...