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. Web Development
  3. ASP.NET
  4. Debugging Problem in VS 2005

Debugging Problem in VS 2005

Scheduled Pinned Locked Moved ASP.NET
debuggingcsharphelpdotnetvisual-studio
6 Posts 3 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.
  • M Offline
    M Offline
    MikeCuper
    wrote on last edited by
    #1

    My config: VS 2005 Pro with SP1 C# 2005 .NET Framework 2.0 SP2 Vista Ultimate SP1 all current patches applied P4 3.0ghz w/ 1.5GB RAM and (1) 300GB disk w/ 27.5GB free (system/boot disk), (1) 400GB disk w/ 74GB free Problem: no matter how simple an app I create, debugging does not work - i.e. I can set a breakpoint that I know is crossed but the app does not fall into the debugger. These are .NET web apps. I created one with a single form and created several breakpoints, one in Page_Load against a simple string which I programmatically set a value for and one in an asp:validator that I know is hit and passed. VS even asks to set the app for debugging, and IE is set to show scripts, etc. Can someone help me to understand what I'm missing and why I can't debug anything simple or complex? You can probably imagine this is making me crazy and I'm having to write data to textboxes just to see what's happening when something goes wrong. Some things I just can't test for at all because of this. Thanks in advance!

    R A 2 Replies Last reply
    0
    • M MikeCuper

      My config: VS 2005 Pro with SP1 C# 2005 .NET Framework 2.0 SP2 Vista Ultimate SP1 all current patches applied P4 3.0ghz w/ 1.5GB RAM and (1) 300GB disk w/ 27.5GB free (system/boot disk), (1) 400GB disk w/ 74GB free Problem: no matter how simple an app I create, debugging does not work - i.e. I can set a breakpoint that I know is crossed but the app does not fall into the debugger. These are .NET web apps. I created one with a single form and created several breakpoints, one in Page_Load against a simple string which I programmatically set a value for and one in an asp:validator that I know is hit and passed. VS even asks to set the app for debugging, and IE is set to show scripts, etc. Can someone help me to understand what I'm missing and why I can't debug anything simple or complex? You can probably imagine this is making me crazy and I'm having to write data to textboxes just to see what's happening when something goes wrong. Some things I just can't test for at all because of this. Thanks in advance!

      R Offline
      R Offline
      Rajeesh MP
      wrote on last edited by
      #2

      Hi Mike.. <%@ Page Language="VB" MasterPageFile="~/........"**

      AutoEventWireup="true"

      **CodeFile=".....aspx.vb" Inherits="......" title="....." %> Change autoeventwireup to TRUE and try.... Regards Rajeesh MP

      M 1 Reply Last reply
      0
      • R Rajeesh MP

        Hi Mike.. <%@ Page Language="VB" MasterPageFile="~/........"**

        AutoEventWireup="true"

        **CodeFile=".....aspx.vb" Inherits="......" title="....." %> Change autoeventwireup to TRUE and try.... Regards Rajeesh MP

        M Offline
        M Offline
        MikeCuper
        wrote on last edited by
        #3

        Unfortunately, all pages have AutoEventWireup="true", here's a sample of a simple app page:

        ]]>

        Pick a Team Name
        

        Pick a name for your team

        Name:
        ErrorMessage="You must enter a team name."
            ControlToValidate="txtTeam" Display="dynamic" />
        ErrorMessage="That name is already taken. Please pick another."
            ControlToValidate="txtTeam" Display="dynamic"
            OnServerValidate="custval\_txtTeam\_ServerValidate" />
        

        Thanks for trying - it seems to be something deeper. When I press f5, everything executes, just no stopping at breakpoints. The Build is set to Debug as the active, DEBUG and TRACE constants are defined, it's set to full debug mode, any CPU and platform and the ASP.NET debugger is checked..... Strangest thing.....

        1 Reply Last reply
        0
        • M MikeCuper

          My config: VS 2005 Pro with SP1 C# 2005 .NET Framework 2.0 SP2 Vista Ultimate SP1 all current patches applied P4 3.0ghz w/ 1.5GB RAM and (1) 300GB disk w/ 27.5GB free (system/boot disk), (1) 400GB disk w/ 74GB free Problem: no matter how simple an app I create, debugging does not work - i.e. I can set a breakpoint that I know is crossed but the app does not fall into the debugger. These are .NET web apps. I created one with a single form and created several breakpoints, one in Page_Load against a simple string which I programmatically set a value for and one in an asp:validator that I know is hit and passed. VS even asks to set the app for debugging, and IE is set to show scripts, etc. Can someone help me to understand what I'm missing and why I can't debug anything simple or complex? You can probably imagine this is making me crazy and I'm having to write data to textboxes just to see what's happening when something goes wrong. Some things I just can't test for at all because of this. Thanks in advance!

          A Offline
          A Offline
          Anshumas
          wrote on last edited by
          #4

          i had same problem, it solved by when i start dotnet framework by right click and run as administrator on VS sort cut or on programs. you may try this.

          Anshuman Singh

          M R 2 Replies Last reply
          0
          • A Anshumas

            i had same problem, it solved by when i start dotnet framework by right click and run as administrator on VS sort cut or on programs. you may try this.

            Anshuman Singh

            M Offline
            M Offline
            MikeCuper
            wrote on last edited by
            #5

            Thanks - that was the answer - for whatever reason, even though my Vista ID is an Administrator, I have to explicitly start VS by running as an Admin by right-clicking. Thanks for fixing me up!

            1 Reply Last reply
            0
            • A Anshumas

              i had same problem, it solved by when i start dotnet framework by right click and run as administrator on VS sort cut or on programs. you may try this.

              Anshuman Singh

              R Offline
              R Offline
              Rajeesh MP
              wrote on last edited by
              #6

              hi Anshuman.. thatz a good one..Thanks for the information Regards Rajeesh MP

              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