How can I debug into the Temporary ASP.NET Files folder?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Warren Tang

    How can I debug into the Temporary ASP.NET Files folder?


    Hi

    I am trying to debug the code generated for aspx files. The following
    assembly is generated for an aspx page:

    App_Web_webform 1.aspx.19c0ab3f .kajnxlqq.dll!A SP.main_test_we bform1_aspx.Pro cessRequest(Sys tem.We...

    However when I click on the it in the Call Stack window, it says:

    There is no source code available for the current location.

    I know the location of the .cs file (in the Temporary ASP.NET Files
    folder). But how can I tell Visual Studio to use that source code file?

    Thanks.

    Regards
    Warren
  • Michael Nemtsev [MVP]

    #2
    Re: How can I debug into the Temporary ASP.NET Files folder?

    Hello Warren,

    Why do u want to debug this stuff?!
    is it your component or what?!

    ---
    WBR,
    Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour
    :: http://twitter.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    WTHi
    WT>
    WTI am trying to debug the code generated for aspx files. The
    WTfollowing assembly is generated for an aspx page:
    WT>
    WTApp_Web_webfo rm1.aspx.19c0ab 3f.kajnxlqq.dll !ASP.main_test_ webform1_a
    WTspx.ProcessRe quest(System.We ...
    WT>
    WTHowever when I click on the it in the Call Stack window, it says:
    WT>
    WTThere is no source code available for the current location.
    WT>
    WTI know the location of the .cs file (in the Temporary ASP.NET Files
    WTfolder). But how can I tell Visual Studio to use that source code
    WTfile?
    WT>
    WTThanks.
    WT>
    WTRegards
    WTWarren


    Comment

    • Warren Tang

      #3
      Re: How can I debug into the Temporary ASP.NET Files folder?

      Hi Michael

      Thanks for your reply. It's a web site of my own and I just want to know
      how ASP.NET works under the hood.

      One thing I am wondering is that, since I know where the source code is,
      why doesn't VS let me tell it the path to the code?

      Regards
      Warren

      Michael Nemtsev [MVP] wrote:
      Hello Warren,
      >
      Why do u want to debug this stuff?!
      is it your component or what?!
      >
      ---
      WBR, Michael Nemtsev [Microsoft MVP] :: blog:
      http://spaces.live.com/laflour :: http://twitter.com/laflour
      >
      "The greatest danger for most of us is not that our aim is too high and
      we miss it, but that it is too low and we reach it" (c) Michelangelo
      >
      WTHi
      WTWTI am trying to debug the code generated for aspx files. The
      WTfollowing assembly is generated for an aspx page:
      WTWT>
      App_Web_webform 1.aspx.19c0ab3f .kajnxlqq.dll!A SP.main_test_we bform1_a
      WTspx.ProcessRe quest(System.We ...
      WTWTHowever when I click on the it in the Call Stack window, it says:
      WTWTThere is no source code available for the current location.
      WTWTI know the location of the .cs file (in the Temporary ASP.NET Files
      WTfolder). But how can I tell Visual Studio to use that source code
      WTfile?
      WTWTThanks.
      WTWTRegards
      WTWarren
      >
      >

      Comment

      • Warren Tang

        #4
        Re: How can I debug into the Temporary ASP.NET Files folder?

        I can step into the .NET Framework code (such as System.Web,
        System.Web.UI), but the assembly compiled for an aspx page is missed out
        (though symbols loaded). VS cannot locate the source code of the
        assembly, nor does it allow me to tell it even I know it.


        Warren Tang wrote:
        Hi Michael
        >
        Thanks for your reply. It's a web site of my own and I just want to know
        how ASP.NET works under the hood.
        >
        One thing I am wondering is that, since I know where the source code is,
        why doesn't VS let me tell it the path to the code?
        >
        Regards
        Warren
        >
        Michael Nemtsev [MVP] wrote:
        >Hello Warren,
        >>
        >Why do u want to debug this stuff?!
        >is it your component or what?!
        >>
        >---
        >WBR, Michael Nemtsev [Microsoft MVP] :: blog:
        >http://spaces.live.com/laflour :: http://twitter.com/laflour
        >>
        >"The greatest danger for most of us is not that our aim is too high
        >and we miss it, but that it is too low and we reach it" (c) Michelangelo
        >>
        >WTHi
        >WTWTI am trying to debug the code generated for aspx files. The
        >WTfollowing assembly is generated for an aspx page:
        >WTWT>
        >App_Web_webfor m1.aspx.19c0ab3 f.kajnxlqq.dll! ASP.main_test_w ebform1_a
        >WTspx.ProcessR equest(System.W e...
        >WTWTHowever when I click on the it in the Call Stack window, it says:
        >WTWTThere is no source code available for the current location.
        >WTWTI know the location of the .cs file (in the Temporary ASP.NET
        >Files
        >WTfolder). But how can I tell Visual Studio to use that source code
        >WTfile?
        >WTWTThanks.
        >WTWTRegards
        >WTWarren
        >>
        >>

        Comment

        • Michael Nemtsev [MVP]

          #5
          Re: How can I debug into the Temporary ASP.NET Files folder?

          Hello Warren,

          Did you set you VS to load all missed symbols?! http://blogs.msdn.com/sburke/archive...urce-code.aspx


          ---
          WBR,
          Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour
          :: http://twitter.com/laflour

          "The greatest danger for most of us is not that our aim is too high and we
          miss it, but that it is too low and we reach it" (c) Michelangelo


          WTI can step into the .NET Framework code (such as System.Web,
          WTSystem.Web.UI ), but the assembly compiled for an aspx page is missed
          WTout (though symbols loaded). VS cannot locate the source code of the
          WTassembly, nor does it allow me to tell it even I know it.
          WT>
          WTWarren Tang wrote:
          WT>
          >Hi Michael
          >>
          >Thanks for your reply. It's a web site of my own and I just want to
          >know how ASP.NET works under the hood.
          >>
          >One thing I am wondering is that, since I know where the source code
          >is, why doesn't VS let me tell it the path to the code?
          >>
          >Regards
          >Warren
          >Michael Nemtsev [MVP] wrote:
          >>
          >>Hello Warren,
          >>>
          >>Why do u want to debug this stuff?!
          >>is it your component or what?!
          >>---
          >>WBR, Michael Nemtsev [Microsoft MVP] :: blog:
          >>http://spaces.live.com/laflour :: http://twitter.com/laflour
          >>"The greatest danger for most of us is not that our aim is too high
          >>and we miss it, but that it is too low and we reach it" (c)
          >>Michelangel o
          >>>
          >>WTHi
          >>WTWTI am trying to debug the code generated for aspx files. The
          >>WTfollowing assembly is generated for an aspx page:
          >>WTWT>
          >>App_Web_webfo rm1.aspx.19c0ab 3f.kajnxlqq.dll !ASP.main_test_ webform1_a
          >>WTspx.Process Request(System. We...
          >>WTWTHowever when I click on the it in the Call Stack window, it
          >>says:
          >>WTWTThere is no source code available for the current location.
          >>WTWTI know the location of the .cs file (in the Temporary
          >>ASP.NET
          >>Files
          >>WTfolder). But how can I tell Visual Studio to use that source
          >>code
          >>WTfile?
          >>WTWTThanks.
          >>WTWTRegards
          >>WTWarren

          Comment

          • Warren Tang

            #6
            Re: How can I debug into the Temporary ASP.NET Files folder?

            I've read that article before. I can make sure that all symbols are
            loaded successfully.

            To repro this,
            1. add a line in the Page_Load; set a break point on it; Press F5;
            2. When the vs debugger breaks, select the following assembly from
            call stack window:

            App_Web_webform 1.aspx.19c0ab3f .kajnxlqq.dll!A SP.main_test_we bform1_aspx.Pro cessRequest(Sys tem.We..

            3. Double click on it, and the error pops up:

            There is no source code available for the current location.



            Michael Nemtsev [MVP] wrote:
            Hello Warren,
            >
            Did you set you VS to load all missed symbols?!
            http://blogs.msdn.com/sburke/archive...urce-code.aspx

            Comment

            Working...