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 Jeff,
When I am deploying my endpoints on the SmartConnector Portal, I am getting following error on Validation or in running the endpoints. What is the best way to find the cause of this error ? Following is the only useful information in the log.
Starting REST Provider http://127.0.0.1:8099,
2018-08-21 13:44:40.1744,Error,Service,<no principal>,Object does not match target type.
at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
at Mongoose.Common.ObjectExaminer.GetObjectMemberValue(Object item, MemberInfo member)
at Mongoose.Common.ObjectExaminer.TraverseObject(ITraversable node, ITraversable parentNode, Int32 currentDepth, Int32 maxDepth, ProcessObjectDelegate callBack)
at Mongoose.Common.ObjectExaminer.GetTraversableItems(ITraversable startingNode, Int32 maxDepth)
at Mongoose.Common.GenericValidator.ValidateItem(ITraversable item, Int32 maxDepth)
at Mongoose.Common.ExtensionMethods.ValidateInstance(IDerivedFromConfiguration item)
at Mongoose.Service.Mongoose.SpinUpRestProvider(RestConfiguration configuration, MongooseDbContext db)
Thanks!
Neeraj Tomar
Link copied. Please paste this link to share this article on your social media post.
Hi Neeraj,
I took a look into this, and its possible this can occur if you have two classes with the same namespace and class name in multiple different assemblies copied in the Smart Connector directory.
Make sure that your namespaces on all your extension are unique and this error should go away.
Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hi Neeraj,
I took a look into this, and its possible this can occur if you have two classes with the same namespace and class name in multiple different assemblies copied in the Smart Connector directory.
Make sure that your namespaces on all your extension are unique and this error should go away.
Regards,
-Jeff
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.