RobotStudio event

eventlog GetCategories() Exception



Hello all
 
I have connected to a real controller, and then I want to read the event log of the controller, but an exception occurred. Below is part of the code and the exception. I am really confused. Do you know what's wrong here and how to solve it? Thank you very very much.Smile
   EventLog log = aController.EventLog;             
   EventLogCategory[] cat;
   cat = log.GetCategories(); ----->Exception
              
 
System.IO.FileNotFoundException was unhandled
  Message=?-??3?%_?^??O+?rs?-+?a_,
  Source=ABB.Robotics.Controllers
  StackTrace:
       at  ABB.Robotics.Controllers.Internal.FileSystem.PostProcessCmd(FileSystemCmd cmd)
       at ABB.Robotics.Controllers.Internal.FileSystem.EndDownloadFile(IAsyncResult ar)
       at ABB.Robotics.Controllers.Internal.FileSystem.Download(String source, String destination, Boolean overwrite)
       at ABB.Robotics.Controllers.Internal.FileSystem.DownloadToTemp(String source)
       at ABB.Robotics.Controllers.Internal.EventLog.Download(String path)
       at ABB.Robotics.Controllers.Internal.EventLog.DownloadAndParseCategories(String path)
       at ABB.Robotics.Controllers.Internal.EventLog.LoadCategories()
       at ABB.Robotics.Controllers.Internal.EventLog.GetCategories()
       at ABB.Robotics.Controllers.EventLogDomain.EventLog.GetCategories()
       at ConsoleApplication5.Program.Main(String[] args)  C:UsersAdministratorDocumentsVisual Studio 2010ProjectsIRB140_01072012ConsoleApplication1Program.cs:
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: