Welcome to Media Center Master!
A powerful solution for mastering your digital media library.
Supporting Emby, Kodi/XBMC/OSMC, Plex, Windows Media Center, and more!

Home Download Gallery Wiki Issue Tracker Licensing Forums

   FAQ  •  Search •  Login •  Register     
It is currently October 21st, 2017, 3:26 pm

All times are UTC - 7 hours [ DST ]

Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: System.UnauthorizedAccessException thrown for NAS file share
PostPosted: May 1st, 2017, 2:01 pm 
Downloaded Clip

Joined: June 12th, 2013, 4:18 am
Posts: 3
Recently been getting these errors a lot

Couldn't write XML to \\athena\media2\TV\Continuing\<some series>\series.xml

I know the share im mapping to (QNAP NAS) is writable. I can open Explorer and manually create/rename/delete folders.

I opened the troubleshooter and tried the path and it told me that the user im logged on as doesnt have privileges.... Well yes thats true and its why i map to the drive with a user that does.....

Then i tried mapping a drive letter, same issue. (output below). However its odd because MCM doesnt have a problem moving movies and episodes to that very same share, it just randomly cant open series.xml. At first i thought maybe plex is locking series.xml and then i realised plex cant couldnt give a wet fart about an xml file....

20:53 :: Testing on path: y:
20:53 :: ... checking that the path exists
20:53 :: ...... finished successfully
20:53 :: ... testing path attributes (hidden, system, read-only, and offline)
20:53 :: ...... finished successfully
20:53 :: ... getting contents for this path
20:53 :: ...... finished successfully
20:53 :: ... creating an empty XML file ('_MCM_troubleshooter.xml')
20:53 :: ...... finished successfully
20:53 :: ... deleting the empty XML file ('_MCM_troubleshooter.xml')
20:53 :: ...... finished successfully
20:53 :: ... creating an empty picture file ('_MCM_troubleshooter.jpg')
20:53 :: ...... finished successfully
20:53 :: ... deleting the empty picture file ('_MCM_troubleshooter.jpg')
20:53 :: ... checking all existing files in this path
20:53 :: ...... error: access denied exception thrown by the .Net framework
20:53 :: ...... the user account 'MEDIA\Administrator', does not have read/list access to y: (nor does any group the user belongs to)
20:53 :: ...... (.Net framework's System.IO.Directory.GetFiles() threw an exception)
20:53 :: ...... (exception thrown: System.UnauthorizedAccessException, Access to the path 'Y:\Movies\Movies' is denied.)

Support Information generated by Media Center Master:
Installation name: Media Center Master
Installation date: 20151230
Media Center Master: 2.16.11117.1299
Windows version: Windows Server 2012 R2 Datacenter (64-bit)
Windows version (raw): Microsoft Windows NT 6.2.9200.0
.NET framework information:
Runtime loaded: 2.0.50727.8000
Runtimes installed:
2.0.50727.4927 SP2
3.0.30729.4926 SP2
3.5.30729.4926 SP1
AppData path: C:\Users\Administrator\AppData\Roaming\Peter Souza IV\Media Center Master
AppSettingKey path: HKEY_CURRENT_USER\SOFTWARE\Peter Souza IV\Media Center Master
Command line: "C:\Program Files (x86)\Media Center Master\MCMStubLauncher.exe"
Current path: C:\Program Files (x86)\Media Center Master
Administrative details:
User is administrator: true
UAC status: disabled
Elevation status: elevated
Proxy:(none in use)

Media Center Master preferences and settings (from registry):
AllowSlowUIColumns: False
AnnouncementsLast: 1451494220
AppendParentalRatingsToMovieDescription: False
Art_AutoResize: False
Art_BackdropWidth: 1280
Art_EnableOldArtChooser: False
Art_PosterWidth: 320
Artwork_FanartTV: False
Artwork_FanartTV_ClearArt: True
Artwork_FanartTV_ClearArt_SaveAs: clearart
Artwork_FanartTV_ClearLogo: True
Artwork_FanartTV_DiscArt: True
Artwork_FanartTV_DiscArt_SaveAs: disc
Artwork_FanartTV_HD: True
Artwork_FanartTV_Logo_SaveAs: logo
Artwork_FanartTV_MovieBanner: True
Artwork_FanartTV_MovieBanner_SaveAs: banner
Artwork_FanartTV_Thumbnail: True
Artwork_FanartTV_Thumbnail_SaveAs: thumb
AskForIMDBIDOnUnknownMovies: True
AutoFetchMetaDataForTVScanFolders: False
AutoMaximizePosterWindow: False
AutoProcess_Fetch: True
AutoProcess_Move: True
AutoProcess_ParseAndIgnore: False
AutoProcess_Rename: True
AutoProcessNewTV: True
AutoRunNewMediaList: False
AutoShrinkPostersForDVDID: False
BestSummary: Use smallest available description
ConfirmationPromptTimeout: 30
CreateBlank: False
CreateDVDIDMetaData: False
CreateMovieNFOMetaData: False
CreatePyTiVoMetadata: False
DeepInspectVideoFor3D: False
DetectAndOrganizeSingleFileItems: True
DisableTorrenting: False
DontFetchPictures: False
DontSaveWorkingCache: False
DontTryToElevateUAC: False
DotNetCheck_Status: Pass
Download_ParserInTestMode: False
DownloadAllBackdrops: False
DownloadCastThumbs: False
DownloadCrewThumbs: False
Downloader_AcceptArchives: False
Downloader_AgeThreshold: 4
Downloader_AllowAVI: True
Downloader_AllowFLV: False
Downloader_AllowMKV: True
Downloader_AllowMP4: True
Downloader_AllowMPG: False
Downloader_AllowWMV: False
Downloader_AvoidSubs: True
Downloader_Avoidx264: False
Downloader_CleanUp: True
Downloader_ExtractArchives: True
Downloader_InspectTrackers: False
Downloader_Movie_1080HD_SizeMax: 15000000000
Downloader_Movie_1080HD_SizeMin: 3000000000
Downloader_Movie_720HD_SizeMax: 10000000000
Downloader_Movie_720HD_SizeMin: 1750000000
Downloader_Movie_SD_SizeMax: 1500000000
Downloader_Movie_SD_SizeMin: 400000000
Downloader_MovieAllowForeign: False
Downloader_MovieExcludeTerms: cam r5 ts telesync webscr* dvdscr* scr dubbed german fr french dutch* swesub* vosfr nlsubs nl_subs dvd4 dvd5 dvd9 vostfr
Downloader_MovieExcludeTerms_1080HD: 720*
Downloader_MovieExcludeTerms_720HD: 1080*
Downloader_MovieExcludeTerms_SD: 720* 1080*
Downloader_MovieIncludeTerms_1080HD: 1080*
Downloader_MovieIncludeTerms_720HD: 720*
Downloader_MovieQuality: 15
Downloader_ParserIgnoresReadOnly: True
Downloader_RatingThreshold: 4.5
Downloader_ReplaceUseBestQuality: True
Downloader_RunAtStartup: False
Downloader_Torrents_SkipPeerCheckOnNewUploads: True
Downloader_TV_1080HD_SizeMax: 8000000000
Downloader_TV_1080HD_SizeMin: 500000000
Downloader_TV_720HD_SizeMax: 4000000000
Downloader_TV_720HD_SizeMin: 200000000
Downloader_TV_SD_SizeMax: 1250000000
Downloader_TV_SD_SizeMin: 70000000
Downloader_TVAllowForeign: False
Downloader_TVExcludeTerms: preair flv dubbed german fr french dutch* swesub* vosfr nlsubs nl_subs dvd4 dvd5 dvd9
Downloader_TVExcludeTerms_1080HD: 720*
Downloader_TVExcludeTerms_720HD: 1080*
Downloader_TVExcludeTerms_SD: 720* 1080*
Downloader_TVIncludeTerms_1080HD: 1080*
Downloader_TVIncludeTerms_720HD: 720*
Downloader_TVQuality: 15
Downloader_UpgradeMovieQuality: False
Downloader_WantObscure: False
DualPass: True
EpisodeRenamingConvention: N - SXXEYY - T [Q]
FilteringDisabled: False
FolderCleaner_AutoCleanOnFetch: True
FolderCleaner_DeleteSamples: True
FolderCleaner_DeleteStaleMetadata: True
FolderCleaner_DeleteUnknownFolders: False
FolderCleaner_DeleteUnknownImages: False
FolderCleaner_DeleteUnusedExternalMetadata: True
FolderCleaner_TestMode: False
ForcedTitleTag: True
HideTitleBarLicensing: False
HighlightMissingMeta: True
HoverPreviewMode: False
HTML_FastVideoInspection: True
IgnorePeriodFilesAndDirectories: True
ImagesByNameMode: New
Interval_AutoScan: 1296000
Interval_AutoScanEpisodes: 1296000
Interval_DownloadNewMovies: 86400
Interval_DownloadNewTV: 43200
Interval_DownloadParser: 14400
Interval_DownloadTorrentFeeds: 3600
Interval_NewMediaList: 7200
Interval_uTorrent: 43200
LastFetchMode: 2
LicenseCache: SVAfg*******************
LicenseCode: MCMLT******************
LicenseDetails: {Privacy Censor}
LicensingMode: 2
LicensingSystemNew: True
LimitBackdropDownloads: 5
ListFilter_ShowCollections: False
ListFilter_ShowMovies: False
ListFilter_ShowTV: True
LogLimit: 500
LogTimestamp: True
LogToFile: False
ManualMovieConfirm: False
MaxFetcherThreads: 2
MCMInstallCheck: 1
MediaListSort: ListTitle_NoArticles/A
Metadata_AllowFetcherKeywordTags: False
Metadata_aTVFlash: False
Metadata_Boxee: False
Metadata_DLNA: False
Metadata_Embedded: False
Metadata_JRiver: False
Metadata_MediaBrowserOld: False
Metadata_MythTV: False
Metadata_WDTV: False
Metadata_XStreamer: False
MinimizeToTray: False
MoreRelaxedSearching: True
MoveMovieDownloadsTo: \\athena\media2\movies
Movie_VotedScoreSource: primary fetcher
Netgear_AutoReduceFileSize: True
Netgear_CompatibleTextFields: False
Netgear_EmbedPoster: True
Netgear_Force_EASCII: True
Netgear_MetaData: False
Netgear_TLENID3Standard: True
NewMediaListDays: 7
NMTPathMapping: C:\Example\Path**file:///opt/sybhttpd/localhost.drives/NETWORK_SHARE/EXAMPLESHARE|
NoCommas: False
NoConfirmOnOneResult: True
NonblockingConfirmationPrompts: True
NoSpaces: False
NoSpaces2: False
OnlyShowAnnouncements: False
OrganizerShowMetaData: False
OrganizerShowOtherFiles: False
Plugin_Fetcher_Adult: TMDbA
Plugin_Fetcher_Movies1: IMDB
Plugin_Fetcher_Movies2: tMDB
Plugin_Fetcher_TV: thetvdb.com
PopupMoveWindow: False
PostProcessing_Hide: True
PostProcessing_Wait: True
PostProcessingTVEpisode_Hide: True
PostProcessingTVEpisode_Wait: True
PostProcessingTVShow_Hide: True
PostProcessingTVShow_Wait: True
Profile_Current: blah
Profile_List: ||Joe||blah
ReadOnlyFoldersVisible: True
RelaxedTVDetection: False
RenameFiles: True
RenameFolders: True
Renamer_Movie: T, T (Y) [Q]
Renamer_Series: T, T [Y]
RenamerDownloadStyle: False
RespectIDs: True
RuT_EnableManager: False
ScanFolders: Y:\Movies|Y:\TV\Continuing
SearchWithoutPath: False
SeasonRenamingConvention: Season {S}
ShowDebug: True
SortByOriginalFolder: False
SortWithoutArticle: True
Subtitle_NamingMode: ISO 2
Subtitles_PreferedLanguage: in English
Subtitles_PreferedLanguages: en,en
ThemedBackgrounds: False
ThumbnailExtract_Auto: False
ThumbnailExtract_Lots: False
TMDb_CountryAbbreviation: UK
TMDb_LanguageAbbreviation: en
TMDb_LanguageID: 7
TMDb_LanguageName: English
TorrentFinishedPath: d:\complete
Torrents_AllowMagnetLinks: False
Torrents_DisableVirusProtection: False
Torrents_DownloadDelay: 8
Torrents_MinimumEpisodeSeeds: 5
Torrents_MinimumMovieSeeds: 35
Torrents_PirateBayHost: ukpirate.org
Trailers_AllowAdaptiveYouTubeTrailerMuxing: False
Trailers_AlwaysReEncode: False
Trailers_AutoDownload: False
Trailers_AutoReEncode: False
Trailers_AutoReplace: True
Trailers_MaxBitRate: 1600
Trailers_SaveLocation: 4
Trailers_TargetSize: 480 (pixels high)
Trailers_WatchOutput: False
Trakt: False
Trakt_Auto: False
Trakt_AutoAddTV: False
Trakt_AutoDownload: False
Trakt_AutoDownloadCheckRelease: True
Trakt_ReleaseDayOffset: 0
TTVDB_LanguageAbbreviation: en
TTVDB_LanguageID: 7
TTVDB_LanguageName: English
TV_Overrides: archer*110381*|blindspot*295647*|law and order ci*71489*4203|mars*316345*|mash*70994*4315|second chance*295684*|the office us*73244*6061|the triangle*75599*|the flash*279121*
TVAutoScanCheckMissingThumbs: False
TVFetchSeasonBanners: False
TVFetchSeasonPosters: False
TVThemeMusic: False
TVVideoBackdrops: False
UITheme: Windows
UpdateFile: Update.txt
UpdatePath: http://download.MediaCenterMaster.com/AutoUpdate/
UseAutoDetectionMode: False
UseAutoUpdate: True
UseCloudNetwork: False
UseConsolodatedGenres: False
UseExistingPosters: True
UseFetcherThreads: True
Usenet_AutoLoadNZB: False
Usenet_Binsearch: True
Usenet_CacheLocation: C:\Users\Administrator\AppData\Roaming\Peter Souza IV\Media Center Master\Usenet
Usenet_MaxConnections: 20
Usenet_MCMIndex: True
Usenet_MoveNZBFile: False
Usenet_NZBsu: False
Usenet_Port: 119
Usenet_SSL: False
Usenet_UseMCMToDownload: True
UsePostProcessing: False
UsePostProcessingTVEpisode: False
UsePostProcessingTVShow: False
UseSecondaryGenres: False
UseWindowsProxy: False
UT_AutoForceTVDownloads: False
UT_AutoLabel: False
UT_AutoRemoveCompletes: True
UT_AutoRepair: True
UT_EnableManager: True
UT_LeaveSeedingTorrentsWithETA: False
UT_Password: {Privacy Censor}
UT_Port: 8080
UT_RemoteAddMagnets: True
UT_RemoteAddTorrents: True
UT_SeedUntilRatio: 0.000
UT_Username: {Privacy Censor}
VersionUpgrader: 5
WantExtendedTVStatus: False
WantMovieTorrentDownloader: False
WantNewMovieDownloads: False
WantOpenSubtitlesOrg: False
WantQueueAbortConfirmation: False
WantSmoothImages: False
WantSubtitleDownloads: False
WantSubtitleDownloads_Movies: False
WantSubtitleDownloads_TV: False
WantTorrent_eztv: True
WantTorrent_isohunt: True
WantTorrent_kickasstorrents: True
WantTorrent_rarbg: True
WantTorrent_thepiratebay_new: True
WantTorrentAutoStart: True
WantTVTorrentDownloader: True
WantUsenet: False
WantVideoDetails: True
WhatToDoWithBadEpisodeDownloads: Skip
XBMC_AlternatePosterSize: False
XBMC_API_Integration: False
XBMC_API_Notifications: False
XBMC_API_Scan: False
XBMC_ExtraFanart: False
XBMC_FillTitleFromOriginalTitle: False
XBMC_GenerateFanArtwork: True
XBMC_GeneratePosterArtwork: True
XBMC_NeverDeleteExtraFanart: False
XBMC_SpecialsSeasonHackFix: True
XBMC_Version: 12
YAMJEnabled: False

Detailed Version Information:
File versions (current + install path):
AutoUpdate.dll version: 2.30.34914.1417
MCMStubLauncher.exe version: 2.12.23514.782
unins000.exe version:
File versions (%AppData%\bin):
AdultDVDEmpire.dll version: 3.21.11117.1299
AutoUpdate.dll version: 2.31.11117.1299
ffmpeg.exe version: none
GayDVDEmpire.dll version: 3.21.11117.1299
ICSharpCode.SharpZipLib.dll version:
IMDB.dll version: 3.6.11117.1299
Ionic.Zip.dll version:
MCMIDTag.dll version: 2.16.11117.1299
MCMMKVTag.dll version: 2.16.11117.1299
MCMWTV.dll version:
MediaCenterMaster.exe version: 2.16.11117.1299
MediaInfo.dll version:
MonoTorrent.dll version:
Newtonsoft.Json.dll version:
ObjectListView.dll version: 2.16.11117.1299
par2.exe version: none
RottenTomatoes.dll version: 1.2.19713.596
Sublight.Plugins.SubtitleProvider.dll version:
SublightPlugin.dll version: 2.16.11117.1299
System.Data.SQLite.dll version:
tMDB.dll version: 5.33.11117.1299
TMDbA.dll version: 1.6.11117.1299
unrar.dll version:
VidInfo.exe version: 2.15.25315.814

 Post subject: Re: System.UnauthorizedAccessException thrown for NAS file s  [SOLVED]
PostPosted: May 3rd, 2017, 9:29 am 
User avatar

Joined: May 1st, 2009, 10:12 am
Posts: 11315
Location: Meridian, ID, USA
devon wrote:
I know the share im mapping to (QNAP NAS) is writable. I can open Explorer and manually create/rename/delete folders.
Keep in mind context levels!

The same user elevated and non-elevated have different permissions. Since Media Center Master is elevated, my first suggestion would be to simply disable UAC elevation and restart MCM.

Given that the troubleshooter itself is identifying the error, there's little more I can do for you. A barebones .Net app that's been elevated is trying to System.IO.Directory.GetFiles() on your path and Windows is telling the app that there is no permission to do so.

Peter Souza IV
stable version 2.16.11117.1299 / April 21st, 2017
Media Center Master on Facebook!

 Post subject: Re: System.UnauthorizedAccessException thrown for NAS file s
PostPosted: May 3rd, 2017, 10:26 am 
Downloaded Clip

Joined: June 12th, 2013, 4:18 am
Posts: 3
I see what youre trying to say. I would say however that the only context that matters here is the permissions on the fileshare that are in this case managed by the NAS (Linux). If MCM is accessing the share its using the credentials provided when i mapped the drive, UAC etc be damned as the credentials to access the share are inviolate and dont change.

MCM is accessing the share to upload and it appears to randomly open some files to edit and be locked out on others. To be honest im not entirely certain its a MCM issue, i was just thrown by the diagnostics telling me i couldnt access a volume that i patently could. I hoped that you had a major answer in one of those mystical "Ive just had the exact same issue! Heres the fix...." moments

As of right now im kinda stumped to diagnose the real cause but ive cleared the issue by rebooting the entire environment. Plex server (on CentOS), QNAP TS NAS and last but not least good ol MCM running on a Windows 2012 R2 server running on an ESXi VM. In the rare case that someone has the same issue and circumstance i can heartily recommend the three fingered salute to your entire stack. And if you have trouble with that, go play with your breaker switches - just kidding :)

I guess you can mark this one as Unable to replicate

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Copyright © 2009-2017, Media Center Master, Inc. All rights reserved.