Kodi Community Forum

Full Version: ServerWMC COM interop call failed, Access Denied
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I'm actually trying to use ServerWMC in conjunction with Media Browser and not Kodi, but I'm hoping someone can still assist. When attempting to initiate a stream or recording from Media Browser ServerWMC throws the error attached below. I've verified that there is no issue accessing the Recorded TV path, and I can't seem to find anything quite like this error on either the Media Browser or Kodi/ServerWMC forums. If anyone has any ideas I would greatly appreciate it. This was on a brand new install of Media Browser (3.0.5445.6) and Server WMC (1.0.0.52 build 1175). I am running ServerWMC as an application (not a service) and tried running as an administrator just in case it was a permissions issue.

2014/12/11 17:17:52.107 Received client request: MediaBrowser^@MEDIAPC@10|::1|OpenLiveStream|1163973|IncludeStreamInfo
2014/12/11 17:17:52.107 OpenLiveStream> -----------------start------------------------
2014/12/11 17:17:52.107 OpenLiveStream> client: MediaBrowser^MEDIAPC requesting live stream
2014/12/11 17:17:52.107 LiveRemuxStream> live-tv started
2014/12/11 17:17:52.107 SetChannel> Channel: 54 : AMC - 12BC = { (54 : AMC - 9AF) + [ 54 : AMC - 113A, 54 : AMC - 12BA] }
2014/12/11 17:17:52.107 SetChannel> Tuners available for this channel: 2
2014/12/11 17:17:52.107 SetChannel> Tuner DecoyMethod: OnDemand
2014/12/11 17:17:52.107 SetChannel> ---
2014/12/11 17:17:52.107 SetChannel> Attempt: 0, Tuner: Hauppauge WinTV-7164 Analog TV Tuner #1 / 52cd27f8-392a-4551-a84d-b1130bbccd35
2014/12/11 17:17:52.107 SetChannel> > Encrypted: False
2014/12/11 17:17:52.107 SetChannel> > RecorderInfo found: True
2014/12/11 17:17:52.107 SetChannel> > Recorder Content Protection: PROT_COPY_FREE
2014/12/11 17:17:52.107 SetChannel> > Status: Available, client:
2014/12/11 17:17:52.107 SetChannel> *** requested number of available tuners found, stopping search ***
2014/12/11 17:17:52.107 SetChannel> ---
2014/12/11 17:17:52.107 SetChannel> available tuners found: 1 [decoys:0], requested: 1, searched: 1
2014/12/11 17:17:52.107 SetChannel> Tuner: Hauppauge WinTV-7164 Analog TV Tuner #1 will be used for the live stream
2014/12/11 17:17:52.115 SetChannel> Recorder acquired: True
2014/12/11 17:17:52.115 SetChannel> TuneRequest set
2014/12/11 17:17:52.115 RecordToWTV::Close> isPassive is False => COM recorder will be stopped
2014/12/11 17:17:52.115 Record> Error: System.Runtime.InteropServices.COMException (0x80004005): A COM interop call failed. ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Server stack trace:
at ehiProxy.IRecorder.SetContentRecordName(String wzFilename, IMSVidStreamBufferRecordingControl& ppRecordingIUnknown)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at Microsoft.MediaCenter.Pvr.RecorderAsyncWrapper.SetContentRecordNameDelegate.EndInvoke(IMSVidStreamBufferRecordingControl& ppRecordingIUnknown, IAsyncResult result)
at Microsoft.MediaCenter.Pvr.RecorderAsyncWrapper.SetContentRecordName(String wzFileName)
at Microsoft.MediaCenter.Pvr.RecorderAsyncWrapper.SetContentRecordName(String wzFileName)
at ServerWMC.Worker.RecordToWTV.Record()
2014/12/11 17:17:52.115 LiveRemuxStream> process start error: Record> Can't start recording calling Close()
2014/12/11 17:17:52.115 LiveRemuxStream::Close> closed in 0.00 sec
2014/12/11 17:17:52.115 OpenLiveStream> error: Record> Can't start recording
2014/12/11 17:17:52.115 Finished request OpenLiveStream in 0.01s
This typically happens when swmc can't create a recording in the rec tv folder, and that's usually because the windows rec service can't write to it. Are you sure you have setup wmc properly? In particular make sure wmc can store recordings in this folder.
Apologies if this creates a double-reply somehow. I just tried to reply from my phone a moment ago and I don't see it in the thread, so I'm not sure what happened to it. I am certain that WMC is set up properly. Although this is a new install of ServerWMC and Media Browser, WMC has been running successfully on this system for multiple years. It just finished a recording to that folder a few moments ago. Is there anything else that I can check? I'm doing all of this testing locally from the htpc, so its definitely not a remote authentication issue, but I've verified that "Everyone" has read/write access to the share regardless, and, as I think I mentioned, I've got ServerWMC running as an administrator (if that makes any difference).

Thanks a lot for the quick reply!
Actually, after doing some more digging, I did find a problem. The WMC Recorded TV library was pointing to two different folders - "D:\Recorded TV" and "D:\Recorded_TV", I suppose from some change that I made way back when this system was set up. I removed "D:\Recorded_TV" from the library and changed my share and now I'm all set. Thanks for pointing me in the right direction!