SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
Hi.
I get an error when I try to add my custom processor to the Smart Connetor Portal.
The error message is this in the log file:
2017-11-01 18:48:14.1835,Error,Portal,admin,Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Mongoose.Service.Portal.Root.AddBindingInformationBaseController`2.GetClassList(AssemblyListItemModel assemblyInfo)
at Mongoose.Service.Portal.Root.AddBindingInformationBaseController`2.GetAssemblyList(String rootFolder)
,["Error attempting to load assembly C:\\Program Files (x86)\\Schneider Electric\\SmartConnector\\SmartConnector.MetryExtension.dll. Loader Exception(s): \r\nCould not load file or assembly 'Mongoose.Process, Version=2.2.127.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Mongoose.Process, Version=2.2.127.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Mongoose.Ews.Server, Version=2.2.127.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Mongoose.Ews.Server.Data, Version=2.2.127.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\nCould not load file or assembly 'Mongoose.Ews.Server, Version=2.2.127.0, Culture=neutral, PublicKeyToken=223885051a9a1eff' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)\r\n"],
Can someone direct me to what may be wrong?
Link copied. Please paste this link to share this article on your social media post.
Looks like the installed version of SmartConnector was not the same version that you developed against. If you used 2.2.127 version NuGets for Mongoose.Process then the deployed version needs to also be 2.2.127. Do those version match?
Also, you should only copy over your assembly (e.g. DLL) and any third party DLLs that are referenced by your project. You should not copy over any of the framework's assemblies.
Link copied. Please paste this link to share this article on your social media post.
Looks like the installed version of SmartConnector was not the same version that you developed against. If you used 2.2.127 version NuGets for Mongoose.Process then the deployed version needs to also be 2.2.127. Do those version match?
Also, you should only copy over your assembly (e.g. DLL) and any third party DLLs that are referenced by your project. You should not copy over any of the framework's assemblies.
Link copied. Please paste this link to share this article on your social media post.
Thanks, that was correct!
I uninstalled Mongoose.Process and Mongoose.Ews.Server and reinstallted them and it works like a charm
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.