- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm getting the following error with a custom extension after upgrading Vault Professional from 2019 to 2021.
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.
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?
Solved! Go to Solution.