Umbraco 7.0.3 is totally broken after fresh nuget install
So, I've created a new empty asp.net project, then installed Umbraco.Core 7.0.3, Then installed Umbraqco.Cms and got this(i've tried installing Umbraco.Cms first too):
Server Error in '/' Application.
Could not load types from assembly umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null, errors: Exception:
System.TypeLoadException: Declaration referenced in a method
implementation cannot be a final method. Type:
'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco,
Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'. Exception:
System.TypeLoadException: Could not load type
'System.Web.Http.Controllers.IControllerConfiguration' from assembly
'System.Web.Http, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'. Exception:
System.TypeLoadException: Declaration referenced in a method
implementation cannot be a final method. Type:
'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'.
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.Reflection.ReflectionTypeLoadException:
Could not load types from assembly umbraco, Version=1.0.5147.18556,
Culture=neutral, PublicKeyToken=null, errors: Exception:
System.TypeLoadException: Declaration referenced in a method
implementation cannot be a final method. Type:
'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco,
Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'. Exception:
System.TypeLoadException: Could not load type
'System.Web.Http.Controllers.IControllerConfiguration' from assembly
'System.Web.Http, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'. Exception:
System.TypeLoadException: Declaration referenced in a method
implementation cannot be a final method. Type:
'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'. Exception: System.TypeLoadException:
Declaration referenced in a method implementation cannot be a final
method. Type:
'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'.
Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral,
PublicKeyToken=null'.
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:
[ReflectionTypeLoadException: Could not load types from assembly umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
]
Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +383
Umbraco.Core.TypeFinder.GetClasses(Type assignTypeFrom, IEnumerable`1 assemblies, Boolean onlyConcreteClasses, Func`2 additionalFilter) +332
Umbraco.Core.TypeFinder.FindClassesOfType(IEnumerable`1 assemblies, Boolean onlyConcreteClasses) +62
Umbraco.Core.TypeFinder.FindClassesOfType(IEnumerable`1 assemblies) +45
Umbraco.Core.<>c__DisplayClass41`1.b__40() +60
Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func`1 finder) +46
Umbraco.Core.PluginManager.ResolveTypes(Func`1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +2254
Umbraco.Core.PluginManager.ResolveTypes(Boolean cacheResult, IEnumerable`1 specificAssemblies) +149
Umbraco.Core.CoreBootManager.InitializeApplicationEventsResolver() +46
Umbraco.Web.WebBootManager.InitializeApplicationEventsResolver() +5
Umbraco.Core.CoreBootManager.Initialize() +257
Umbraco.Web.WebBootManager.Initialize() +18
Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +89
Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e) +9
[HttpException (0x80004005): Could not load types from assembly umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9905689
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
[HttpException (0x80004005): Could not load types from assembly umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9885044
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
I've just received exactly the same error, same situation, just installed Umbraco Nuget package for 7.0.3. This was an upgrade from 7.0.2 if that makes any difference.
It worked fine until today i get this error in Umbraco.. tried the solution but doesn't help.. anyone a new solution?
Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
EDIT: Fixed it by clearing the bin folder and rebuild + autorestore packages
Umbraco 7.0.3 is totally broken after fresh nuget install
So, I've created a new empty asp.net project, then installed Umbraco.Core 7.0.3, Then installed Umbraqco.Cms and got this(i've tried installing Umbraco.Cms first too):
Server Error in '/' Application.
Could not load types from assembly umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
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.Reflection.ReflectionTypeLoadException: Could not load types from assembly umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null, errors:
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.Editors.ContentPostValidateAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForContentAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.EnsureUserPermissionForMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FileUploadCleanupFilterAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'Umbraco.Web.WebApi.Filters.FilterAllowedOutgoingMediaAttribute'. Assembly: 'umbraco, Version=1.0.5147.18556, Culture=neutral, PublicKeyToken=null'.
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:
I've just received exactly the same error, same situation, just installed Umbraco Nuget package for 7.0.3. This was an upgrade from 7.0.2 if that makes any difference.
Hello! The same error (umbraco 7.0.3 from nuget)
+1
I got a similar error with Umbraco 7.0.3 and found the solution from a different thread. The solution was provided by Mercel.
Could not load types from assembly umbraco, Version=1.0.5133.26615, Culture=neutral, PublicKeyToken=null, errors:
The problem is caused by a wrong version of Asp.Net WebApi is installed.. Install the last compatible version with umbraco by nuget.
Update-Package Microsoft.AspNet.WebApi -Version 4.0.30506
Updating the .Net WebApi worked out for me, thanks Naresh for sharing this fix!
Great, that helped.
Some issue still there in 7.0.4.
Thanks for the solution
It worked fine until today i get this error in Umbraco.. tried the solution but doesn't help.. anyone a new solution?
Could not load type 'System.Web.Http.Controllers.IControllerConfiguration' from assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
EDIT: Fixed it by clearing the bin folder and rebuild + autorestore packages
is working on a reply...