Skip to content

Instantly share code, notes, and snippets.

@wadewegner
Created August 27, 2012 21:31
Show Gist options
  • Select an option

  • Save wadewegner/3492432 to your computer and use it in GitHub Desktop.

Select an option

Save wadewegner/3492432 to your computer and use it in GitHub Desktop.
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...
@wadewegner
Copy link
Copy Markdown
Author

I've created a file called Microsoft.HomeServer.Archive.TransferService.exe.config and set the startup/supportedRuntime as follows:

The service starts now.

@wadewegner
Copy link
Copy Markdown
Author

Oops:

<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

@wadewegner
Copy link
Copy Markdown
Author

Even though the service has started I still get the following error when trying to launch TV Archive from within Windows Media Center:

INVALID APPLICATION

Unable to launch "TV Archive"

@wadewegner
Copy link
Copy Markdown
Author

Checking the Application log, I see Warnings such as the following that seem to correspond to the failed attempt to open the TV Archive:

Detection of product '{C1E4D639-4A33-4314-809E-89BD0EF48522}', feature 'GlobalAssemblies', component '{CD4F1292-DC83-48F6-9A46-86C55ADA145A}' failed.  The resource '' does not exist.

... and ...

Detection of product '{C1E4D639-4A33-4314-809E-89BD0EF48522}', feature 'GlobalAssemblies' failed during request for component '{5740DD93-017A-484E-9679-B70C08BFDCF1}'

@wadewegner
Copy link
Copy Markdown
Author

All issues solved by this post. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment