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:
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.
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.
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.
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:
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
I also get this error when installing on 7.2.4
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
Warren
YouTube_for_Umbraco_1.0.3
and
7.2.4
the error was during install
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
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.
is working on a reply...