+ Post New Thread
Results 1 to 10 of 10
Home Access Plus+ Thread, HAP Error: Unauthorised Access in Projects:; Hello, I have HAP setup on a 2008R2, but when i log in as admin, staff or student account I ...
  1. #1

    Join Date
    Mar 2010
    Location
    Gloucestershire
    Posts
    148
    Thank Post
    20
    Thanked 3 Times in 3 Posts
    Rep Power
    9

    HAP Error: Unauthorised Access

    Hello,

    I have HAP setup on a 2008R2, but when i log in as admin, staff or student account I get the following screen.

    HAP Error: Unauthorised Access-unauthorisedaccess.jpg

    If i click the down arrow and navigate that way I can get to myfiles etc, but I would rather not have that screen as I would like to push this out to staff for remote access.

    Any ideas would be appreciated.

    Cheers

  2. #2
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,108
    Thank Post
    47
    Thanked 134 Times in 116 Posts
    Rep Power
    43
    Look in your web.config file in the root of the HAP folder specifically the permissions section.

    [Code]

    <!--Start of Override Permissions-->
    <location path="kerberos.aspx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api.asmx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="Login.aspx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="setup.aspx">
    <system.web>
    <authorization>
    <allow roles="Domain Admins" />
    <deny users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="app_data">
    <system.web>
    <authorization>
    <allow roles="Domain Admins" />
    <deny users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="bin">
    <system.web>
    <authorization>
    <deny users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/test">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/mycomputer">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/js">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/setup">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/bookingsystem/loadroom">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="favicon.ico">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <!--End of Override Permissions-->

    [Code/]

  3. #3

    Join Date
    Mar 2010
    Location
    Gloucestershire
    Posts
    148
    Thank Post
    20
    Thanked 3 Times in 3 Posts
    Rep Power
    9
    Hi,
    Thanks for your reply.

    I have gone through the override permissions and everything looks fine, or am i missing something.

    <!--Start of Override Permissions-->
    <location path="kerberos.aspx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api.asmx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="Login.aspx">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="setup.aspx">
    <system.web>
    <authorization>
    <allow users="Domain Admins" />
    </authorization>
    </system.web>
    </location>
    <location path="app_data">
    <system.web>
    <authorization>
    <deny users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="bin">
    <system.web>
    <authorization>
    <deny users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/test">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/mycomputer">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/js">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/setup">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="api/bookingsystem/loadroom">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="favicon.ico">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <!--End of Override Permissions-->

    Cheers

  4. #4
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,475
    Thank Post
    37
    Thanked 484 Times in 416 Posts
    Rep Power
    109
    Is there anything getting logged in the server's application event log?

  5. #5

    Join Date
    Mar 2010
    Location
    Gloucestershire
    Posts
    148
    Thank Post
    20
    Thanked 3 Times in 3 Posts
    Rep Power
    9
    Hi Nick,
    I have checked the event logs I am getting this error:

    An error occurred in Home Access Plus+
    Page: HAP.Web.API.MyPic
    Creating Directory Search and Searching for then current user
    Using filter: (&(objectClass=user) (sAMAccountName=username))
    Found 1 results, processing 1st result
    Found 0 thumnbnailPhotos

    Any help would be appreciated

    Sean

  6. #6
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,475
    Thank Post
    37
    Thanked 484 Times in 416 Posts
    Rep Power
    109
    Hmm, ok, that error is to be expected, it throwing you straight to unauthorized.aspx isn't. Can you tell me the full URL that was accessed when you got unauthorized?

  7. #7

    Join Date
    Mar 2010
    Location
    Gloucestershire
    Posts
    148
    Thank Post
    20
    Thanked 3 Times in 3 Posts
    Rep Power
    9
    Hi Nick,

    The URL that I login to is: https://localhost/hap/login.aspx?ReturnUrl=%2fhap%2f

    As soon as I login it takes me to unauthorised.aspx.

    Thanks again for your help

    Sean

  8. #8

    Join Date
    Mar 2010
    Location
    Gloucestershire
    Posts
    148
    Thank Post
    20
    Thanked 3 Times in 3 Posts
    Rep Power
    9
    Hi Nick,

    Sorry to be a pain, is there any news on the issue that i am having? If it is down to me being daft or doing something wrong I am happy to be told?

    Cheers
    Sean

  9. #9
    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,475
    Thank Post
    37
    Thanked 484 Times in 416 Posts
    Rep Power
    109
    Sorry, I can't quite figure out why it's not showing the homepage, it's a baffling error if the other pages are working

  10. #10

    Join Date
    Mar 2010
    Location
    Gloucestershire
    Posts
    148
    Thank Post
    20
    Thanked 3 Times in 3 Posts
    Rep Power
    9
    Hi Nick,
    Just to let you know that I have fixed this issue, it seemed to be caused by IIS. So I uninstalled IIS and all its dependencies via roles and features in Server Manager, uninstalled .net framework then reinstalled it back on again, reinstalled HAP and it is all working now.
    Thanks for this amazing software mate.

    Take it easy
    Sean

  11. Thanks to sadams1980 from:

    nickbro (11th March 2014)

SHARE:
+ Post New Thread

Similar Threads

  1. HAP+ error 500 on new web server install
    By magic2119 in forum Home Access Plus+
    Replies: 12
    Last Post: 19th September 2012, 08:11 AM
  2. HAP Error: System.NullReferenceException
    By bclarke in forum Home Access Plus+
    Replies: 4
    Last Post: 3rd February 2012, 07:50 AM
  3. Configuring HAP+ for outside access
    By Iamthelaw in forum Home Access Plus+
    Replies: 5
    Last Post: 8th October 2011, 01:28 PM
  4. .NET Errors when accessing Shared Drives
    By Crispin in forum Windows
    Replies: 1
    Last Post: 30th March 2010, 12:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •