I have an addin with a button to be able to backup all controller found on a network scan.
This works perfectly for virtual controllers but i get a generic error when attempting to backup online (real world) controllers. See below for how i currently do it. Any suggestions on another approach?
NetworkScanner runningcontrollers = new NetworkScanner();
runningcontrollers.Scan();
ControllerInfo[] aCollection = runningcontrollers.GetControllers();
int NumOfActiveControllers = aCollection.Count();
if (NumOfActiveControllers != 0)
{
for (int i = 0; i < aCollection.Count(); i++)
{
systemId = aCollection[i].SystemId;
Controller con = new Controller(systemId);
con.BackupCompleted += Con_BackupCompleted;
con.Logon(UserInfo.DefaultUser);
con.Backup("C:\temp\backups");