Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yasir Butt 161 posts 371 karma points
    Sep 30, 2014 @ 13:13
    Yasir Butt
    0

    Error: getting error after authorize the twitter account

    Hi,

    I am getting error after authorize the twitter account. Below is the stack trace

    Server Error in '/' Application.
    

    Value was either too large or too small for an Int32. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.OverflowException: Value was either too large or too small for an Int32.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [OverflowException: Value was either too large or too small for an Int32.] System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +10896403 System.Convert.ToInt32(String value) +43 TweetSharp.TwitterService.GetAccessToken(OAuthRequestToken requestToken, String verifier) +306 Governor.Umbraco.uShare.UI.ProviderAuthPages.uShareTwitter.Page_Load(Object sender, EventArgs e) +536 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnLoad(EventArgs e) +92 Umbraco.Web.UI.Pages.BasePage.OnLoad(EventArgs e) +14 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237

  • keilo 568 posts 1023 karma points
    Sep 30, 2014 @ 13:31
    keilo
    0

    Hi there

    Are you using umbraco version 7 or 6?

  • Yasir Butt 161 posts 371 karma points
    Sep 30, 2014 @ 13:37
    Yasir Butt
    0

    Hi,

    this is umbraco 6.2.1

  • Governor Technology 146 posts 551 karma points
    Sep 30, 2014 @ 13:38
    Governor Technology
    0

    Hi Yasir

    uShare uses TweetSharp for the Twitter authorisation and sharing which is a third party tool. Doing some investigation on this seems that Twitter is now using a new account ID format, which for new accounts, is larger than the max bound of an INT. TweetSharp is using an INT for the user's Twitter ID and in such cases throws this exception. It seems to be suggested to grab the source of TweetSharp and recompile this with the fix. If you want you attempt to do this by also grabbing the uShare source from CodePlex. I can schedule this in myself however cannot say exactly when I'll be able to push a fix at the moment.

    Regards,

    Rigardt

  • Yasir Butt 161 posts 371 karma points
    Oct 13, 2014 @ 12:49
    Yasir Butt
    0

    Hi,

    Finally i got some time to see it. I have downloaded both your uShare and Tweetsharp code.

    I got compiled Tweetsharp code after some struggling and tested my twitter account and it worked. I referenced the Tweetsharp dll from compiled project to your project and tested uShare and its worked fine.

    Now i have compiled your code and added Governor.Umbraco.uShare.dll in bin folder of my project where i have installed uShare but i am getting error on run time

    Could not load file or assembly 'DotNetOpenAuth, Version=4.3.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies
    

    I tried to reference DotNetOpenAuth 4.3.1.13153 but still getting same error.

    Can you please add your packages folder with all references in codeplex?

    Yasir

  • Yasir Butt 161 posts 371 karma points
    Oct 15, 2014 @ 12:53
    Yasir Butt
    0

    Hi,

    Finally it is working after building package and reinstall the package in umbraco.

    Don't need to do any thing :)

    Yasir

  • Governor Technology 146 posts 551 karma points
    Oct 27, 2014 @ 10:33
    Governor Technology
    0

    Hi Yasir

    Sorry for the lack of responses, as I was out of the office for a while. Great to hear you got it sorted! If you're happy to, can I ask if you could email me the recompiled TweetSharp DLL, then I can update the uShare packages accordingly as I'm sure this will come up for the other versions as well. My email is rigardt @ governor . co . uk

    Many thanks!

    Rigardt

  • keilo 568 posts 1023 karma points
    Oct 27, 2014 @ 12:51
    keilo
    0

    Me too, looking forward to the updated package.

     

    cheers

  • Governor Technology 146 posts 551 karma points
    Oct 31, 2014 @ 13:12
    Governor Technology
    0

    Hi Yasir

    I've uploaded new versions of the package incorporating your fix. I haven't personally tested it with a new Twitter account that has the new ID type like yours, however based on your response it should be good. Thanks again for amending TweetSharp and supplying your fix.

    While testing the new version, I've also noticed that since the last release, browsers are now in the process of deprecating window.showModalDialog, which is what was used for the authentication modal popup. The result was that in some browsers, the popup wouldn't show anymore or would only be partially supported. This has been replaced by window.open, which is unfortunately not modal, but the safer option!

    Since you're using Umbraco 6.2.1, please refer to uShare 6.1.2 if you were planning on installing the new package.

    Best regards,

    Rigardt

  • Yasir Butt 161 posts 371 karma points
    Oct 31, 2014 @ 15:12
    Yasir Butt
    0

    Hi,

    thats great!

    I will try new version and let you give my feedback.

    Yasir

  • Governor Technology 146 posts 551 karma points
    Nov 12, 2014 @ 09:39
    Governor Technology
    0

    Hi Yasir

    Not sure if you've tried this out yet. If you have and it works, can I please ask that you close this ticket? :)

    Many thanks!

    Rigardt

Please Sign in or register to post replies

Write your reply to:

Draft