 |
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
|
|
|
|
|

February 2nd, 2010, 01:44 PM
|
|
Authorized User
|
|
Join Date: Oct 2009
Posts: 55
Thanks: 26
Thanked 0 Times in 0 Posts
|
|
File Share App
Hi,
I installed the File Share App as instructed at the end of the chapter and the install finished ok, but when I tried to browse the site at http://localhost/FileShare as instructed I received a 403 error "the website declined to show this webpage" Most likely causes: This website requires you to login. How can I log in if it doesn't show me the page with the login? What am I missing? I'm using VS 2008.
Thanks,
Fed
|
|

February 3rd, 2010, 05:48 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Fed,
Are you running the site under IIS? If so, what version?
You typically need to grant the proper permissions (generally Read, + Write permissions for the Uploads folder) to the ASP.NET account which is ASPNET on Windows XP, and Network Service on Vista....
Cheers,
Imar
|
|

February 3rd, 2010, 11:25 AM
|
|
Authorized User
|
|
Join Date: Oct 2009
Posts: 55
Thanks: 26
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
The IIS ver. is 5.1 and as far as I can see the permissions are there. What is perplexing me is that when I F5 it doesn't bring up the login page so there is no way for me to login. I got carried away with the IIS in another book so if I wanted to run the file share on the regular VS web server do I just need to remove the site from IIS or is there something else I need to do? I still would like to know why IIS is having an issue if that's not too much to ask.
Cheers,
Fed
PS
Because the File Share app uses Membership via the regsql.exe tool I think I have to use it on IIS, is that correct?
Last edited by Fed; February 3rd, 2010 at 11:34 AM..
Reason: Addendum
|
|

February 3rd, 2010, 01:45 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
I am not sure I understand your setup. Are running it as "hosted" in IIS, or do you just want to look at the application and its source friom within Visual Studio? In the latter case, you should be able to open the web site in VS, and hit F5....
I haven't written the FileShare app so I am not 100% sure, but maybe you need to open a specific page rather than just opening the root of the application in your browser?
The use of regsql is not related or influenced by the hosting environment; you can use it with the built-in web server and with IIS.
Imar
|
|

February 4th, 2010, 02:19 PM
|
|
Authorized User
|
|
Join Date: Oct 2009
Posts: 55
Thanks: 26
Thanked 0 Times in 0 Posts
|
|
I wanted to do either/or but in both cases I get the page that says I need to loggin... When I F5 from the login.aspx itself I get more of the same. Maybe it's something to do with the fact I'm running ASP.NET 3.5 and this was written for 2.0. I'll figure it out and thanks for clarifying the regsql bit.
Peace,
Fed
|
|

February 4th, 2010, 04:51 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Fed,
It should work on 3.5 as well, as .NET 3.5 is pretty much backward compatible.
If you provide *detailed* steps about what you're doing, I may be able to help. Currently, I don't have an idea what you're doing exactly.
Cheers,
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

February 4th, 2010, 06:26 PM
|
|
Authorized User
|
|
Join Date: Oct 2009
Posts: 55
Thanks: 26
Thanked 0 Times in 0 Posts
|
|
I figured it out! When following the Local Developer Installation instructions at the end of the chapter and creating a website in VS, VS creates the App_Folder, config file, and a default.aspx. That default.aspx was the problem as the application's default.aspx resides in the ContentFiles folder the (new) default.aspx was causing a conflict. Anyway this is what I deduced as I deleted the extra default.aspx and the app ran.
Cheers!
Ok I figured it out again, the default.aspx in the fileshare app is actually named login.aspx so the above concept is valid just not completely correct...
Last edited by Fed; February 4th, 2010 at 08:12 PM..
Reason: Addendum
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| about File share project |
netdemon |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
2 |
April 17th, 2008 08:06 PM |
| File share website |
cluce |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
1 |
February 18th, 2008 06:24 PM |
| Wrox File Share - 1g file size limit |
b67 |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
3 |
May 7th, 2007 04:24 PM |
| file in a share mode |
m_rajib74 |
C# |
1 |
January 24th, 2007 03:25 PM |
| File Share App Error |
aaaboye |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 |
1 |
October 16th, 2006 03:32 PM |
|
 |