Results 1 to 7 of 7

Thread: [RESOLVED] Cannot debug ASP.Net page

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Resolved [RESOLVED] Cannot debug ASP.Net page

    Hi All,

    I have problem to debug my ASP.Net page.
    My PC system is Windows XP SP2.
    I use MS Visual Studio 2005 and .Net Framework is 2.0.50727.

    I also have set the breakpoint to the code, but when debug, it shows error message "The breakpoint will not currently be hit. No symbols have been loaded for this document."

    I also have set the specific page to debug but when try to debug the page, it will redirect to the Default page.

    I have tried this method which I found in this forum but no difference.

    Hoping that anyone here can help me solve this problem.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Cannot debug ASP.Net page

    Start by clearing out your temporary ASP.NET folder. By default, it is at

    C:\windows\microsoft.net\Framework\v2.0.50727\Temporary ASP.NET Files

    First, close all instances of VS and run iisreset /stop just to be sure.

    Once you've deleted those files, run iisreset /start.

    Then in your web app folder, clear the bin/debug/obj folders.

    Then open up your project again and try debugging.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Cannot debug ASP.Net page

    I have tried your solution but it made no difference at all.

    Any other workaround that I can try ?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Cannot debug ASP.Net page

    What can you tell us about your web project? Is it multiple projects? Is it a web site project or web application project?

    Have you set it to use the VS Development Server or IIS?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Cannot debug ASP.Net page

    It is a web application.

    I have created and configured virtual directory in IIS manager.

    This web works fine in browser but encountered problems are not able to debug the page and when I specify the start page and start debugging, browser will not go to the start page but it will redirect to Default page.

    I have tried to edit hosts file in C:\windows\system32\drivers\etc by commenting the first line code.

    # 127.0.0.1 localhost

    The page able to debug and browser display the start page as setting.

    The strange things is when I restart my PC, it wont be able to work anymore.

    Hope someone can help.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2004
    Posts
    100

    Re: Cannot debug ASP.Net page

    I just found the reason why I cannot debug and the page always redirect to default page.

    I must uncheck automatic configuration script in LAN settings.

    Why must I uncheck this setting ? How it relate to debugging and page redirecting ? Anyone can answer ?

    Thanks to you all for given solutions/opinions.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Cannot debug ASP.Net page

    Ah yes, that makes sense. Apologies for not mentioning it, but it's something very hard to guess at.

    What probably happened was that everytime your browser attempted to go to localhost/virtualdir, the script wouldn't recognize localhost properly and so you got an error, because of the scripts.

    However, please don't comment out the 127.0.0.1 line in your hosts file, that hosts file is used by a lot of applications and you may face unexpected behavior, even failures in other apps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width