Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send InviteCancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Link copied. Please paste this link to share this article on your social media post.
2018-12-1811:49 AM
How to connect over CSP to a server.
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.'
Link copied. Please paste this link to share this article on your social media post.
2018-12-3110:08 AM
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)