# eventlog GetCategories() Exception

**URL:** <https://tech-community.robotics.abb.com/t/eventlog-getcategories-exception/4985>\
**Category:** Developer Tools\
**Created:** [July 17, 2012, 9:29am UTC](https://tech-community.robotics.abb.com/t/eventlog-getcategories-exception/4985 "2012-07-17T09:29:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenji](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@Kenji](https://tech-community.robotics.abb.com/u/Kenji)\
**Post date:** [July 17, 2012, 9:29am UTC](https://tech-community.robotics.abb.com/t/eventlog-getcategories-exception/4985/1 "2012-07-17T09:29:39Z")

</div>

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.😉  
EventLog log = aController.EventLog;  
EventLogCategory cat;  
cat = log.GetCategories(); -----\>Exception

System.IO.FileNotFoundException was unhandled  
Message=?-??3a?%_?^??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:
