Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Facebook authentication failedFacebook authentication failed
Previous
 
Next
New Post
10/15/2012 10:05 AM
 

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

 
New Post
10/15/2012 10:30 AM
 
are you on English (U.S.)?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/15/2012 10:46 AM
 
You mean my server locale? I tried English US on my local machine and get the same error, now I deployed DNN to Azure (North Europe)
 
New Post
10/15/2012 10:52 AM
 
ok, and what is the current website culture while viewing it - this might need to be en-US as well, if it is a format issue on the client.
You may also try to set expiry to a small negative value or zero (which means immediate expire).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/16/2012 4:19 AM
 

Well, the problem somehow magically solved -

I just created a new app in Facebook and with its app id and secret all works fine in DNN.

I just can suppose that it doesn't work correctly with old Facebook applications (my previous one was created long ago before many changes were made in Facebook).

Sorry for trouble.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Facebook authentication failedFacebook authentication failed


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out