Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 May 7th, 2007, 01:50 PM
b67 b67 is offline
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to b67
Default Wrox fileshare - resourceID link

When clicking on the download link with a param for a file I get the error below - any ideas?

/fileshare/Download.aspx?resourceID=40

Server Error in '/FileShare' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /fileshare/Download.aspx


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

 
Old May 7th, 2007, 02:15 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Could it be that you're browsing to the site with http://localhost as opposed to http://localhost/FileShare ?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old May 7th, 2007, 03:05 PM
b67 b67 is offline
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to b67
Default

I'm browsing with http://xxx.dyndns.tv:8887/fileshare

I've set login.aspx to be the default document

the link in the email looks as such

http://xyz.dyndns.tv:8887/fileshare/...?resourceID=46


 
Old May 7th, 2007, 03:25 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In that case, I don't know what's happening. A 404 just means the page cannot be found. This is usually because of two reasons:

1. The path is incorrect, and you're referring to a file in an incorrect location (e.g. http://localhost/Download.aspx instead of http://localhost/FileShare/Download.aspx)

2. The file really doesn't exist at the specified location.

There are other situations where ALL your ASPX pages throw 404 errors, but that doesn't seem to be the case here?

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old May 7th, 2007, 03:34 PM
b67 b67 is offline
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to b67
Default

Imar, thanks for leading me in the right direction again - it was the fact that download.aspx is not in the root directory but in the contentfiles directory

so I modified this to refelect that

        <add key="httpDownloadPath" value="http://xyz.dyndns.tv:8887/fileshare/contentfiles/"/>

So it really was a 404

 
Old May 7th, 2007, 04:18 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great. Glad you got it working.

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrox FileShare generates blank email to recepient jrweb BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 8 February 18th, 2008 02:58 PM
FileShare chapter problems asptwodev BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 November 5th, 2007 11:06 AM
link to download Database of Wrox Application manoj_k79 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 August 31st, 2007 11:23 AM
FileShare Login not working benjatado BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 11 July 25th, 2006 03:34 PM
FileShare Project Not Working shawn BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 April 26th, 2006 01:18 PM





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