Results 1 to 8 of 8

Thread: [RESOLVED] Debug URL problem

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2009
    Posts
    37

    Resolved [RESOLVED] Debug URL problem

    Hi,

    I have a ASP.net website project.
    In the code we check if the Page.Request.URL.AbsoluteURI has localhost in it, which will indicate we are debugging and we redirect to a different page.

    But when I debug on my computer Page.Request.URL.AbsoluteUri has 'http://0.0.0.0:1511/login.aspx'

    My host file has the entry 127.0.0.1 localhost.

    Not sure if I am missing something.

    Any help will be appreciated.

    Thanks

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Debug URL problem

    Hey,

    I would be more inclined to check the "debug" flag in the web.config file of your application:

    http://msdn.microsoft.com/en-us/libr...dh(VS.71).aspx

    Gary

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2009
    Posts
    37

    Re: Debug URL problem

    Thanks Gary.

    I appreciate your reply, but I don't want to change the way we check we are debugging. I was able to debug this application before, until I changed my computer. Something is wrong on my machine and I would like to fix that.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Debug URL problem

    Hey,

    Are there any fundamental differences between the computers? Operating System, Service Packs etc?

    Are you referring to when you start the application directly from within Visual Studio?

    Gary

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

    Re: Debug URL problem

    Try renewing your network connection and restarting the DHCP service in services.msc. Or even better, restart your machine. 0.0.0.0 generally means all network connections, which might be happening if your maching has two IP addresses?

  6. #6

    Thread Starter
    Member
    Join Date
    Aug 2009
    Posts
    37

    Re: Debug URL problem

    My problem is resolved.

    I had recently changed my machine and IIS was not installed with the Windows installation. I had installed IIS from the Administrative tools in Control panel.

    I ran this utility and it fixed my problem:
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis -ir

    Thanks

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Debug URL problem

    Ah, I have had that before.

    Glad you got it sorted.

    Remember to mark thread resolved.

    Gary

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

    Re: Debug URL problem

    Hmm, didn't think an ASP.NET reinstall would do it as this seemed to be network related. But alright, that's something to remember for the future.

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