+ Post New Thread
Results 1 to 7 of 7
Home Access Plus+ Thread, Hap single sign on 9.7.1105.2000" in Projects:; Hi Getting an error with single sign on, followed the video but getting the below error. Line 36: <asp:LoginView runat="server"> ...
  1. #1
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    578
    Thank Post
    113
    Thanked 25 Times in 22 Posts
    Rep Power
    19

    Hap single sign on 9.7.1105.2000"

    Hi

    Getting an error with single sign on, followed the video but getting the below error.

    Line 36: <asp:LoginView runat="server">
    Line 37: <LoggedInTemplate>
    Line 38: <a href="#" id="hapUserTitle"><%=((HAP.AD.User)Membership.GetU ser()).DisplayName %> (<%=((HAP.AD.User)Membership.GetUser()).UserName %>)</a>
    Line 39: <div id="hapUserMenu" class="hapmenu tile-border-color">
    Line 40: <div class="mypic" style="background-image: url(<%:ResolveClientUrl("~/api/mypic") %>?<%ateTime.Now.Ticks.ToString() %>)"></div>

  2. #2

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,674
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    Windows Auth or Kerberos?

  3. #3
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    578
    Thank Post
    113
    Thanked 25 Times in 22 Posts
    Rep Power
    19
    Kerberos video

    ive added these

    <location path="Default Web Site/kerberos.aspx">
    <system.webServer>
    <security>
    <authentication>
    <anonymousAuthentication enabled="false" />
    <windowsAuthentication enabled="true">
    <providers>
    <clear />
    <add value="Negotiate" />
    <add value="NTLM" />
    </providers>
    </windowsAuthentication>
    </authentication>
    </security>
    </system.webServer>
    </location>

    <location path="Default Web Site/HAP">
    <system.webServer>
    <security>
    <authentication>
    <anonymousAuthentication userName="" />
    <windowsAuthentication enabled="false" useKernelMode="true">
    <extendedProtection tokenChecking="Allow" />
    <providers>
    <clear />
    <add value="Negotiate" />
    <add value="NTLM" />
    </providers>
    </windowsAuthentication>
    </authentication>
    </security>
    </system.webServer>
    </location>

  4. #4

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,674
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    Ok, doesn't look to be logging in correctly, double check the application pool settings are configured correctly.

    Check this exists in the web.config:

    HTML Code:
    <location path="Default Web Site/kerberos.aspx">
            <system.webServer>
                <security>
                    <authentication>
                        <anonymousAuthentication enabled="false" />
    		    <windowsAuthentication enabled="true">
    			<providers>
    			    <clear />
    			    <add value="Negotiate" />
    			    <add value="NTLM" />
    			</providers>
    		</windowsAuthentication>
    	</authentication>
                </security>
            </system.webServer>
        </location>
    should be
    HTML Code:
    <location path="Default Web Site/hap/kerberos.aspx">
            <system.webServer>
                <security>
                    <authentication>
                        <anonymousAuthentication enabled="false" />
    		    <windowsAuthentication enabled="true">
    			<providers>
    			    <clear />
    			    <add value="Negotiate" />
    			    <add value="NTLM" />
    			</providers>
    		</windowsAuthentication>
    	</authentication>
                </security>
            </system.webServer>
        </location>

  5. Thanks to nickbro from:

    ful56_uk (12th November 2013)

  6. #5
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    578
    Thank Post
    113
    Thanked 25 Times in 22 Posts
    Rep Power
    19
    hi

    app pool is fine, windows auth works using chrome

    works fine with IE now.

    get this error in the event viewer

    An error occurred in Home Access Plus+

    Page: mscorlib

    Invalid length for a Base-64 char array or string.


    System.FormatException: Invalid length for a Base-64 char array or string.
    at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
    at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
    at System.Convert.FromBase64String(String s)
    at HAP.AD.TokenGenerator.ConvertToPlain(String token)
    at HAP.MyFiles.API.Drives()
    at SyncInvokeDrives(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.I nvoke(Object instance, Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRu ntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage31(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process( Boolean isOperationContextSet)


    at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)
    at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
    at System.Convert.FromBase64String(String s)
    at HAP.AD.TokenGenerator.ConvertToPlain(String token)
    at HAP.MyFiles.API.Drives()
    at SyncInvokeDrives(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.I nvoke(Object instance, Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRu ntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRu ntime.ProcessMessage31(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process( Boolean isOperationContextSet)

  7. #6

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,674
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    That error is expected as you can't use My Files using Kerberos

  8. #7
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    578
    Thank Post
    113
    Thanked 25 Times in 22 Posts
    Rep Power
    19
    Thanks for you time Nick, i dont suppose you could advise me on this issue too

    Hap live tiles



SHARE:
+ Post New Thread

Similar Threads

  1. Moodle - Single Sign on
    By ceebster in forum Virtual Learning Platforms
    Replies: 2
    Last Post: 18th June 2014, 12:28 PM
  2. Single Sign on software
    By localzuk in forum General Chat
    Replies: 36
    Last Post: 17th July 2008, 11:25 AM
  3. Moodle Single Sign On with CMS
    By monkeyx in forum Virtual Learning Platforms
    Replies: 0
    Last Post: 26th November 2007, 09:39 AM
  4. ePortal and CC3 Single Sign On
    By budgester in forum MIS Systems
    Replies: 3
    Last Post: 21st June 2007, 11:26 AM
  5. CMIS ePortal Single Sign-on
    By markberry in forum MIS Systems
    Replies: 12
    Last Post: 27th March 2007, 12:27 AM

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
  •