Error loading extension error after upgrading from Vault 2019 to Vault 2021

Error loading extension error after upgrading from Vault 2019 to Vault 2021

donalmcnamee
Advocate Advocate
1,605 Views
2 Replies
Message 1 of 3

Error loading extension error after upgrading from Vault 2019 to Vault 2021

donalmcnamee
Advocate
Advocate

I'm getting the following error with a custom extension after upgrading Vault Professional from 2019 to 2021.

donalmcnamee_0-1608569952471.png

 

I've turned on extension logging as per this post (https://justonesandzeros.typepad.com/blog/2012/07/extension-loading-error-logging.html) and the log file is giving me the following:

 

 

21/12/2020 16:56:57 ******************************************************************************
Autodesk.Connectivity.Extensibility.Framework Error: 1 : Autodesk.Connectivity.Extensibility.Framework.ExtensionException: Error getting interface type ---> System.IO.FileLoadException: Could not load file or assembly 'Autodesk.Connectivity.Explorer.Extensibility, Version=26.0.0.0, Culture=neutral, PublicKeyToken=aa20f34aedd220e1' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.Type.GetType(String typeName, Boolean throwOnError)
   at Autodesk.Connectivity.Extensibility.Framework.ExtensionAssembly.Create(VcetConfiguration config, Boolean RequireAssemblyAttributes, List`1& errors)
   --- End of inner exception stack trace ---
ConfigurationFilePath: C:\ProgramData\Autodesk\Vault 2021\Extensions\VaultToWebstore\VaultToWebstore.vcet.config
ErrorCodeEnum: LoadError

 

 

I've updated the AssemblyVersion in my AssemblyInfo.cs file to 26.1.152.0 as this is the version that I see in the other extensions that come with Vault 2021.

 

donalmcnamee_1-1608570060809.png

 

Also, I updated the Version string in my .vcet.config file to read 26.0.0.0 again as per the examples that come with the 2021 SDK.

 

 

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <connectivity.ExtensionSettings3>
    <extension
      interface="Autodesk.Connectivity.Explorer.Extensibility.IExplorerExtension, Autodesk.Connectivity.Explorer.Extensibility, Version=26.0.0.0, Culture=neutral, PublicKeyToken=aa20f34aedd220e1"
      type="VaultToWebstore.VaultToWebstoreCommandExtension, VaultToWebstore">
    </extension>
  </connectivity.ExtensionSettings3>
</configuration>

 

 

I've double-checked all the references in my programme to make sure they're pointing to the Vault 2021 SDK DLLs.

 

So I'm not sure what I'm missing to get my extension to work, but it must be something obvious.

Any ideas?

donalmcnamee_2-1608570705012.png

 

0 Likes
Accepted solutions (1)
1,606 Views
2 Replies
  • SDK
Replies (2)
Message 2 of 3

donalmcnamee
Advocate
Advocate

One piece of information that I left out.

 

I've also updated the ApiVersion number in the customisation file that impelments the IExplorerExtension

 

donalmcnamee_0-1608577216709.png

But still no joy...

0 Likes
Message 3 of 3

donalmcnamee
Advocate
Advocate
Accepted solution

OK. Figured it out.

When updating the extension section of the vcet.config file I failed to update the PublicKeyToken.

 

Updated the line

interface="Autodesk.Connectivity.Explorer.Extensibility.IExplorerExtension, Autodesk.Connectivity.Explorer.Extensibility, Version=26.0.0.0, Culture=neutral, PublicKeyToken=215b0879a7566597"

  and it now works.

0 Likes