Wrox Programmer Forums
|
BOOK: Professional ASP.NET 1.0, Special Edition/1.1
This is the forum to discuss the Wrox book Professional ASP.NET 1.1 by Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson; ISBN: 9780764558900
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 1.0, Special Edition/1.1 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 September 25th, 2005, 01:27 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default localhost not found?

Hi,
I'm starting with ASP.NET. Just bought the book:Professional ASP.NET 1.1 by WROX. Went through pages 2 to 4 to install ASP.NET and the MSDE SQL server 2000. I'm on Windows Pro 2000.

When I try to launch the ASP.Net QuickStarts from the Microsoft .NET Framework SDK QuickStarts, Tutorials and Samples, I get the following message:

You are not authorized to view this page.
You might not have permission to view this directory or page using the credentials you supplied.

-----------------------------------------------------------

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the localhost home page.

You can click Search to look for information on the Internet.

HTTP Error 403 - Forbidden
Internet Explorer



What did I do wrong? How come I don't have a localhost on my system?
Thanks
Guy

___________________
Guy L. Levert
www.elearningstyles.com
__________________
___________________
Guy L. Levert
www.elearningstyles.com
 
Old September 25th, 2005, 01:56 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default

Don't understant but something is working.

I entered: http://localhost/ in my browser address and I am getting a page located at: http://localhost/localstart.asp and the first paragraph of that page says:

You do not currently have a default document set for your users. Any users attempting to connect to this site are currently receiving an "Under Construction page".
...

? Puzzled Rookie! Help!

___________________
Guy L. Levert
www.elearningstyles.com
 
Old September 25th, 2005, 07:08 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default

Puzzled and frustrated: why is it that none of the following links from
C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\StartSamples. htm work:

[u]ASP.Net QuickStarts
ASP.NET Mobile Controls QuickStarts
Windows Forms QuickStarts
Common Tasks QuickStarts</u>

I am getting the same message for all of them:

You are not authorized to view this page.
You might not have permission to view this directory or page using the credentials you supplied.

___________________
Guy L. Levert
www.elearningstyles.com
 
Old September 26th, 2005, 01:10 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Guy,

While it's not entirely related to your situation, take a look at these FAQs:

http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=263
http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=287

I think that the account your web site runs under (either ASPNET when using Anonymous Access or your own account when using Basic or Integrated security) does not have the necessary permissions to access the files under your web root, e.g. files in c:\inetpub\wwwroot.

The Faqs explains how to determine the account used by IIS and how to change the security permissions.

Hth,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old September 26th, 2005, 10:29 AM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default

Thanks Imar.

Here I am thinking that the explanations in the book would be easy and straightforward! I am on Windows 2000 and logged on as the Administrator.

I have tried a few things but still can't get it to work.
I can reach http://localhost no problem but its the other stuff installed by ASP.NET that I cannot get to.

I found out that there are web.config files all over the place, is it one per application?
For example in: http://localhost/quickstart/ASPPlus/, the web.config file now contains (I added what your FAQ recommended):

<configuration>
  <system.web>
    <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
    <identity impersonate="true" />
  </system.web>
</configuration>

___________________
Guy L. Levert
www.elearningstyles.com
 
Old September 26th, 2005, 12:21 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Using impersonation may not always be what you want. By default, an APSNET web app runs under the ASPNET (2000 / XP) account or under Network Service (Server 2003).

By using impersonation you tell the web process to use the logged on account. In some circumstances this can be useful, but usually it isn't.

Since the quickstart files are located under the program files folder your user account (e.g. ASPNET or your own account) should have at least read permissions to that folder. Is that the case? What are the security settings for that folder?

It's indeed common you see multiple we.config files. Each web application has one, but virtual directories under the main app can have their own. I assume the quick starts comprise of a lot of separate applications,, each with their own config file, but that's only a guess.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old September 26th, 2005, 02:41 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default

Thanks Imar.

Man! This is getting really frustrating!
If only I can find someone to give that person remote access or a consultant to come to my office and help me out...

Anyways. Yes, the folder security are set to a minimum of read, modify, etc...

Guy

___________________
Guy L. Levert
www.elearningstyles.com
 
Old September 26th, 2005, 02:51 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:Anyways. Yes, the folder security are set to a minimum of read, modify, etc...
For what user account?

And how is the application under IIS setup (most important the Home Directory tab of your web site)?

And can you run simple ASPX pages under your local web root (e.g. C:\inetpub\wwwroot\SomePage.aspx and browse to http://localhost/SomePage.aspx)?

I could take a look but I am not sure if it's a good idea to give remote access to complete strangers.... ;)

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: El viento by Manu Chau (Track 16 from the album: Clandestino) What's This?
 
Old September 26th, 2005, 02:58 PM
Authorized User
 
Join Date: Sep 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to glevert
Default

It's the Administrator account and the Power User account. All have read and write access...

I will try to create an aspx file a little later.

Guy

___________________
Guy L. Levert
www.elearningstyles.com
 
Old September 26th, 2005, 03:01 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

But you haven't added the ASPNET account????? Why not? That's the account used by ASP.NET.....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: The Thinner the Air by Cocteau Twins (Track 9 from the album: Victorialand) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost ongmymap ASP.NET 3.5 Basics 5 November 8th, 2008 02:09 PM
why localhost doesn't work? dililili ASP.NET 2.0 Basics 6 May 23rd, 2008 04:24 AM
do not want to use localhost p2ptolu Classic ASP Databases 1 September 15th, 2005 06:03 PM
localhost problems sdfharkin BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 October 26th, 2004 07:27 PM
Localhost Yee Dreamweaver (all versions) 6 October 21st, 2004 09:21 AM





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