No Source Code Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doug Bell

    #1

    No Source Code Error

    Hi,

    I have been debugging a new VB.Net Application and today, I have been
    getting an error that I have not seen before

    This error is now appearing on a line with the following code:
    lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)

    this line runs fine in another App. The Error that I am getting is:
    "There is no source code available for the current location"

    I do not understand how the Microsoft explanation for this error applies to
    the code that I have?

    Any help appreciated

    Doug



  • CT

    #2
    Re: No Source Code Error

    Are you running in Debug mode (F5)? If so, what result are you getting when
    not running in Debug mode (CTRL+F5)?

    --
    Carsten Thomsen
    Communities - http://community.integratedsolutions.dk

    "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
    news:uAwBC%237z FHA.2924@TK2MSF TNGP15.phx.gbl. ..[color=blue]
    > Hi,
    >
    > I have been debugging a new VB.Net Application and today, I have been
    > getting an error that I have not seen before
    >
    > This error is now appearing on a line with the following code:
    > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
    >
    > this line runs fine in another App. The Error that I am getting is:
    > "There is no source code available for the current location"
    >
    > I do not understand how the Microsoft explanation for this error applies
    > to
    > the code that I have?
    >
    > Any help appreciated
    >
    > Doug
    >
    >
    >[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: No Source Code Error

      "Doug Bell" <PoorSupport@vo daphone.com.au> schrieb:[color=blue]
      > I have been debugging a new VB.Net Application and today, I have been
      > getting an error that I have not seen before
      >
      > This error is now appearing on a line with the following code:
      > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
      >
      > this line runs fine in another App. The Error that I am getting is:
      > "There is no source code available for the current location"[/color]

      Post the complete error message. Maybe the error is occuring inside the
      'DatePart' function and you have configured "Debug" -> "Exceptions ..." to
      break even if the exception is being handled.

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      • Doug Bell

        #4
        Re: No Source Code Error

        That is the complete Error message. No Title or other text.

        If I breake the line up adding:
        dim datMyDate as Date = Now
        Dim i as integer
        i=DatePart(Date Interval.DayOfY ear, datMyDate )
        then it errors on that line

        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
        news:OBb09Y%23z FHA.664@tk2msft ngp13.phx.gbl.. .[color=blue]
        > "Doug Bell" <PoorSupport@vo daphone.com.au> schrieb:[color=green]
        > > I have been debugging a new VB.Net Application and today, I have been
        > > getting an error that I have not seen before
        > >
        > > This error is now appearing on a line with the following code:
        > > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
        > >
        > > this line runs fine in another App. The Error that I am getting is:
        > > "There is no source code available for the current location"[/color]
        >
        > Post the complete error message. Maybe the error is occuring inside the
        > 'DatePart' function and you have configured "Debug" -> "Exceptions ..." to
        > break even if the exception is being handled.
        >
        > --
        > M S Herfried K. Wagner
        > M V P <URL:http://dotnet.mvps.org/>
        > V B <URL:http://classicvb.org/petition/>
        >[/color]


        Comment

        • CT

          #5
          Re: No Source Code Error

          Hmm, the code works fine here. The message "There is no source code
          available for the current location", means that the debugger is trying to
          show the disassembly window. How is your project configured, Debug or
          Release and how are you running it?

          --
          Carsten Thomsen
          Communities - http://community.integratedsolutions.dk

          "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
          news:uYnwnN$zFH A.3772@TK2MSFTN GP12.phx.gbl...[color=blue]
          > That is the complete Error message. No Title or other text.
          >
          > If I breake the line up adding:
          > dim datMyDate as Date = Now
          > Dim i as integer
          > i=DatePart(Date Interval.DayOfY ear, datMyDate )
          > then it errors on that line
          >
          > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
          > news:OBb09Y%23z FHA.664@tk2msft ngp13.phx.gbl.. .[color=green]
          >> "Doug Bell" <PoorSupport@vo daphone.com.au> schrieb:[color=darkred]
          >> > I have been debugging a new VB.Net Application and today, I have been
          >> > getting an error that I have not seen before
          >> >
          >> > This error is now appearing on a line with the following code:
          >> > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
          >> >
          >> > this line runs fine in another App. The Error that I am getting is:
          >> > "There is no source code available for the current location"[/color]
          >>
          >> Post the complete error message. Maybe the error is occuring inside the
          >> 'DatePart' function and you have configured "Debug" -> "Exceptions ..." to
          >> break even if the exception is being handled.
          >>
          >> --
          >> M S Herfried K. Wagner
          >> M V P <URL:http://dotnet.mvps.org/>
          >> V B <URL:http://classicvb.org/petition/>
          >>[/color]
          >
          >[/color]


          Comment

          • Doug Bell

            #6
            Re: No Source Code Error

            Yes running in Debug

            Ctl + F5
            Seems to run through that line (based on setting MsgBoxes)

            I need to step through in Debug to fix other issues.

            Why would it run through using Start without Debugging but not when just
            Start?

            Doug

            "CT" <carstent@spamm ersgoawayintegr asol.dk> wrote in message
            news:OlLJDy8zFH A.800@TK2MSFTNG P12.phx.gbl...[color=blue]
            > Are you running in Debug mode (F5)? If so, what result are you getting[/color]
            when[color=blue]
            > not running in Debug mode (CTRL+F5)?
            >
            > --
            > Carsten Thomsen
            > Communities - http://community.integratedsolutions.dk
            >
            > "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
            > news:uAwBC%237z FHA.2924@TK2MSF TNGP15.phx.gbl. ..[color=green]
            > > Hi,
            > >
            > > I have been debugging a new VB.Net Application and today, I have been
            > > getting an error that I have not seen before
            > >
            > > This error is now appearing on a line with the following code:
            > > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
            > >
            > > this line runs fine in another App. The Error that I am getting is:
            > > "There is no source code available for the current location"
            > >
            > > I do not understand how the Microsoft explanation for this error applies
            > > to
            > > the code that I have?
            > >
            > > Any help appreciated
            > >
            > > Doug
            > >
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • CT

              #7
              Re: No Source Code Error

              Have yout tried deleting both the bin and obj folders, and the rebuild your
              solution before debugging (F5)?

              --
              Carsten Thomsen
              Communities - http://community.integratedsolutions.dk

              "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
              news:Op7RLb$zFH A.2312@TK2MSFTN GP14.phx.gbl...[color=blue]
              > Yes running in Debug
              >
              > Ctl + F5
              > Seems to run through that line (based on setting MsgBoxes)
              >
              > I need to step through in Debug to fix other issues.
              >
              > Why would it run through using Start without Debugging but not when just
              > Start?
              >
              > Doug
              >
              > "CT" <carstent@spamm ersgoawayintegr asol.dk> wrote in message
              > news:OlLJDy8zFH A.800@TK2MSFTNG P12.phx.gbl...[color=green]
              >> Are you running in Debug mode (F5)? If so, what result are you getting[/color]
              > when[color=green]
              >> not running in Debug mode (CTRL+F5)?
              >>
              >> --
              >> Carsten Thomsen
              >> Communities - http://community.integratedsolutions.dk
              >>
              >> "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
              >> news:uAwBC%237z FHA.2924@TK2MSF TNGP15.phx.gbl. ..[color=darkred]
              >> > Hi,
              >> >
              >> > I have been debugging a new VB.Net Application and today, I have been
              >> > getting an error that I have not seen before
              >> >
              >> > This error is now appearing on a line with the following code:
              >> > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
              >> >
              >> > this line runs fine in another App. The Error that I am getting is:
              >> > "There is no source code available for the current location"
              >> >
              >> > I do not understand how the Microsoft explanation for this error
              >> > applies
              >> > to
              >> > the code that I have?
              >> >
              >> > Any help appreciated
              >> >
              >> > Doug
              >> >
              >> >
              >> >[/color]
              >>
              >>[/color]
              >
              >[/color]


              Comment

              • Doug Bell

                #8
                Re: No Source Code Error

                CT Thanks,

                It is configured as Debug
                I run have a main form that loads and enables a timer
                At configurable preset intervals it calls a Class.

                I am trying to debug the code in the class so consequently stepping through
                it.

                I run it by clicking the Start button next to the Debug Combo on the
                toolbar.

                And have set various BreakPoints.

                Doug

                "CT" <carstent@spamm ersgoawayintegr asol.dk> wrote in message
                news:uCB2OV$zFH A.3812@TK2MSFTN GP09.phx.gbl...[color=blue]
                > Hmm, the code works fine here. The message "There is no source code
                > available for the current location", means that the debugger is trying to
                > show the disassembly window. How is your project configured, Debug or
                > Release and how are you running it?
                >
                > --
                > Carsten Thomsen
                > Communities - http://community.integratedsolutions.dk
                >
                > "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
                > news:uYnwnN$zFH A.3772@TK2MSFTN GP12.phx.gbl...[color=green]
                > > That is the complete Error message. No Title or other text.
                > >
                > > If I breake the line up adding:
                > > dim datMyDate as Date = Now
                > > Dim i as integer
                > > i=DatePart(Date Interval.DayOfY ear, datMyDate )
                > > then it errors on that line
                > >
                > > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
                > > news:OBb09Y%23z FHA.664@tk2msft ngp13.phx.gbl.. .[color=darkred]
                > >> "Doug Bell" <PoorSupport@vo daphone.com.au> schrieb:
                > >> > I have been debugging a new VB.Net Application and today, I have been
                > >> > getting an error that I have not seen before
                > >> >
                > >> > This error is now appearing on a line with the following code:
                > >> > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
                > >> >
                > >> > this line runs fine in another App. The Error that I am getting is:
                > >> > "There is no source code available for the current location"
                > >>
                > >> Post the complete error message. Maybe the error is occuring inside[/color][/color][/color]
                the[color=blue][color=green][color=darkred]
                > >> 'DatePart' function and you have configured "Debug" -> "Exceptions ..."[/color][/color][/color]
                to[color=blue][color=green][color=darkred]
                > >> break even if the exception is being handled.
                > >>
                > >> --
                > >> M S Herfried K. Wagner
                > >> M V P <URL:http://dotnet.mvps.org/>
                > >> V B <URL:http://classicvb.org/petition/>
                > >>[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • Doug Bell

                  #9
                  Re: No Source Code Error

                  CT,
                  Thanks
                  Deleting bin and obj folders and building the Solution has completely solved
                  the problem.

                  Doug


                  "CT" <carstent@spamm ersgoawayintegr asol.dk> wrote in message
                  news:eKHz5x$zFH A.268@TK2MSFTNG P09.phx.gbl...[color=blue]
                  > Have yout tried deleting both the bin and obj folders, and the rebuild[/color]
                  your[color=blue]
                  > solution before debugging (F5)?
                  >
                  > --
                  > Carsten Thomsen
                  > Communities - http://community.integratedsolutions.dk
                  >
                  > "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
                  > news:Op7RLb$zFH A.2312@TK2MSFTN GP14.phx.gbl...[color=green]
                  > > Yes running in Debug
                  > >
                  > > Ctl + F5
                  > > Seems to run through that line (based on setting MsgBoxes)
                  > >
                  > > I need to step through in Debug to fix other issues.
                  > >
                  > > Why would it run through using Start without Debugging but not when just
                  > > Start?
                  > >
                  > > Doug
                  > >
                  > > "CT" <carstent@spamm ersgoawayintegr asol.dk> wrote in message
                  > > news:OlLJDy8zFH A.800@TK2MSFTNG P12.phx.gbl...[color=darkred]
                  > >> Are you running in Debug mode (F5)? If so, what result are you getting[/color]
                  > > when[color=darkred]
                  > >> not running in Debug mode (CTRL+F5)?
                  > >>
                  > >> --
                  > >> Carsten Thomsen
                  > >> Communities - http://community.integratedsolutions.dk
                  > >>
                  > >> "Doug Bell" <PoorSupport@vo daphone.com.au> wrote in message
                  > >> news:uAwBC%237z FHA.2924@TK2MSF TNGP15.phx.gbl. ..
                  > >> > Hi,
                  > >> >
                  > >> > I have been debugging a new VB.Net Application and today, I have been
                  > >> > getting an error that I have not seen before
                  > >> >
                  > >> > This error is now appearing on a line with the following code:
                  > >> > lnGUID = lnGUID * 1000 + DatePart(DateIn terval.DayOfYea r, Now)
                  > >> >
                  > >> > this line runs fine in another App. The Error that I am getting is:
                  > >> > "There is no source code available for the current location"
                  > >> >
                  > >> > I do not understand how the Microsoft explanation for this error
                  > >> > applies
                  > >> > to
                  > >> > the code that I have?
                  > >> >
                  > >> > Any help appreciated
                  > >> >
                  > >> > Doug
                  > >> >
                  > >> >
                  > >> >
                  > >>
                  > >>[/color]
                  > >
                  > >[/color]
                  >
                  >[/color]


                  Comment

                  Working...