Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 28th, 2012, 02:56 PM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
Exclamation Localhost error message

When I open an *.aspx page in browser, I always get the errror message:

"Error: Not a valid URL: http://localhost:54223/SiteCS/Default.aspx".

I click "No", and the page is displayed. However, I have to do that at any page change or refresh, which is annoying. This happens with all the sites I created while doing the "Try It Out"-s.

Can anybody teach me how to get rid of this error message?
Reply With Quote
  #2 (permalink)  
Old October 28th, 2012, 03:10 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

That's odd. Which browser are you using? Do you have any browser plugins that may cause this? And have you tried switching the browser in Visual Studio?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
ASP4student (October 30th, 2012)
  #3 (permalink)  
Old October 28th, 2012, 04:03 PM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Thank you very much for addressing my issue.
As far a I know, I don't have any plugin.
I have just one browser, Internet Explorer 9.0.
If I click Yes, in the error message, the following code appear:

Code:
m = url.match(/^https?:\/\/([^\/]+\.)?([a-z0-9\-_]+?)\.(co|org|net|com|gov|name|arpa|mil|edu|biz|mobi|aero|asia|cat|coop|info|int|jobs|museum|pro|tel|travel|xxx|[a-z][a-z]|(co|edu|gov|net|org|com)\.[a-z][a-z])(\/|$)/i);
	if (m === null) {
		if(url.indexOf('dnserror') != -1 || url.indexOf('ieframe.dll') != -1)
		{	
			var loc_sp = url.split("#");
			if(loc_sp[1] && loc_sp[1] != '')
				window.location = "http://404bucks.com/landing/?uid="+affiliate+subid+"&domainname="+loc_sp[1];
		}
		else
			throw 'Not a valid URL: ' + url;
	}
where "throw 'Not a valid URL: ' + url" is highlighted.

That tells me the the validation expression is missing something, but I don't know where to find and it how to change it.
Reply With Quote
  #4 (permalink)  
Old October 28th, 2012, 04:12 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Looks like you're using some external JavaScript code / library for an affiliate program? Either get rid of that code from your site, or contact the authors of the library for a fix.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
ASP4student (October 30th, 2012)
  #5 (permalink)  
Old October 28th, 2012, 04:35 PM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
Default

On this computer, I haven't done any other programming, but the tryouts in the book. I've never used Javascript, I'm just at ch.09 tryouts. However, I'm almost sure that in the first chapters I didn't have this issue, but I can't tell when it started. Now, I redid the first tryouts (like "Helllo World"), and the issue appear always.
I'm just suprised that nobody else experienced such an issue. I didn't find a clue in any p2p.wrox forum or in Google web searches.
Reply With Quote
  #6 (permalink)  
Old October 28th, 2012, 04:51 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Take a look at the code you posted. It contains a reference to 404bucks dot com. This code is not part of the book, nor of a standard ASP.NET web site. I think you have a virus, or at least some browser hijacking application / toolbar / malware on your machine. You may be able to find out more here:

http://stackoverflow.com/questions/1...or-advertising

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
ASP4student (October 30th, 2012)
  #7 (permalink)  
Old October 29th, 2012, 03:46 PM
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi Imar,

Thank you so much for the link, which pointed exactly to the cause, namely the PinPhotoZoom add-on of SimplyGen publisher. I disabled it (Internet Options, Programs, Manage add-ons), and the error message ceased to appear. I uninstalled it too (Control Panel, Programs). I don't know how it got on my computer past Norton 360!
I hope this post will help others too.

Best regards,
ASP4student
Reply With Quote
The Following User Says Thank You to ASP4student For This Useful Post:
Imar (October 29th, 2012)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the error message for a 500 server error? chobo2 C# 2005 1 May 4th, 2008 03:11 AM
Error accessing localhost zaeem Classic ASP Basics 1 October 23rd, 2007 01:48 AM
ERROR 1045: Access denied for user: OBDC@localhost kara333 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 December 4th, 2005 07:57 AM
Error Message alannoble26 Excel VBA 4 November 25th, 2005 11:20 AM
Running in Localhost but Error in Web ! nidhinasthra Classic ASP Basics 2 August 10th, 2005 06:12 AM



All times are GMT -4. The time now is 08:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.