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
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
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
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".
...
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.
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):
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.
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...
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?
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?