¿Por qué no puedo instalar mi servicio (tiempo de ejecución más nuevo que el tiempo de ejecución cargado)?

Así que construí un servicio en C # y estoy tratando de usar el siguiente comando para instalarlo:

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\installutil.exe MyService.exe >> installLog.txt

Falla. Cuando miro el installLog.txt, obtengo esto:

Microsoft (R) .NET Framework Installation utility Version 2.0.50727.3053
Copyright (c) Microsoft Corporation.  All rights reserved.

Exception occurred while initializing the installation:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\MyService.exe' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded..

El mismo enfoque funciona bien para instalar un ensamblaje diferente. Siento que podría ser porque el que falla fue escrito para .NET 4.0, y el que funciona está en 3.5.

¿Alguien tiene alguna experiencia con este problema?

Respuestas a la pregunta(9)

Su respuesta a la pregunta