Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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
 
Old November 3rd, 2015, 11:30 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default Ch 16, p614 - Double Slash

Hi Imar,

In the WAST TIO I'm receiving the url with double slash for external links:
<img src="//images/branding_Full2.gif">

Therefore they redirect to:
GET http://images/branding_Full2.gif net::ERR_NAME_NOT_RESOLVED

I'm running it from a external USB drive and the functionality it's ok.

Local Address: F:\ASPUSB\wwwroot\ASP.NETWebAdminFiles\default.asp x

Host Address:
http://localhost:8080/default.aspx?a...plicationUrl=/

I read that using rules in the web.config could work and I tried that, but didn't work.

Thanks.

Last edited by StvnSpnz; November 4th, 2015 at 12:22 AM..
 
Old November 4th, 2015, 06:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I am not sure I follow. Why would your Web Admin files be on a USB drive? Those should be on you C drive, installed by 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!
 
Old November 4th, 2015, 07:51 AM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

That was a manual work I did only for portability purposes because I'm not working in the same PC all the time. The thing is that I have access to the WAST from my drive. Only the links to images and some url are preceded by double slash is my little problem.

From what I was seeing, it seems that the the links are referring to a parent of the root folder.
 
Old November 4th, 2015, 12:57 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Solved! I forgot the "/vpath:" in my searching for answers, but it's still the password from the Windows User. Now I can have my website from my USB drive, hah. Do you know more about the advantages or disadvantages of using this approach.

Also a shortcut inside the command prompt for the the iisexpress.exe address is to put it in quotes: "C:\Program Files (x86)\IIS Express\iisexpress.exe" /path: ...etc. Instead going with cd..cd..

Thanks and hope helps other people.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 16 AnkhSVN get inc BOOK: Professional Microsoft SQL Server 2012 Integration Services 0 October 9th, 2015 02:22 PM
Ch 16...frustrating! jmuehlenbein BOOK: Beginning SharePoint 2010: Building Business Solutions with SharePoint 0 February 8th, 2012 02:48 PM
Double Slash Needed? Belch XSLT 4 January 24th, 2012 02:06 PM
Search ch 13, ch 16 sporik BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 October 27th, 2009 04:44 PM
Ch 16 Replication trondta BOOK: Professional SQL Server 2005 Administration ISBN: 0-470-05520-0 0 October 12th, 2009 07:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.