nguyentientoan / socialauth-net

Automatically exported from code.google.com/p/socialauth-net
0 stars 0 forks source link

Error loading token with 2.4 #187

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load an saved Token (Twitter)
2. Get an server error at LoadToken method

Exception Details: System.NullReferenceException: Object reference not set to 
an instance of an object.
Line 60: sauser.LoadToken(token,"default.aspx");

I tried loading the same token with 2.3 and it works properly.

Original issue reported on code.google.com by pgeprope...@gmail.com on 7 Aug 2013 at 7:20

Attachments:

GoogleCodeExporter commented 8 years ago
Its working for me. Could you please add more details?

My steps:
1. Clicked on Twitter icon on login Bar
2. Logged in at Twitter to have socialauth connected with twitter
3. Selected Save/Load option and downloaded token for twitter
4. Logged out from demo
5. Selected Save/Load token option again
6. Browse and selected token I downloaded in 3.
7. pressed restore
User automatically gets logged in with Twitter connected.

Original comment by deepak.a...@3pillarglobal.com on 8 Aug 2013 at 5:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
My steps is the same as yours. 
However, it looks like whenever I recompiled/rebuilt the code, it will give me 
error when I load the same Token again.

So if you add a step 4a after step 4.
4a. Recompile the code
Then the error will occur at step 7.

Note: After step 4a (recompile/rebuild the code), if I login/logout of Twitter 
once and then load the token, it will work. If I directly restore the token 
without login/logout, the error will occur.

Original comment by pgeprope...@gmail.com on 8 Aug 2013 at 7:46