 |
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

October 28th, 2012, 02:56 PM
|
|
Authorized User
|
|
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
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?
|
|

October 28th, 2012, 03:10 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

October 28th, 2012, 04:03 PM
|
|
Authorized User
|
|
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
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.
|
|

October 28th, 2012, 04:12 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

October 28th, 2012, 04:35 PM
|
|
Authorized User
|
|
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
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.
|
|

October 28th, 2012, 04:51 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

October 29th, 2012, 03:46 PM
|
|
Authorized User
|
|
Join Date: Oct 2012
Posts: 27
Thanks: 4
Thanked 2 Times in 2 Posts
|
|
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
|
|
The Following User Says Thank You to ASP4student For This Useful Post:
|
Imar (October 29th, 2012)
|
|
 |
|