Cannot login after clean install

ntufarelli's Avatar

ntufarelli

25 Mar, 2013 09:58 PM

I've tried to install the software, but I'm not able to login after installation. I've created an administrator account but when I try to login I'm redirected to the login page,
I've read that this problem was resolved, but I'm using the latest release 0.1.573.

In the log file I've tried this error which seems to be related to the format of a datetime value (the FormatException translated from italian is "Unrecognized string as a valid datetime value"):

22:42:24.1166 - Error - - HgLab.Core.Framework.Security.AuthenticationModule - could not authenticateSystem.FormatException: Stringa non riconosciuta come valore DateTime valido.
   in System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
   in System.DateTime.ParseExact(String s, String format, IFormatProvider provider)
   in octalforty.Structural.Middleware.Authentication.AuthenticationTokenJavaScriptConverter.Deserialize(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer) in D:\Projects\octalforty-structural\src\octalforty.Structural\Middleware\Authentication\AuthenticationTokenJavaScriptConverter.cs:riga 28
   in System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   in System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   in System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   in System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   in System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
   in octalforty.Structural.Middleware.Authentication.AuthenticationTokenManager.DeserializeAuthenticationToken(String serializedAuthenticationToken) in D:\Projects\octalforty-structural\src\octalforty.Structural\Middleware\Authentication\AuthenticationTokenManager.cs:riga 26
   in HgLab.Core.Framework.Security.AuthenticationModule.AuthenticateRequest(Object sender, EventArgs args) in d:\Projects\hglab\src\HgLab.Core\Framework\Security\AuthenticationModule.cs:riga 50 in System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)
   in System.DateTime.ParseExact(String s, String format, IFormatProvider provider)
   in octalforty.Structural.Middleware.Authentication.AuthenticationTokenJavaScriptConverter.Deserialize(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer) in D:\Projects\octalforty-structural\src\octalforty.Structural\Middleware\Authentication\AuthenticationTokenJavaScriptConverter.cs:riga 28
   in System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   in System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   in System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   in System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   in System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
   in octalforty.Structural.Middleware.Authentication.AuthenticationTokenManager.DeserializeAuthenticationToken(String serializedAuthenticationToken) in D:\Projects\octalforty-structural\src\octalforty.Structural\Middleware\Authentication\AuthenticationTokenManager.cs:riga 26
   in HgLab.Core.Framework.Security.AuthenticationModule.AuthenticateRequest(Object sender, EventArgs args) in d:\Projects\hglab\src\HgLab.Core\Framework\Security\AuthenticationModule.cs:riga 50

