Copied to clipboard

Flag this post as spam?

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


  • xumix 17 posts 109 karma points c-trib
    Feb 14, 2014 @ 11:19
    xumix
    0

    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
    
  • Sean 12 posts 32 karma points
    Feb 14, 2014 @ 15:33
    Sean
    0

    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.

  • Alexey 3 posts 23 karma points
    Feb 16, 2014 @ 13:27
    Alexey
    0

    Hello! The same error (umbraco 7.0.3 from nuget)

  • Dennis Nielsen 1 post 22 karma points
    Feb 16, 2014 @ 13:37
    Dennis Nielsen
    0

    +1

  • Naresh Narendran 1 post 27 karma points
    Feb 16, 2014 @ 22:34
    Naresh Narendran
    6

    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

     

  • Sean Håkansson 67 posts 193 karma points
    Feb 18, 2014 @ 12:45
    Sean HÃ¥kansson
    0

    Updating the .Net WebApi worked out for me, thanks Naresh for sharing this fix!

  • xumix 17 posts 109 karma points c-trib
    Feb 18, 2014 @ 12:47
    xumix
    0

    Great, that helped.

  • David Peck 690 posts 1896 karma points c-trib
    Mar 12, 2014 @ 10:19
    David Peck
    0

    Some issue still there in 7.0.4.

    Thanks for the solution

  • Michael 1 post 21 karma points
    Mar 15, 2014 @ 20:23
    Michael
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft