|
-
Dec 29th, 2009, 02:25 PM
#1
Thread Starter
Member
[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
-
Dec 29th, 2009, 03:12 PM
#2
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
-
Dec 29th, 2009, 03:46 PM
#3
Thread Starter
Member
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.
-
Dec 29th, 2009, 04:03 PM
#4
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
-
Dec 30th, 2009, 05:50 AM
#5
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?
-
Dec 30th, 2009, 04:33 PM
#6
Thread Starter
Member
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
-
Dec 31st, 2009, 11:02 AM
#7
Re: Debug URL problem
Ah, I have had that before.
Glad you got it sorted.
Remember to mark thread resolved.
Gary
-
Jan 1st, 2010, 05:04 AM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|