Thanks for your help.

  1. Support Staff 1 Posted by Anton Gogolev on 26 Mar, 2013 07:23 AM

    Anton Gogolev's Avatar

    Hi!

    Thanks for reporting! This is by far the most common source of
    frustration for HgLab users, so sorry about that.

    What are the culture settings for the machine that HgLab is running
    on? I presume it's something like "it-IT"?

  2. 2 Posted by ntufarelli on 26 Mar, 2013 08:29 AM

    ntufarelli's Avatar

    Yes, the culture settings is it-IT; the OS is Windows 8.
    Let me know if I can help in any way.

  3. Support Staff 3 Posted by Anton Gogolev on 26 Mar, 2013 09:02 AM

    Anton Gogolev's Avatar

    Could you please drop two attached files to the HgLab's \bin directory (overwriting existing ones) to see if this fix will solve the issue.

    Thanks in advance!

  4. 4 Posted by ntufarelli on 26 Mar, 2013 10:28 AM

    ntufarelli's Avatar

    Yes, this seems to fix the datetime problem and I'm able to login.
    The problem now is that the page is not formatted as expected; I have no menu but a bullet list with some links to dashbord, activity and my profile. I think this is not the expected result, any idea?
    I look in the old discussions to found something...

    Thanks for the fix.

  5. Support Staff 5 Posted by Anton Gogolev on 26 Mar, 2013 10:42 AM

    Anton Gogolev's Avatar

    Could you attach a screenshot of what it looks like?

  6. 6 Posted by ntufarelli on 26 Mar, 2013 10:54 AM

    ntufarelli's Avatar

    Here is a screenshot.
    Also if I try to connect to the pc where I've installed HgLab from another PC I am redirected to the login page and I cannot login. Here is the error from the log:
    11:46:51.5062 - Debug - - HgLab.Core.Framework.Security.AuthenticationModule - catching 401 and redirecting to signin url '/HgLab/signin?to=%252fHgLab%252fdashboard'

  7. Support Staff 7 Posted by Anton Gogolev on 26 Mar, 2013 11:31 AM

    Anton Gogolev's Avatar

    Nicola,

    Can we schedule a TeamViewer session for me to see things "live"?

  8. 8 Posted by ntufarelli on 26 Mar, 2013 01:10 PM

    ntufarelli's Avatar

    Sorry, but this is not my personal PC, so I can't.

    Just for your info:
    OS: Windows 8
    IIS8
    SQL Server Express 2012 (11.0.3128)

    May I check some other log file, event viewer, just to give you some more info?

  9. Support Staff 9 Posted by Anton Gogolev on 26 Mar, 2013 01:44 PM

    Anton Gogolev's Avatar

    No problem.

    Correct me if I'm wrong here.

    You've set up HgLab on your local machine and it's accessible via
    something like http://localhost/hglab.
    You are perfectly able to sign in when accessing
    http://localhost/hglab, but as soon as you open up the URL from some
    other machine, it's no longer possible to sign in?

    What is the exact URL you're visiting on that other machine?

  10. 10 Posted by ntufarelli on 26 Mar, 2013 04:12 PM

    ntufarelli's Avatar

    Sorry, I was out of office. The url I'm trying to visit is http://pcname/hglab where hglab is the name of the virtual directory used for installation.

    I've access to the login page but then, after inserting login and password, I'm redirected to the login page. The error in the log is Catching 401 and redirect to signin url
    This is from another machine. If I login from the same pc where hglab is installed I can login (after the patch correcting the datetime problem).

  11. Support Staff 11 Posted by Anton Gogolev on 26 Mar, 2013 04:24 PM

    Anton Gogolev's Avatar

    Does "pcname" have dots as part of a name? Like, my-pc.example.com? If it does, how many of them?

  12. 12 Posted by ntufarelli on 26 Mar, 2013 04:33 PM

    ntufarelli's Avatar

    No, the pc name is something like pc21w8 and is part of a workgroup, no domain.

  13. Support Staff 13 Posted by Anton Gogolev on 27 Mar, 2013 02:25 PM

    Anton Gogolev's Avatar

    Nicola,

    Here are two more files to replace those in \bin. Could you please check the fix?

  14. 14 Posted by ntufarelli on 27 Mar, 2013 03:05 PM

    ntufarelli's Avatar

    Thanks for looking at that; this fixes the problem with the remote login.

    The problem with the CSS and the page formatting is still unfixed. Any idea?

  15. Support Staff 15 Posted by Anton Gogolev on 27 Mar, 2013 03:13 PM

    Anton Gogolev's Avatar

    Nice!

    Can you try opening up <hglab>/public/bootstrap/css/bootstrap.css in a web browser to see what's going on? Or open Fiddler ( http://www.fiddler2.com/fiddler2/ ) and open HgLab itself.

    What I want to see is how static files are served.

    Oh, and try Ctrl+F5 to reload everything.

  16. 16 Posted by ntufarelli on 27 Mar, 2013 04:11 PM

    ntufarelli's Avatar

    I receive a HTTP error 500.19; it seems there is an error in web.config, the offending line is 161: mimeMap fileExtension=".woff" mimeType="application/font-woff"

    I forget to say that the OS is 64bit, but the application pool is configured to execute 32 bit applications

  17. 17 Posted by ntufarelli on 27 Mar, 2013 04:17 PM

    ntufarelli's Avatar

    Commented out line 161 in web.config and called iisreset.
    Logged in and changed user password from the remote PC.
    Now all seems to work...

  18. Support Staff 18 Posted by Anton Gogolev on 27 Mar, 2013 04:23 PM

    Anton Gogolev's Avatar

    Nicola,

    It's getting better and better. Thanks for your support.

    To test things out, could you modify Web.config as follows:

    <staticContent>
      <remove fileExtension=".woff"/>
      <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
    </staticContent>
    
  19. 19 Posted by ntufarelli on 27 Mar, 2013 04:39 PM

    ntufarelli's Avatar

    Done and called iisreset. OK!

    Now I'll begin to use hglab with some repositories...

    Many thanks for your fixes.

  20. Support Staff 20 Posted by Anton Gogolev on 27 Mar, 2013 04:41 PM

    Anton Gogolev's Avatar

    Thank you a lot!

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM