Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Search in
Link copied. Please paste this link to share this article on your social media post.
I am just getting started (again), and trying to write a simple chunk of code to connect to a server and print its alarms, over CSP. The following is what I have:
namespace SmartConnector.MongooseConnectCSP { public class MyTestFixtureFixture : SmartConnectorTestFixtureBase { #region FixtureOneTimeSetup_Base - Override //protected override void FixtureOneTimeSetup_Base() //{ // SmartConnectorService.InitIoC(); //} #endregion #region MyTest [Test] static void Main() { var client = MongooseObjectFactory.Current.GetInstance<IManagedCspClient>(); Assert.IsNotNull(client); var server = new CspEndpoint { Address = "X.X.X.X", Password = "thePassword", UserName = "theUser" }; //var verison = NativeClient.ServerVersion(server); //Assert.IsNotNull(version); var response = client.RetrieveAlarmEvents(server, new CspQuery() { IncludeHidden = true, IncludeSystemFolderWhenSearching = true }); Assert.IsNotNull(response); Debug.Print(response.ToString()); } protected override void FixtureOneTimeSetup_Base() { throw new NotImplementedException(); } #endregion } }
When I try to run this (just using the debugger in VS2017), I get the following error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'StructureMap, Version=3.1.4.0, Culture=neutral, PublicKeyToken=5cb6388d33b04e56' or one of its dependencies. The system cannot find the file specified.'
Any help?
Link copied. Please paste this link to share this article on your social media post.
Hi, that error suggests something more trivial than a code error, it's not specific to CSP.
Do you have a reference to the Mongoose.Service.exe file in your Test project? - If you do, make sure the StructureMap, Version=3.1.4.0 dll is in the same folder. You may also need to check that the package version you have from Nuget is a match with your installed version of SmartConnector (particularly if this is prior to the 2.4 release)
You’ve reached the end of your document
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.