Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ..."You are not authorized to view this page " error after installing"You are not authorized to view this page " error after installing
Previous
 
Next
New Post
8/30/2007 3:06 PM
 

I have now decided that I want to use DNN on some side projects
and I am egar to get a local install going but have been
unsucessful at getting it running on either my home or work
computer.

Currently on my work box, I am getting the error shown below. I
followed the steps provided in the installation video on the
DNN site (
http://www.dotnetnuke.com/Resources/Knowledge/BooksandTrainingVideos/tabid/810/Default.aspx) and I have spent a good bit of time looking at post on the internet about this error with no luck. The things that I have double\\tripple checked include:

- IIS 5.1
-- Virtual directory is set as a web application
-- Default.aspx is in the documents list as the top item.
-- annomous access is enabled
-- all these setting were also confirmed for the default
website directory which is the parent of my virtual directory

- filesystem WinXP Pro SP 2
-- ASPNET account has full control on DNN directory and
subdirectory's and files

- SQL 2005
-- Created DotNetNuke DB
-- Created dnnuser login with password = password
-- added new dnnuser to DotNetNuke and made it dbo and
associated it with the dnnuser login that was created in
previous step

- WebConfig
-- Connection string is below:
    <add
      name="SiteSqlServer"
      connectionString="Server=RANDRUS\\IOSYSTEM4;Database=DotNetNuke;uid=dnnuser;pwd=password;"
      providerName="System.Data.SqlClient" />

Thanks in advanced for anyone that can help me with this issue

==========================
Error message when accessing http://localhost/DotNetNuke or
http://localhost/DotNetNuke/Default.aspx
==========================

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

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

Please try the following:

Click the Refresh button to try again with different
credentials.
If you believe you should be able to view this directory or
page, please contact the Web site administrator by using the e-
mail address or phone number listed on the localhost home page.
HTTP 401.1 - Unauthorized: Logon Failed
Internet Information Services

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

Technical Information (for support personnel)

More information:
Microsoft Support
----------------------------------------------------------------

You can reply to this email as you would any other. Or, keep
your email address private by replying via the link below:
http://www.meetup.com/message/?recipientId=4924941&anon=1

To see Ryan's profile, go here:
http://www.meetup.com/members/4924941/

If you feel that the message from Ryan was inappropriate (especially if it was spam!) please don't hesitate to forward this email to
abuse@meetup.com

You currently allow all members of Meetup.com to send you
messages. You can change this setting by visiting your account:
http://www.meetup.com/account/#prefs


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

Add *info@meetup.com* to your address book to receive all your
Meetup emails.

To unsubscribe or update your Meetup email preferences, visit
your account page:
http://www.meetup.com/account/?tab=comm

Questions? You can email customer service at: support@meetup.com

Meetup Customer Service, 632 Broadway, New York, NY 10012 USA

The unique user ID of the sender is user 4924941.

 
New Post
8/30/2007 4:35 PM
 

OK, so I figured out the problem. There is a missing required configuration in every video, web page, forum post, etc... that I looked at! In addition to what is listed above you must also verify that in IIS the annomous access is set to use the same account you have added to your windows directory's security tab (most likely ASPNET for XP or WINDOWSHOST for 2003).

Todo this:

  1. goto iis and right click on your DNN folder and select properties
  2. select the directory security tab
  3. click the edit button that is in the annomous access group box
  4. add the same account that you gave windows directory access too your DNN install directory there
  5. see the install at last
  6. let out a sigh of relief

 

 

 

 
New Post
8/30/2007 6:47 PM
 

Not sure what you mean by this. Using the asp.net user for anonymous access is a security risk, as tha asp.net (or networkservice) user has way more rights than the anonymous user that is used by windows by default. You should always use 2 different users for this. Of course.. the user used for anonymous access should have read rights in the webroot dir


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
8/31/2007 6:56 AM
 

Of course.. the user used for anonymous access should have read rights in the webroot dir

Well, I'm glad that's obvious too you, but unfortunately for me and all the other people who have posted up this same issue, we don't have your intuition and need a bit more hand holding when it comes to having the installition configurations explicitly stated for us in the documentation.

Also, no where did I say that you had to or even should use the ASPNET account. My only assertation was that the account has to be the same in the webroot and IIS and I mentioned that by default the webroot account is ASPNET.

My opinion is that implications have no place in technical discussion or documentation, so I don't make them and I don't look for them and my opinion is that the documentation needs to be updated about the issue I brought up in my post plus the information that you added about security concerns for production installs.

 
New Post
9/1/2007 6:10 AM
 

IMO this is much less a DNN issue as it is a general ASP.NET issue. Forgive me if i was not clear.

The point is that IIS spawns a process that is running .NET code (this process is called aspnet_wp.exe on windows XP, and w3wp.exe on Windows Server 2003 and Vista). That user used to run that process is called NETWORK SERVICE by default on windows Server and Vista, and ASPNET on windows xp. Because of DNN requirements, this user needs to have write access to the root of the DNN install and everything below.

Apart from the user account for the  asp.net worker process, IIS also uses a different account to access all files for anonymous users (asp.net AND non asp.net files (such as images, javascript, html, etc) This user is called IUSR_[MachineName] by default (on windows server 2003 and xp, not sure about vista). This user account should have read rights to all files.

I noticed that on windows xp at least, anonymous access to a new virtual directory can be turned off by default. This is OK if you only use IE on the local machine to view the file, because IE will (by default), pass your user credentials to IIS, which means that you will not browse the site as anonymous user. In FF you will see a popup logon screen.

Please check this microsoft documentation for more information: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d8db0056-d352-48f9-bfac-bb3e932f1810.mspx?mfr=true

 


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ..."You are not authorized to view this page " error after installing"You are not authorized to view this page " error after installing


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out