Error after upgrading website from 7.1.8 to 7.3.5 System.Web.Http.HttpConfiguration' failed
After upgrading my a customer website from 7.1.8 to 7.3.5, the website won't run anymore. It's giving this error message for all requests
Attempt by security transparent method 'System.Web.Http.GlobalConfiguration.get_Configuration()' to access security critical type 'System.Web.Http.HttpConfiguration' failed.
I figure it has something to do with a NuGet dependency not resolving correctly (or missing)
All the resuls on Google (non umbraco-related) are pointing to Microsoft.AspNet.WebApi.OData so I updated this via NuGet to it's latest stable release but with no succes, still the same error.
I found on the forum the following 2 topics but they are both pointing to the Optimus package which I'm not using
2016-01-27 13:27:54,499 [P13576/D3/T1] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
System.TypeAccessException: Attempt by security transparent method 'System.Web.Http.GlobalConfiguration.get_Configuration()' to access security critical type 'System.Web.Http.HttpConfiguration' failed.
at System.Web.Http.GlobalConfiguration.get_Configuration()
at BackofficeTweaking.Events.UmbracoStartupEvent.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
at Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete)
at Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete)
at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
at Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e)
2016-01-27 13:28:34,884 [P13576/D3/T39] INFO Umbraco.Core.UmbracoApplicationBase - Application shutdown. Details: InitializationError
Ok, I just figured it out. After some digging in the log file I found the same error was thrown by the Backoffice Tweaking-package which apparently isn't compatible with Umbraco 7.3.5 (and also 7.3.4)
2016-01-27 14:30:26,520 [P13576/D9/T1] ERROR Umbraco.Core.CoreBootManager - An error occurred running OnApplicationStarted for handler BackofficeTweaking.Events.UmbracoStartupEvent
System.TypeAccessException: Attempt by security transparent method 'System.Web.Http.GlobalConfiguration.get_Configuration()' to access security critical type 'System.Web.Http.HttpConfiguration' failed.
at System.Web.Http.GlobalConfiguration.get_Configuration()
at BackofficeTweaking.Events.UmbracoStartupEvent.ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
thanks for sort of pointing me in the right direction in my case it was the optimus package so took out all references of it in the web config, tree config etc and managed to upgrade.
Error after upgrading website from 7.1.8 to 7.3.5 System.Web.Http.HttpConfiguration' failed
After upgrading my a customer website from 7.1.8 to 7.3.5, the website won't run anymore. It's giving this error message for all requests
I figure it has something to do with a NuGet dependency not resolving correctly (or missing)
All the resuls on Google (non umbraco-related) are pointing to Microsoft.AspNet.WebApi.OData so I updated this via NuGet to it's latest stable release but with no succes, still the same error.
I found on the forum the following 2 topics but they are both pointing to the Optimus package which I'm not using
https://our.umbraco.org/projects/developer-tools/optimus/computer-says-no/72088-ysod-on-umbraco-73
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/71847-install-optimus-package-on-730-error
Any help would be greatly appreciated I'm already struggling with this issue for three days (!) and my customer's deadline is fast approaching :-(
The full error from the log-file
Ok, I just figured it out. After some digging in the log file I found the same error was thrown by the Backoffice Tweaking-package which apparently isn't compatible with Umbraco 7.3.5 (and also 7.3.4)
https://our.umbraco.org/projects/collaboration/backoffice-tweaking/
thanks for sort of pointing me in the right direction in my case it was the optimus package so took out all references of it in the web config, tree config etc and managed to upgrade.
I had the same issue with Optimus! Thanks.
is working on a reply...