Copied to clipboard

Flag this post as spam?

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


  • Chris Wilson 100 posts 377 karma points
    May 08, 2015 @ 11:25
    Chris Wilson
    0

    ServerVariables Error after upgrading to 7.2.4

    Hi,

    After upgrading to 7.2.4 I began receiving an intermittent issue where the backoffice would load as a blank page post-login. There was a 500 error in the console for the following URL:

    ~umbraco/ServerVariables?umb_rnd=d57ed6540&umb_rnd=undefined.undefined

    The event log on the server has the following exception repeated a number of times:

         Exception type: ArgumentException 
        Exception message: An item with the same key has already been added.
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at YouTube.UmbracoStartup.ServerVariablesParser_Parsing(Object sender, Dictionary`2 e)
       at Umbraco.Web.UI.JavaScript.ServerVariablesParser.Parse(Dictionary`2 items)
       at Umbraco.Web.Editors.BackOfficeController.ServerVariables()
       at lambda_method(Closure , ControllerBase , Object[] )
       at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    

    Manually deleting the YouTube AppData & binaries appears to have resolved the issue, it is no longer reproducible in any environment.

    A quick Google identifies a number of packages that are experiencing issues with ServerVariables after the changes in 7.2.4, I suspect you may be one of them.

    Kind Regards, Chris Wilson

  • Arlan 58 posts 184 karma points
    May 08, 2015 @ 16:32
    Arlan
    0

    I also get this error when installing on 7.2.4

  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    May 10, 2015 @ 13:04
    Warren Buckley
    100

    Hello Chris & Arlan,
    Can you tell me what version of YouTube for Umbraco you are using please?

    As Jeavon recently made a fix specifically for this problem that is version 1.0.3.
    https://github.com/warrenbuckley/YouTube-Umbraco/commit/436437b0a9bfb54f203072e25783ef043d188641

    NuGet & Latest Umbraco Zip from AppVeyor CI builds
    https://ci.appveyor.com/project/warrenbuckley/youtube-umbraco/build/1.0.3.79/artifacts

    Many Thanks,
    Warren

  • Arlan 58 posts 184 karma points
    May 10, 2015 @ 13:23
    Arlan
    0

    Warren 

    YouTube_for_Umbraco_1.0.3
    and
    7.2.4 

    the error was during install 

     

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    May 10, 2015 @ 21:02
    Jeavon Leopold
    0

    I don't think it will be YouTube causing this issue if you are using v1.0.3. To find out other packages that might be the cause read down in this other thread.

    Jeavon

  • Chris Wilson 100 posts 377 karma points
    May 11, 2015 @ 10:00
    Chris Wilson
    0

    Noted, thank you Warren!

    We had v1.0.1 installed, however removed it as it was not being utilised.

    Arlan - try manually uninstalling the package files and reinstalling; I had a similar issue with Umbraco Forms recently where it reported the latest version but the binaries were outdated.

Please Sign in or register to post replies

Write your reply to:

Draft