none
401 - Unauthorized: Access is denied due to invalid credentials.

    Question

  • I created new web application using central admin, the web site created successfully but when i try to browse it is giving me following error:

    401 - Unauthorized: Access is denied due to invalid credentials.

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

     

    i tried various things but i am not able resolve this error. please help.


    FYI: I have windows 8 and sharepoint 2010 foundation.

     
    Monday, April 01, 2013 10:00 PM

Answers

  • Try creating a new web app (and site collection).

    While you are creating the site, use the ULSviewer to watch your farm's activities, look for any unexpected level errors (generally permissions stuff)

    Just for good measure, try this while your farm account is in the administrator's group on your local machine.

    IF your farm configuration wizard page is blank, that generally means that you've either installed in single server mode (evil) or when installing on a client OS the farm/install account is not a local admin.


    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

    Friday, April 12, 2013 3:49 PM

All replies

  • SharePoint 2010 is not supported to be installed on Windows 8.

    SharePoint - Nauplius Applications
    Microsoft SharePoint Server MVP
    MCITP: SharePoint Administrator 2010

    -----------------------
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Monday, April 01, 2013 10:06 PM
    Moderator
  • Try going into central admin and adding yourself as a Site Collection admin to the site that you just created and see if it recognizes your credentials.

    I'm assuming if you've installed on Windows 8, as Trevor points out it's not supported, but that doesn't mean it can't be done, especially if you're using it as a dev machine.  Check out this article for tips/tricks for how to install on windows 8 :

    http://social.technet.microsoft.com/wiki/contents/articles/8586.installing-sharepoint-server-2010-on-windows-8-using-server-farm-installation-type-without-a-domain-controller.aspx

    http://social.technet.microsoft.com/wiki/contents/articles/7899.install-sharepoint-2010-on-windows-server-8-beta.aspx

    Also, may be a non-issue, but if you're saying you're using windows 8 to access the site, make sure you use the desktop browser as the other one from start menu does not fully support javascript as I recall, and you'll want to put the site in your trusted zone and make sure it will automatically forward your credentials.


    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

    Monday, April 01, 2013 10:26 PM
  • Installing SharePoint 2010 on a dev machine is even worse -- none of your test cases are going to be valid.  It would be better just to virtualize on top of Win 8 and run it on 2008/2008 R2 in a VM.

    SharePoint - Nauplius Applications
    Microsoft SharePoint Server MVP
    MCITP: SharePoint Administrator 2010

    -----------------------
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Monday, April 01, 2013 10:29 PM
    Moderator
  • True, but even Microsoft recognizes that there are times when people are going to install on a client desktop: http://msdn.microsoft.com/en-us/library/ee554869(v=office.14).aspx

    Best Practices vs. Real World

    Personally, I use removable USB drives for client configurations to store VMs.  Install the OS, configure it for the customer's environment, spin it up when I need it.  Cost is less than $100 per USB drive and if I'm ever in a situation where I need more power, I can upgrade my machine and grant more resources to the VM (Or boot directly to the VM).  When I'm done it goes back on the shelf until I need it again.


    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

    Monday, April 01, 2013 10:43 PM
  • Microsoft specifically supports SharePoint 2010 on Windows 7, unlike Windows 8.  So your test cases on Windows 7 will be valid.

    SharePoint - Nauplius Applications
    Microsoft SharePoint Server MVP
    MCITP: SharePoint Administrator 2010

    -----------------------
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Monday, April 01, 2013 10:44 PM
    Moderator
  • Sometimes it's ok to draw outside the box.

    http://blogs.technet.com/b/spweb/archive/2012/03/21/running-sharepoint-2010-on-windows-8-consumer-preview.aspx

    There was a time when a Windows 7 install was "unsupported" but so many people did it that it became "supported".  I'm just waiting for the article on how to install SharePoint server on Windows 8 Phone or RT ;)


    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

    Monday, April 01, 2013 10:53 PM
  • Thanks ieDaddy and Trevor for response.

    ieDaddy, i can't add myself as site collection administrator. "change site collection administrator->change site collection" is not allowing me to select the website. when i type URL and click on "search" icon it doesn't bring any search result. other than central admin, I have only this website on my website list.

    I read your link about installing sharepoint 2010 on windows 8, i believe my installation is fine. because before few days i was able to create website and also site collection administrators. I made some mistake so i have to delete that website. now i am trying to create new website and it is giving me error. 

    I also notice that in central admin -> configuration wizard page is blank. i believe before i have seen "farm wizard" there. and now its blank!

    while creating website, i created new application pool and use the managed account name hpdesktop\sp_serviceApps. does this account need any special permission on IIS, local machine or SQL side?

    again, i don't have any VM environment. i am using windows 8 local machine for sharepoint 2010 foundation.


    Tuesday, April 02, 2013 6:43 PM
  • Try creating a new web app (and site collection).

    While you are creating the site, use the ULSviewer to watch your farm's activities, look for any unexpected level errors (generally permissions stuff)

    Just for good measure, try this while your farm account is in the administrator's group on your local machine.

    IF your farm configuration wizard page is blank, that generally means that you've either installed in single server mode (evil) or when installing on a client OS the farm/install account is not a local admin.


    ieDaddy
    Blog: http://iedaddy.com
    Twit: @iedaddy

    Friday, April 12, 2013 3:49 PM