Copied to clipboard

Flag this post as spam?

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


  • William Corry 34 posts 171 karma points
    Aug 13, 2015 @ 09:30
    William Corry
    0

    Error when adding forms workflow .dll

    I am getting an error when I add the workflow dll to the bin folder:

    Could not load file or assembly 'PerplexMail---Workflow' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    [FileLoadException: Could not load file or assembly 'PerplexMail---Workflow' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16
       System.Reflection.Assembly.Load(String assemblyString) +28
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38
    
    [ConfigurationErrorsException: Could not load file or assembly 'PerplexMail---Workflow' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +736
       System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
       System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
       System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
       System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91
       System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +284
       System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521
    
    [HttpException (0x80004005): Could not load file or assembly 'PerplexMail---Workflow' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9931916
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
    

    This is with Umbraco 7.2.8

    Thanks

  • Wouter van der Beek 20 posts 282 karma points
    Aug 13, 2015 @ 15:48
    Wouter van der Beek
    0

    Hello William,

    Thanks for trying out our lackage!

    We've planned a new release for tomorrow which will fix the bug you are currently encountering. To fix the problem in your current solution you may simply copy the new DLL's over the old DLL's in your /bin/ folder.

  • Wouter van der Beek 20 posts 282 karma points
    Aug 14, 2015 @ 15:40
    Wouter van der Beek
    0

    Good afternoon,

    To further clarify on the error you received, it is displayed because the PerplexMail workflow binary is newer (or older) then the PerplexMail package. Generally speaking if you download both the PerplexMail package and the PerplexMail workflow from the same release date you should never encounter this issue.

    I have uploaded a new version of both the package and the workflow dll. They are both available for download from the PerplexMail package download page.

    To fix the above issue in your existing solution, simply follow these steps:

    1. Delete the old PerplexMail.dll and the old PerplexMail.Workflow.dll files located in your /bin/ folder (mind the new filename for the PerplexMail workflow)
    2. Download the new PerplexMail.Workflow.dll binary and copy it to your /bin/ folder
    3. Download the new package .zip version
    4. Open the zip file. As you are not installing the package in Umbraco you will have to manually locate the PerplexMail.dll folder. In the package it is renamed to a guid: '1dc6a134-c166-495c-867a-5300d6872633.dll'
    5. Copy the file to your /bin/ folder. For clarity I also recommend renaming it to PerplexMail.dll

    The PerplexMail workflow item should now appear in your Umbraco Forms section.

    If you have a fresh installation of Umbraco and you wish to add the PerplexMail package + Workflow, you can simply install the package through the Umbraco interface and copy the PerplexMail.Workflow.dll to the /bin/ folder and everything should work.

    We are currently focussing on making improvements to the core functionality, but in the future we might provide the package through Nuget which should also make it easy to update the package and workflow files.

Please Sign in or register to post replies

Write your reply to:

Draft