Copied to clipboard

Flag this post as spam?

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


  • AJS 31 posts 212 karma points
    Dec 11, 2015 @ 22:56
    AJS
    0

    Could not load types from assembly Create.Plugin.ApproveIt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, errors:

    I tried to install the Approve It plugin, but received this error even when deleting the plugin files in App_Plugins.

    Any suggestions?

    Thanks so much,

    Amanda

    Server Error in '/' Application.

    Could not load types from assembly Create.Plugin.ApproveIt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    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 Create.Plugin.ApproveIt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    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 Create.Plugin.ApproveIt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    ] Umbraco.Core.TypeFinder.GetTypesWithFormattedException(Assembly a) +382 Umbraco.Core.TypeFinder.GetClasses(Type assignTypeFrom, IEnumerable1 assemblies, Boolean onlyConcreteClasses, Func2 additionalFilter) +353 Umbraco.Core.TypeFinder.FindClassesOfType(IEnumerable1 assemblies, Boolean onlyConcreteClasses) +62 Umbraco.Core.TypeFinder.FindClassesOfType(IEnumerable1 assemblies) +45 Umbraco.Core.<>c_DisplayClass411.<ResolveTypes>b__40() +60 Umbraco.Core.PluginManager.LoadViaScanningAndUpdateCacheFile(TypeList typeList, TypeResolutionKind resolutionKind, Func1 finder) +46 Umbraco.Core.PluginManager.ResolveTypes(Func1 finder, TypeResolutionKind resolutionType, Boolean cacheResult) +2254 Umbraco.Core.PluginManager.ResolveTypes(Boolean cacheResult, IEnumerable1 specificAssemblies) +149 Umbraco.Core.CoreBootManager.InitializeApplicationEventsResolver() +46 Umbraco.Web.WebBootManager.InitializeApplicationEventsResolver() +5 Umbraco.Core.CoreBootManager.Initialize() +343 Umbraco.Web.WebBootManager.Initialize() +75 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +177 Umbraco.Core.UmbracoApplicationBase.ApplicationStart(Object sender, EventArgs e) +9

    [HttpException (0x80004005): Could not load types from assembly Create.Plugin.ApproveIt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    ] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9941581 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) +339 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

    [HttpException (0x80004005): Could not load types from assembly Create.Plugin.ApproveIt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, errors: Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

    ] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9923092 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.114.0

  • André Santos 10 posts 81 karma points
    Dec 11, 2015 @ 23:11
    André Santos
    100

    Hi Amanda,

    What version of Umbraco are you using? It looks like ApproveIt is expecting a version of the assembly System.Net.Http.Formatting that is not present in your installation.

    André Santos

  • AJS 31 posts 212 karma points
    Dec 11, 2015 @ 23:20
    AJS
    0

    Hi André,

    Thanks for such a quick reply!

    It looks like I'm using 7.2.8.

    I will update my installation of Umbraco and then try again.

    Thanks for your help.

    -Amanda

  • André Santos 10 posts 81 karma points
    Dec 14, 2015 @ 10:51
    André Santos
    0

    Hi Amanda,

    Did it work?

  • AJS 31 posts 212 karma points
    Dec 16, 2015 @ 23:30
    AJS
    0

    Hi André,

    I apologize for the late response. I did finally upgrade from 7.2.8 to 7.3.4.

    ApproveIt is now working.

    Thanks so much,

    Amanda

  • André Santos 10 posts 81 karma points
    Dec 17, 2015 @ 10:35
    André Santos
    0

    Nice to see you got it working. I'm going to look into this anyway. Approve It shouldn't be dependent on the version of System.Net.Http.Formatting.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft