I get an unhandled exception every morning when I come in. I’ve been running a test campaign on a couple of displays, and they both had the same error this morning. It references line 232 in Media.cs. I’ll make sure to post the actual exception text here when it happens again.
I cloned the source code to my desktop to investigate, but the exception seems to take place inside an event handler for the media class. I wasn’t able to track down the cause.
The layout that seems to cause the issue includes a webpage using manual position, two text regions, one .mp4 video, and one .wmv video. The other layouts reuse some of the same regions with the addition of two embedded YouTube videos.
Here’s the log I pulled for the device:
29753 2016-03-08 07:53:51 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29752 2016-03-08 07:53:51 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29751 2016-03-08 07:05:11 Client [UI Thread] WebMedia Retrived the resource, stored the document but the media has already expired.
29750 2016-03-08 07:05:11 Client [UI Thread] xmds_GetResource Unable to get Resource: Requested an invalid file.
29749 2016-03-08 07:05:11 Client [UI Thread] WebMedia Retrived the resource, stored the document but the media has already expired.
29748 2016-03-08 06:52:55 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29747 2016-03-08 06:52:55 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29746 2016-03-08 06:34:40 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29745 2016-03-08 06:34:40 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29744 2016-03-08 06:23:30 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\13.xlf failed. Exception raised was: Collection was modified; enumeration operation may not execute.
29743 2016-03-08 06:23:30 Client [UI Thread] MainForm - ChangeToNextLayout Destroy Layout Failed. Exception raised was: Collection was modified; enumeration operation may not execute.
29742 2016-03-08 04:26:08 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29741 2016-03-08 04:26:08 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29740 2016-03-08 04:08:32 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29739 2016-03-08 04:08:32 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29738 2016-03-08 03:44:36 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\20.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\20.xlf' because it is being used by another process.
29737 2016-03-08 03:44:36 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\20.xlf' because it is being used by another process.
29736 2016-03-08 03:34:01 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29735 2016-03-08 03:34:01 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29734 2016-03-08 03:23:10 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29733 2016-03-08 03:23:10 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29699 2016-03-08 03:04:14 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29698 2016-03-08 03:04:14 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29697 2016-03-08 02:34:03 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29696 2016-03-08 02:34:03 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29695 2016-03-08 02:14:49 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29694 2016-03-08 02:14:49 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29693 2016-03-08 01:52:43 Client [UI Thread] xmds_GetResource Unable to get Resource: Requested an invalid file.
29692 2016-03-08 01:52:31 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29691 2016-03-08 01:52:31 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29690 2016-03-08 01:42:27 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29689 2016-03-08 01:42:27 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29688 2016-03-08 01:38:25 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29687 2016-03-08 01:38:25 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29686 2016-03-08 01:18:18 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29685 2016-03-08 01:18:18 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29684 2016-03-08 01:04:09 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29683 2016-03-08 01:04:09 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29682 2016-03-08 00:47:51 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29662 2016-03-08 00:47:51 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29661 2016-03-08 00:43:48 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29660 2016-03-08 00:43:48 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29659 2016-03-08 00:29:42 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29658 2016-03-08 00:29:42 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29657 2016-03-08 00:13:34 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29656 2016-03-08 00:13:34 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29655 2016-03-08 00:09:32 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29654 2016-03-08 00:09:32 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29653 2016-03-07 23:49:14 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\16.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29652 2016-03-07 23:49:14 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\16.xlf' because it is being used by another process.
29651 2016-03-07 20:01:44 Client [ScheduleAgentThread] ScheduleAgent - Run WebException in Run: Unable to connect to the remote server
29650 2016-03-07 20:01:27 Client [LogAgent] LogAgent - Run WebException in Run: Unable to connect to the remote server
29649 2016-03-07 20:01:17 Client [RegisterAgentThread] RegisterAgent - Run WebException in Run: Unable to connect to the remote server
29648 2016-03-07 20:01:17 Client [RegisterAgentThread] RegisterAgent - Run WebException in Run: Unable to connect to the remote server
29647 2016-03-07 18:28:15 Client [UI Thread] MainForm - ChangeToNextLayout Layout Change to C:\Users\oscmedia\Documents\Xibo Library\13.xlf failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\13.xlf' because it is being used by another process.
29646 2016-03-07 18:28:15 Client [UI Thread] MainForm - ChangeToNextLayout Prepare Layout Failed. Exception raised was: The process cannot access the file 'C:\Users\oscmedia\Documents\Xibo Library\13.xlf' because it is being used by another process.