Hallo,
I installed DotNetNuke_Community_06.02.03_Source.zip
and set up Facebook Authentication Project extension with my facebook app id and secret
but when I try to login with facebook I get the error (taken from event viewer):
-------------------------
AssemblyVersion: 6.2.4
PortalID: 0
PortalName: My Website
UserID: -1
UserName:
ActiveTabID: 55
ActiveTabName: Getting Started
RawURL: /login.aspx?state=Facebook&code=AQBUVUNMzESMFv5ZsevgSwj-9YsVKijudPC5vZuaniQHhxYBYmY9G6AwyzHMR3uldskuWbCYYEHXveYbF6AAMrbo-pZ0mQG2SZf12_v7NT15Kt5xEoVJLv3hvIqf_CfPWc8FGtBXaBS5W7mSBrpiBj_O8wv2RjxsQ6lZzT9qMEkmVl23zBfYwjGG8tODl470vDA
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://bdc3878af9bd497f92df65e745b977df.cloudapp.net/login.aspx?ReturnUrl=%2fGettingStarted.aspx
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 56d55772-a8ed-43fe-8d9b-c9f3363a2501
InnerException: The added or subtracted value results in an un-representable DateTime. Parameter name: value
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.DateTime.AddTicks
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The added or subtracted value results in an un-representable DateTime. Parameter name: value ---> System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime. Parameter name: value at System.DateTime.AddTicks(Int64 value) at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.SaveTokenCookie(String suffix) at DotNetNuke.Services.Authentication.OAuth.OAuthClientBase.AuthenticateUser(UserData user, PortalSettings settings, String IPAddress, Action`1 addCustomProperties, Action`1 onAuthenticated) at DotNetNuke.Services.Authentication.OAuth.OAuthLoginBase.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: RD00155D523564
-------------------------------------
Then I debugged the code and found that the line causing exception is in the file
\Community\Library\Services\Authentication\OAuth\OAuthClientBase.cs Line 499:
authTokenCookie.Expires = DateTime.Now.Add(AuthTokenExpiry); // The assigned DateTime value is too small!!!
And this is because previously in the line 254 the following code executed:
AuthTokenExpiry = GetExpiry(responseText);
Where the method "GetExpiry" is:
protected virtual TimeSpan GetExpiry(string responseText)
{
return TimeSpan.MinValue; // <- This is very big negative value causing the exception!!!
}
So I don't know how it suppose to work, can you advice me what to do?
Thanks