Answered by:
WMC TV Archive Transfer Service and WMC TV Archive add-in won't start

Question
-
I can't get the TV archiving functionallity to work/start.
WMC TV Archive Transfer Service won't start with the following error in the program event log:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
The WMC add-in won't start either with the following error message in the Media Center Event log:
Exception Microsoft.MediaCenter.Hosting.Infrastructure.InvalidAddInException: Unable to load invalid add-in Microsoft.HomeServer.Archive.AddIn, Microsoft.HomeServer.Archive,Culture=Neutral,Version=6.1.0.0,PublicKeyToken=31bf3856ad364e35
vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.ExtensibilityPlugInLaunchInfo.LoadAddIn()
vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.Launch(Object& objState)
vid MediaCenter.Extensibility.ExtensibilityEntryPoint.Launch(PageBasedUCPService ucp, Object objMediaContext, Object[] entryPointParameters, String altPageUrl, ExtensibilityAutomation& exautoUsed)InnerException System.ArgumentException: Unable to load assembly: Microsoft.HomeServer.Archive,Culture=Neutral,Version=6.1.0.0,PublicKeyToken=31bf3856ad364e35
Parameternamn: fullNameBackground:
I have recently installed a new WHS 2011 server with all latest windows updates. I have installed the client connector on 2 win7 clients. The error occures on both windows 7 clients. The first client runs Windows 7 home premium, and the second is a complete new install of win 7 pro. Alla clients have latest win updates and service pack 1.
I have tried to uninstall the connector, and install it again with the same result.
Please help! This was one of the key features why I purcased a WHS 2011!
- Edited by Strandman Monday, August 20, 2012 7:50 AM
Monday, August 20, 2012 6:34 AM
Answers
-
OK i believethat Strandman was on the right track. The first thing needed is to correct the TV Archive Service. This can be done fairly easily by createing a config file in the location that the WHS Connecter installs in. That is located at C:\Program Files\Windows Server\Bin. Create a file called Microsoft.HomeServer.Archive.TransferService.exe.config
The contents of this file should be as follows
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>Save the file and then try to start the service. If the service doesn't start check and make sure the file actually ends in .config. You will probably have to change it from a text file.
Now the fun part, the above just correct the TV Archive service. It doesn't correct the Plug in in Media Center. The file that is creating the problems there is in the c:/windows/ehome folder and is called ehexthost.exe.config. The files in ehome are protected from being changed. Well that protection works great in Windows, but what about other operating systems. I had a old copy of Ubuntu sitting around. I remembered that you can boot from that disk and do some basic tasks. So I created a copy of ehexthost.exe.config and made the change below.
Replace
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>With
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>Once the changes were made I saved the file to a new location. I then booted up with the Ubuntu install disk in the Try Me mode. From Ubuntu I copied the new file with the updates over the old one.
In my next reboot I was able to go right into WMC7 and into the TV Archive tools. Everything worked.
It is a bit of a pain to have to use Ubuntu to make the changes but it worked. I hope this helps others.
You were right on target with the solution Strandman
- Proposed as answer by mavrrick Tuesday, August 28, 2012 2:06 AM
- Marked as answer by James Xiong Thursday, September 6, 2012 6:14 AM
Tuesday, August 28, 2012 2:06 AM -
OK i believethat Strandman was on the right track. The first thing needed is to correct the TV Archive Service. This can be done fairly easily by createing a config file in the location that the WHS Connecter installs in. That is located at C:\Program Files\Windows Server\Bin. Create a file called Microsoft.HomeServer.Archive.TransferService.exe.config
The contents of this file should be as follows
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>Save the file and then try to start the service. If the service doesn't start check and make sure the file actually ends in .config. You will probably have to change it from a text file.
Now the fun part, the above just correct the TV Archive service. It doesn't correct the Plug in in Media Center. The file that is creating the problems there is in the c:/windows/ehome folder and is called ehexthost.exe.config. The files in ehome are protected from being changed. Well that protection works great in Windows, but what about other operating systems. I had a old copy of Ubuntu sitting around. I remembered that you can boot from that disk and do some basic tasks. So I created a copy of ehexthost.exe.config and made the change below.
Replace
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>With
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>Once the changes were made I saved the file to a new location. I then booted up with the Ubuntu install disk in the Try Me mode. From Ubuntu I copied the new file with the updates over the old one.
In my next reboot I was able to go right into WMC7 and into the TV Archive tools. Everything worked.
It is a bit of a pain to have to use Ubuntu to make the changes but it worked. I hope this helps others.
You were right on target with the solution Strandman
I carried out this fix, it works great on my WMC7 but it seems to have caused problems with the 'My Movies' AddIn but only on the extenders..
Has anyone else experienced this problem
- Proposed as answer by RomanMan Sunday, September 2, 2012 2:54 AM
- Marked as answer by James Xiong Thursday, September 6, 2012 6:14 AM
Friday, August 31, 2012 6:49 PM
All replies
-
Here is a detaild error message from Program event log when i try to start the tv archive service:
Note that I have Swedish language. Maby you can use google translate to read the information...
Loggnamn: Application Källa: arxfrsvc Datum: 2012-08-20 09:24:24 Händelse-ID: 0 Aktivitetskategori:Ingen Nivå: Fel Nyckelord: Klassiskt Användare: Saknas Dator: Asrock Beskrivning: Det går inte att starta tjänsten. System.IO.FileLoadException: Sammansättningen i blandat läge skapas mot version v2.0.50727 av körningsmiljön och går inte att läsa in i 4.0-körningsmiljön utan ytterligare konfigurationsinformation. vid Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Assembly callingAssembly, Boolean isCollecting) vid Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Boolean isAdminRequested) vid Microsoft.MediaCenter.Store.ObjectStore.AddObjectStoreReference() vid Microsoft.MediaCenter.Store.ObjectStore.get_DefaultSingleton() vid Microsoft.MediaCenter.TV.Scheduling.Internal.EventScheduleHandler..ctor(RecordingChangeEventHandler recordingChangeHandler, RequestedProgramChangeEventHandler requestedProgramChangeHandler) vid Microsoft.MediaCenter.TV.Scheduling.EventSchedule..ctor() vid Microsoft.HomeServer.Archive.TransferService.ScheduleMonitor.Start() vid Microsoft.HomeServer.Archive.TransferS... Händelsens XML-data: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="arxfrsvc" /> <EventID Qualifiers="0">0</EventID> <Level>2</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2012-08-20T07:24:24.000000000Z" /> <EventRecordID>14662</EventRecordID> <Channel>Application</Channel> <Computer>Asrock</Computer> <Security /> </System> <EventData> <Data>Det går inte att starta tjänsten. System.IO.FileLoadException: Sammansättningen i blandat läge skapas mot version v2.0.50727 av körningsmiljön och går inte att läsa in i 4.0-körningsmiljön utan ytterligare konfigurationsinformation. vid Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Assembly callingAssembly, Boolean isCollecting) vid Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Boolean isAdminRequested) vid Microsoft.MediaCenter.Store.ObjectStore.AddObjectStoreReference() vid Microsoft.MediaCenter.Store.ObjectStore.get_DefaultSingleton() vid Microsoft.MediaCenter.TV.Scheduling.Internal.EventScheduleHandler..ctor(RecordingChangeEventHandler recordingChangeHandler, RequestedProgramChangeEventHandler requestedProgramChangeHandler) vid Microsoft.MediaCenter.TV.Scheduling.EventSchedule..ctor() vid Microsoft.HomeServer.Archive.TransferService.ScheduleMonitor.Start() vid Microsoft.HomeServer.Archive.TransferS...</Data> </EventData> </Event>
Here is a detaild error message from Media Center event log when i try to start the add-in:
Loggnamn: Media Center Källa: ehExtHost Datum: 2012-08-20 09:17:51 Händelse-ID: 0 Aktivitetskategori:Ingen Nivå: Information Nyckelord: Klassiskt Användare: Saknas Dator: Asrock Beskrivning: Exception Microsoft.MediaCenter.Hosting.Infrastructure.InvalidAddInException: Unable to load invalid add-in Microsoft.HomeServer.Archive.AddIn, Microsoft.HomeServer.Archive,Culture=Neutral,Version=6.1.0.0,PublicKeyToken=31bf3856ad364e35 vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.ExtensibilityPlugInLaunchInfo.LoadAddIn() vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.Launch(Object& objState) vid MediaCenter.Extensibility.ExtensibilityEntryPoint.Launch(PageBasedUCPService ucp, Object objMediaContext, Object[] entryPointParameters, String altPageUrl, ExtensibilityAutomation& exautoUsed) InnerException System.ArgumentException: Unable to load assembly: Microsoft.HomeServer.Archive,Culture=Neutral,Version=6.1.0.0,PublicKeyToken=31bf3856ad364e35 Parameternamn: fullName Server stack trace: vid MediaCenter.Extensibility.RemoteTypeLoader.CreateInstance(String fullName, Assembly& asm) vid MediaCenter.Extensibility.AddInLoader.CreateInstance(String fullName) vid System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext) vid System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: vid System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) vid System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) vid MediaCenter.Extensibility.AddInLoader.CreateInstance(String fullName) vid System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) vid System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [1]: vid System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) vid System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) vid Microsoft.MediaCenter.Hosting.Infrastructure.IRemoteTypeLoader.CreateInstance(String fullName) vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.ExtensibilityPlugInLaunchInfo.LoadAddIn() InnerException System.IO.FileNotFoundException: Det går inte att läsa in filen eller sammansättningen Microsoft.HomeServer.Archive, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 eller ett av dess beroenden. Det går inte att hitta filen. vid System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) vid System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) vid System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) vid System.Reflection.Assembly.Load(String assemblyString) vid MediaCenter.Extensibility.RemoteTypeLoader.LoadAssembly(String assemblyName, Exception& loadException) InnerException System.IO.FileNotFoundException: Det går inte att läsa in filen eller sammansättningen Microsoft.HomeServer.Archive, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 eller ett av dess beroenden. Det går inte att hitta filen. Händelsens XML-data: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="ehExtHost" /> <EventID Qualifiers="0">0</EventID> <Level>4</Level> <Task>0</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2012-08-20T07:17:51.000000000Z" /> <EventRecordID>6641</EventRecordID> <Channel>Media Center</Channel> <Computer>Asrock</Computer> <Security /> </System> <EventData> <Data>Exception Microsoft.MediaCenter.Hosting.Infrastructure.InvalidAddInException: Unable to load invalid add-in Microsoft.HomeServer.Archive.AddIn, Microsoft.HomeServer.Archive,Culture=Neutral,Version=6.1.0.0,PublicKeyToken=31bf3856ad364e35 vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.ExtensibilityPlugInLaunchInfo.LoadAddIn() vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.Launch(Object& objState) vid MediaCenter.Extensibility.ExtensibilityEntryPoint.Launch(PageBasedUCPService ucp, Object objMediaContext, Object[] entryPointParameters, String altPageUrl, ExtensibilityAutomation& exautoUsed) InnerException System.ArgumentException: Unable to load assembly: Microsoft.HomeServer.Archive,Culture=Neutral,Version=6.1.0.0,PublicKeyToken=31bf3856ad364e35 Parameternamn: fullName Server stack trace: vid MediaCenter.Extensibility.RemoteTypeLoader.CreateInstance(String fullName, Assembly& asm) vid MediaCenter.Extensibility.AddInLoader.CreateInstance(String fullName) vid System.Runtime.Remoting.Messaging.Message.Dispatch(Object target, Boolean fExecuteInContext) vid System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: vid System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) vid System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) vid MediaCenter.Extensibility.AddInLoader.CreateInstance(String fullName) vid System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) vid System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [1]: vid System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) vid System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) vid Microsoft.MediaCenter.Hosting.Infrastructure.IRemoteTypeLoader.CreateInstance(String fullName) vid MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.ExtensibilityPlugInLaunchInfo.LoadAddIn() InnerException System.IO.FileNotFoundException: Det går inte att läsa in filen eller sammansättningen Microsoft.HomeServer.Archive, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 eller ett av dess beroenden. Det går inte att hitta filen. vid System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) vid System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) vid System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) vid System.Reflection.Assembly.Load(String assemblyString) vid MediaCenter.Extensibility.RemoteTypeLoader.LoadAssembly(String assemblyName, Exception& loadException) InnerException System.IO.FileNotFoundException: Det går inte att läsa in filen eller sammansättningen Microsoft.HomeServer.Archive, Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 eller ett av dess beroenden. Det går inte att hitta filen. </Data> </EventData> </Event>
Monday, August 20, 2012 7:27 AM -
I't seems like Microsoft.HomeServer.Archive.TransferService.exe and Microsoft.HomeServer.Archive.dll is compiled against .net framework 4.0 but are referencing v2.0 asssemblies.
I managed to get the Archive service to start adding a Microsoft.HomeServer.Archive.TransferService.exe.config with the following lines:
<startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup>
But I can't get the WMC add-in to work since ehshell.exe.config is configured to only support asp.net v2 assemblies and the ehshell.exe.config has security config that does not allow administrator to change the file!
This must be a bug?! Shouldn't Microsoft.HomeServer.Archive.TransferService.exe and Microsoft.HomeServer.Archive.dll be compiled against .net v2.0? Or should there be a ehshell.exe.config and a Microsoft.HomeServer.Archive.TransferService.exe.config telling to support legacy runtime??
Those of you that has a working tv archive service and add-in, is your version compiled against version 2 or 4??
- Edited by Strandman Tuesday, August 21, 2012 6:11 AM
Monday, August 20, 2012 12:04 PM -
I have uninstalled and reinstalled WHS 2011 connector on two windows 7 machines (Pro and Ultimate) three to four times but with the same issue of the service starting and then crashing. Here is a copy of the event log from (Windows logs -> Application.)
Source: arxfrsvc
Service cannot be started. System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. at Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Assembly callingAssembly, Boolean isCollecting) at Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Boolean isAdminRequested) at Microsoft.MediaCenter.Store.ObjectStore.AddObjectStoreReference() at Microsoft.MediaCenter.Store.ObjectStore.get_DefaultSingleton() at Microsoft.MediaCenter.TV.Scheduling.Internal.EventScheduleHandler..ctor(RecordingChangeEventHandler recordingChangeHandler, RequestedProgramChangeEventHandler requestedProgramChangeHandler) at Microsoft.MediaCenter.TV.Scheduling.EventSchedule..ctor() at Microsoft.HomeServer.Archive.TransferService.ScheduleMonitor.Start() at Microsoft.HomeServer.Archive.TransferService.Service.OnSt...
All of machines, server and clients have all of the updates from MS.
Monday, August 20, 2012 11:35 PM -
I have uninstalled and reinstalled WHS 2011 connector on two windows 7 machines (Pro and Ultimate) three to four times but with the same issue of the service starting and then crashing. Here is a copy of the event log from (Windows logs -> Application.)
Source: arxfrsvc
Service cannot be started. System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. at Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Assembly callingAssembly, Boolean isCollecting) at Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String providerName, String password, Boolean isAdminRequested) at Microsoft.MediaCenter.Store.ObjectStore.AddObjectStoreReference() at Microsoft.MediaCenter.Store.ObjectStore.get_DefaultSingleton() at Microsoft.MediaCenter.TV.Scheduling.Internal.EventScheduleHandler..ctor(RecordingChangeEventHandler recordingChangeHandler, RequestedProgramChangeEventHandler requestedProgramChangeHandler) at Microsoft.MediaCenter.TV.Scheduling.EventSchedule..ctor() at Microsoft.HomeServer.Archive.TransferService.ScheduleMonitor.Start() at Microsoft.HomeServer.Archive.TransferService.Service.OnSt...
All of machines, server and clients have all of the updates from MS.
Apparently there is a bug! I have reported it on connect:
Could you please vote and click reproduce. My guess is that something has gone wrong with the latest connector rollup kb2705129.
- Edited by Strandman Tuesday, August 21, 2012 4:55 AM
Tuesday, August 21, 2012 4:53 AM -
Could you please vote and click reproduce. My guess is that something has gone wrong with the latest connector rollup kb2705129.
Done.
Tuesday, August 21, 2012 6:12 PM -
That link is bad. Can't report that I have the same issue.
I have a newly setup PC and the TV Archive MCE app comes up with Invalid Application Unable to launch "TV Archive". The process in services.msc does not seem to ever be running either, so I believe this thread is talking about the same issue I'm seeing. A couple posts ago there was a comment that someone came up with a manual fix. Can this be better documented to say step by step what was done? Even if it is manual I would like to perform the steps on my own PC to get this working instead of waiting for Microsoft to release a formal fix.
Wednesday, August 22, 2012 9:02 PM -
Exactly same problem here, but only started after reinstalling (new) connector.
Service cannot be started. System.IO.FileLoadException: Mixed
mode assembly is built against version 'v2.0.50727' of the runtime and cannot be
loaded in the 4.0 runtime without additional configuration information. at
Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String
providerName, String password, Assembly callingAssembly, Boolean isCollecting)
at Microsoft.MediaCenter.Store.ObjectStore.Open(String fileName, String
providerName, String password, Boolean isAdminRequested) at
Microsoft.MediaCenter.Store.ObjectStore.AddObjectStoreReference() at
Microsoft.MediaCenter.Store.ObjectStore.get_DefaultSingleton() at
Microsoft.MediaCenter.TV.Scheduling.Internal.EventScheduleHandler..ctor(RecordingChangeEventHandler
recordingChangeHandler, RequestedProgramChangeEventHandler
requestedProgramChangeHandler) at
Microsoft.MediaCenter.TV.Scheduling.EventSchedule..ctor() at
Microsoft.HomeServer.Archive.TransferService.ScheduleMonitor.Start() at
Microsoft.HomeServer.Archive.TransferService.Service.OnSt...Friday, August 24, 2012 8:55 PM -
Yep. Exactly the same issue here.
I thought it was caused by an haveing a old install and upgrading my Priamary drive to a SSD. But after clean reload I still get the invalid Application in WMC7 and couldn't get the "TV Archive" service to start.
The suggestion Strandman had about the config file for the TV archive service did work, but the config files for the WMC7 are protected and I haven't found a way to change them yet. Any thoughts would be good
Tuesday, August 28, 2012 1:23 AM -
OK i believethat Strandman was on the right track. The first thing needed is to correct the TV Archive Service. This can be done fairly easily by createing a config file in the location that the WHS Connecter installs in. That is located at C:\Program Files\Windows Server\Bin. Create a file called Microsoft.HomeServer.Archive.TransferService.exe.config
The contents of this file should be as follows
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>Save the file and then try to start the service. If the service doesn't start check and make sure the file actually ends in .config. You will probably have to change it from a text file.
Now the fun part, the above just correct the TV Archive service. It doesn't correct the Plug in in Media Center. The file that is creating the problems there is in the c:/windows/ehome folder and is called ehexthost.exe.config. The files in ehome are protected from being changed. Well that protection works great in Windows, but what about other operating systems. I had a old copy of Ubuntu sitting around. I remembered that you can boot from that disk and do some basic tasks. So I created a copy of ehexthost.exe.config and made the change below.
Replace
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>With
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>Once the changes were made I saved the file to a new location. I then booted up with the Ubuntu install disk in the Try Me mode. From Ubuntu I copied the new file with the updates over the old one.
In my next reboot I was able to go right into WMC7 and into the TV Archive tools. Everything worked.
It is a bit of a pain to have to use Ubuntu to make the changes but it worked. I hope this helps others.
You were right on target with the solution Strandman
- Proposed as answer by mavrrick Tuesday, August 28, 2012 2:06 AM
- Marked as answer by James Xiong Thursday, September 6, 2012 6:14 AM
Tuesday, August 28, 2012 2:06 AM -
A Windows way to do the same would be to go to the file select properties->Advanced->Change the owner of the file for ehexthost.exe.config to Administrator and provide write permissions (I gave full control). Once that is done, you will be able to modify the file to add the replacement information:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>I have verified this will fix the issue with the plug-in working in WMC.
- Edited by Nishihara II Tuesday, August 28, 2012 3:43 PM
Tuesday, August 28, 2012 3:23 PM -
mavrrick and Nishihara II - you guys rock! Thank you very much for taking the time to figure this out and to post it. My initial testing of these suggestions seem to have fixed the service and the WMC add-in. I appreciate it very much.Tuesday, August 28, 2012 11:18 PM
-
A Windows way to do the same would be to go to the file select properties->Advanced->Change the owner of the file for ehexthost.exe.config to Administrator and provide write permissions (I gave full control). Once that is done, you will be able to modify the file to add the replacement information:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>I have verified this will fix the issue with the plug-in working in WMC.
Great that the config settings solved the problem! Newer thought about taking ownership on the config file, great tip!
However I belief that's a reason why the default config for ehexthost.exe is in v2.0. Maybe this change could impact other add-ins? But while waiting untill MS comes with an fix for this I think this is a great workaround!
Wednesday, August 29, 2012 6:11 AM -
Given that you guys seem to know a few things about WMC and TV recording/archiving, I thought I'd ask you about an outstanding issue I have with some media center PCs. The transfer service is working now thanks to your fix and therefore my recorded TV shows are being transferred to the corresponding share on the Windows Home Server 2011 box. But back on the WMC7 box, recorded TV icon thumbnails are not showing up - just blue rectangles. I've been looking all over the net for fixes and trying various things. The most promising suggestion was to delete a tvthumbs.db database file and allow the system to re-create it, but that did not work. Perhaps you guys have some expertise on this? Thumbnails for most of the WTV files that Media Center creates do show up when you browse them in a Windows Explorer window, but when viewing them in the Media Center Recorded TV list I get just the blue boxes. Would really like to get this fix and would appreciate your insights.
- Proposed as answer by Appelblom Tuesday, January 8, 2013 12:15 PM
Wednesday, August 29, 2012 7:44 PM -
Given that you guys seem to know a few things about WMC and TV recording/archiving, I thought I'd ask you about an outstanding issue I have with some media center PCs. The transfer service is working now thanks to your fix and therefore my recorded TV shows are being transferred to the corresponding share on the Windows Home Server 2011 box. But back on the WMC7 box, recorded TV icon thumbnails are not showing up - just blue rectangles. I've been looking all over the net for fixes and trying various things. The most promising suggestion was to delete a tvthumbs.db database file and allow the system to re-create it, but that did not work. Perhaps you guys have some expertise on this? Thumbnails for most of the WTV files that Media Center creates do show up when you browse them in a Windows Explorer window, but when viewing them in the Media Center Recorded TV list I get just the blue boxes. Would really like to get this fix and would appreciate your insights.
I haven't had that happen permenantly as usually if it does go blue, they will appear once the system has had a chance to index the files. One thing you can try is to create another user on the box and start up Windows Media Center for that user and see if it's user specific.Wednesday, August 29, 2012 9:52 PM -
Good idea, but my findings are that the second user on the same PC has the same thing... no thumbnails for Recorded TV, even after waiting for a bit. I have other PCs in the house that draw from the same WHS recordings and they can display the thumbnails properly - they populate after a few seconds of the Recorded TV screen being open, but two of my PCs do not populate the thumbnails at all, and it doesn't appear to be specific to a single user on each of those two PCs.Thursday, August 30, 2012 1:35 AM
-
OK i believethat Strandman was on the right track. The first thing needed is to correct the TV Archive Service. This can be done fairly easily by createing a config file in the location that the WHS Connecter installs in. That is located at C:\Program Files\Windows Server\Bin. Create a file called Microsoft.HomeServer.Archive.TransferService.exe.config
The contents of this file should be as follows
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>Save the file and then try to start the service. If the service doesn't start check and make sure the file actually ends in .config. You will probably have to change it from a text file.
Now the fun part, the above just correct the TV Archive service. It doesn't correct the Plug in in Media Center. The file that is creating the problems there is in the c:/windows/ehome folder and is called ehexthost.exe.config. The files in ehome are protected from being changed. Well that protection works great in Windows, but what about other operating systems. I had a old copy of Ubuntu sitting around. I remembered that you can boot from that disk and do some basic tasks. So I created a copy of ehexthost.exe.config and made the change below.
Replace
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>With
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>Once the changes were made I saved the file to a new location. I then booted up with the Ubuntu install disk in the Try Me mode. From Ubuntu I copied the new file with the updates over the old one.
In my next reboot I was able to go right into WMC7 and into the TV Archive tools. Everything worked.
It is a bit of a pain to have to use Ubuntu to make the changes but it worked. I hope this helps others.
You were right on target with the solution Strandman
I carried out this fix, it works great on my WMC7 but it seems to have caused problems with the 'My Movies' AddIn but only on the extenders..
Has anyone else experienced this problem
- Proposed as answer by RomanMan Sunday, September 2, 2012 2:54 AM
- Marked as answer by James Xiong Thursday, September 6, 2012 6:14 AM
Friday, August 31, 2012 6:49 PM -
OK i believethat Strandman was on the right track. The first thing needed is to correct the TV Archive Service. This can be done fairly easily by createing a config file in the location that the WHS Connecter installs in. That is located at C:\Program Files\Windows Server\Bin. Create a file called Microsoft.HomeServer.Archive.TransferService.exe.config
The contents of this file should be as follows
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>Save the file and then try to start the service. If the service doesn't start check and make sure the file actually ends in .config. You will probably have to change it from a text file.
Now the fun part, the above just correct the TV Archive service. It doesn't correct the Plug in in Media Center. The file that is creating the problems there is in the c:/windows/ehome folder and is called ehexthost.exe.config. The files in ehome are protected from being changed. Well that protection works great in Windows, but what about other operating systems. I had a old copy of Ubuntu sitting around. I remembered that you can boot from that disk and do some basic tasks. So I created a copy of ehexthost.exe.config and made the change below.
Replace
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>With
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>Once the changes were made I saved the file to a new location. I then booted up with the Ubuntu install disk in the Try Me mode. From Ubuntu I copied the new file with the updates over the old one.
In my next reboot I was able to go right into WMC7 and into the TV Archive tools. Everything worked.
It is a bit of a pain to have to use Ubuntu to make the changes but it worked. I hope this helps others.
You were right on target with the solution Strandman
I carried out this fix, it works great on my WMC7 but it seems to have caused problems with the 'My Movies' AddIn but only on the extenders..
Has anyone else experienced this problem
Was it working before and then when you applied this fix it stopped working?
Sunday, September 2, 2012 5:36 PM -
Seems that the first casualty is Mikinho's Mount Image - I've mailed him to see if he can re-release / compile for .Net V4 runtime.Wednesday, September 5, 2012 10:36 PM
-
I'll push an update tomorrow. It also uses the native ISO support in W8 for those of you who don't want to install VCD or any other mounting application.Thursday, September 6, 2012 3:41 AM
-
It was suggested I post to this thread...
windows media center archive transfer service not working
Running Windows Home Server Connector (on Windows 8 RP) to archive and stream recorded TV from server (Windows Home Server PP3), but the transfer service is not running. I tried to manually start the service through "services" , but receive the same notice every time; "The Windows Media Center Archive Transfer Service service on a Local Computer started and then stopped. Some service" stop automatically if they are not in use by other services or programs." I had this service running with no problem every day on a Windows 7 OS. My computer is setup with dual boot of Win 7 & Win 8 and verified today that the WHS connector and the "transfer service" were running AND functioning on Win 7; recorded program and it successfully archived the program to the WHS. Switched back to Win 8 and the service does not run automatically and will not allow me to manually activate.
By the way, both OS's are setup with daily recording schedules and successfully record all programmed channels.Any solutions or working suggestions are appreciated.
Friday, September 7, 2012 1:59 PM -
OK i believethat Strandman was on the right track. The first thing needed is to correct the TV Archive Service. This can be done fairly easily by createing a config file in the location that the WHS Connecter installs in. That is located at C:\Program Files\Windows Server\Bin. Create a file called Microsoft.HomeServer.Archive.TransferService.exe.config
The contents of this file should be as follows
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>Save the file and then try to start the service. If the service doesn't start check and make sure the file actually ends in .config. You will probably have to change it from a text file.
Now the fun part, the above just correct the TV Archive service. It doesn't correct the Plug in in Media Center. The file that is creating the problems there is in the c:/windows/ehome folder and is called ehexthost.exe.config. The files in ehome are protected from being changed. Well that protection works great in Windows, but what about other operating systems. I had a old copy of Ubuntu sitting around. I remembered that you can boot from that disk and do some basic tasks. So I created a copy of ehexthost.exe.config and made the change below.
Replace
<startup>
<supportedRuntime version="v2.0.50727" />
</startup>With
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>Once the changes were made I saved the file to a new location. I then booted up with the Ubuntu install disk in the Try Me mode. From Ubuntu I copied the new file with the updates over the old one.
In my next reboot I was able to go right into WMC7 and into the TV Archive tools. Everything worked.
It is a bit of a pain to have to use Ubuntu to make the changes but it worked. I hope this helps others.
You were right on target with the solution Strandman
Brilliant ! you sir are a genius !!
File permission changes , this link may help others http://helpdeskgeek.com/windows-7/windows-7-how-to-delete-files-protected-by-trustedinstaller/
Sunday, September 9, 2012 4:13 PM -
Oh man, my head hurts from the time I spent on this! Thank you so much! This totally solved my problem!
In case people don't have Ubuntu laying around, I was able to accomplish this by using the USB stick that I used to install Win7. Essentially, I made a copy of the ehexthost.exe.config file and modified it. I then copied that file onto the USB stick that I used to install the OS on that machine (it had no optical drive) which was bootable. I rebooted and got to the 'Install Now' screen. Pressed Shift+F10 to get to a command prompt. It was on the drive where it had put the temporary setup files (X:). I found my USB drive on E: and my my OS drive was on D:
I went to the E drive and typed 'copy ehexthost.exe.config D:\windows\ehome' and pressed enter. It told me the file already exists and if I was sure I wanted to copy it. Pressed 'Y' to confirm and it copied the file. Rebooted and removed the USB key to boot to my OS drive. Fired up WMC, then went to TV Archive and I was able to set it up from there.
So thanks so much Mavrrick! Whew! that is a load off.
Friday, September 14, 2012 12:35 AM -
Nishihara II
Yes everything worked fine on the extenders before the fix was applied, after the fix both My Movie's and Recorded TV HD failed just on the extenders..
when I removed the fix everything works, but back to tv archive problem again.
Monday, September 17, 2012 7:48 PM -
The fix works for me as well, however I lost all Folder.jpg's, Backdrop.jpg's and Metadata in Media Browser after applying the fix above... Is MS still looking into fixing this ... I Hope..
newfiend~
Tuesday, September 18, 2012 12:42 AM -
Thank you everyone for reporting this issue. We found one potential installation issue that might cause this error in some situation, here is a KB with details:
http://support.microsoft.com/kb/2758353
This post is "AS IS" and confers no rights. Ning Kuang[MSFT] Windows Server Program Manager
- Proposed as answer by zinchilla Wednesday, October 17, 2012 5:07 AM
Saturday, September 29, 2012 1:26 AM -
Ning's KB article did the trick to fix my TV Archive service.
Wednesday, October 17, 2012 5:11 AM -
I updated my .net in Windows 8 before trying my WHS archive transfer service, so I don't know IF it was "broken" as is before but it does not work UNTIL...
I noticed MS updated the config file in ehome referenced above, so I made a config file for the Windows Home Server folder under Program Files for the transfer service program to run too... C:\Program Files\Windows Home Server... Save as:
Microsoft.HomeServer.Archive.TransferService.exe.config
File contains:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<supportedRuntime version="v2.0.50727"/>
</startup>
</configuration>==================Then...
I went into services and started this service & opened MCE & the WHS Archive to test & it works now!!!
Restarted computer, loaded MCE, and it's now working...
Amazing that I solved this not really knowing what I'm doing!!! ;-)
Wednesday, February 6, 2013 1:51 AM