Help in publishing / deploying Game2

Hi there, folks!

You see, I have just installed Visual Studio 2017 (spanish version) three days ago, and I downloaded Monogame 3.6 with the proper templates. Whenever I create a sample project like “Game2” and then I try to publish it on a “publish” folder, it creates a setup.exe file, a manifest, and an “Application Files” folder. So far, so good; however, when I try to run the setup file, an error message appears that says: “Cannot continue. The application is improperly formatted.”

After clicking on details, a .txt file pops up with the following text:


INFORMACIÓN DE VERSIÓN DE LA PLATAFORMA
	Windows 			: 10.0.14393.0 (Win32NT)
	Common Language Runtime 	: 4.0.30319.42000
	System.Deployment.dll 		: 4.6.1586.0 built by: NETFXREL2
	clr.dll 			: 4.6.1586.0 built by: NETFXREL2
	dfdll.dll 			: 4.6.1586.0 built by: NETFXREL2
	dfshim.dll 			: 10.0.14393.0 (rs1_release.160715-1616)

ORÍGENES
Dirección URL de la implementación : file:///C:/Users/ferna/Desktop/publish/test2/Game2.application

IDENTIDADES
Identidad de la implementación : Game2.application, Version=1.0.0.1, Culture=neutral, PublicKeyToken=0d5157a7789b8d37, processorArchitecture=x86

RESUMEN DE LA APLICACIÓN
* Aplicación instalable.

RESUMEN DEL ERROR
Abajo se muestra un resumen de los errores; los detalles de estos errores se incluyen en el registro.
* La activación de C:\Users\ferna\Desktop\publish\test2\Game2.application dio como resultado una excepción. Se detectaron los siguientes mensajes de error:
+ Excepción de lectura del manifiesto desde file:///C:/Users/ferna/Desktop/publish/test2/Application%20Files/Game2_1_0_0_1/Game2.exe.manifest: puede que el manifiesto no sea válido o el archivo no se abra.
+ El análisis y la creación de DOM del manifiesto ha dado como resultado un error. Se han detectado los siguientes errores de análisis:
-HRESULT: 0x8007001f
Línea de inicio: 0
Columna de inicio: 0
Archivo host:
+ Uno de los dispositivos conectados al sistema no funciona. (Excepción de HRESULT: 0x8007001F)

RESUMEN DE ERRORES DE TRANSACCIÓN DEL ALMACÉN DE COMPONENTES
No se detectó ningún error de transacción.

ADVERTENCIAS
No se generó ninguna advertencia durante esta operación.

ESTADO DE PROGRESO DE LA OPERACIÓN
* [15/03/2017 12:28:01 a. m.] : Se ha iniciado la activación de C:\Users\ferna\Desktop\publish\test2\Game2.application.
* [15/03/2017 12:28:03 a. m.] : El procesamiento del manifiesto de la implementación finalizó correctamente.
* [15/03/2017 12:28:03 a. m.] : Se ha iniciado la instalación de la aplicación.

DETALLES DEL ERROR
Se detectaron los siguientes errores durante esta operación.
* [15/03/2017 12:28:03 a. m.] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Excepción de lectura del manifiesto desde file:///C:/Users/ferna/Desktop/publish/test2/Application%20Files/Game2_1_0_0_1/Game2.exe.manifest: puede que el manifiesto no sea válido o el archivo no se abra.
- Origen: System.Deployment
- Seguimiento de la pila:
en System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
en System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
en System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
en System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
en System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
en System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
— Excepción interna —
System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- El análisis y la creación de DOM del manifiesto ha dado como resultado un error. Se han detectado los siguientes errores de análisis:
-HRESULT: 0x8007001f
Línea de inicio: 0
Columna de inicio: 0
Archivo host:
- Origen: System.Deployment
- Seguimiento de la pila:
en System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)
en System.Deployment.Application.Manifest.AssemblyManifest…ctor(FileStream fileStream)
en System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
— Excepción interna —
System.Runtime.InteropServices.COMException
- Uno de los dispositivos conectados al sistema no funciona. (Excepción de HRESULT: 0x8007001F)
- Origen: System.Deployment
- Seguimiento de la pila:
en System.Deployment.Internal.Isolation.IsolationInterop.CreateCMSFromXml(Byte[] buffer, UInt32 bufferSize, IManifestParseErrorCallback Callback, Guid& riid)
en System.Deployment.Application.Manifest.AssemblyManifest.LoadCMSFromStream(Stream stream)

DETALLES DE TRANSACCIÓN DEL ALMACÉN DE COMPONENTES
No hay información disponible sobre la transacción.


If any of you can read spanish and offer some help, I would be very grateful.

As far as I am aware MonoGame does not fully support VS17 yet, try installing VS15CE and see if it still gives any issues…

https://www.microsoft.com/en-us/download/details.aspx?id=48146

An update 3.6.1 will be correcting this issue soon

Also are you trying to create a desktop app or UWP?

1 Like

MonoGame “supporting” VS 2017 just means the templates get installed. That’s all there is to it.

Regarding your issue. Could you share the .manifest file that the error complains about?

Out of the box :slight_smile:

Thanks for the reply.
I’m trying to create a Cross Platform Desktop Project :grin:

Of course, and thanks for the help:


<?xml version="1.0" encoding="utf-8"?>

  
  
  
  
    
  
  
    
      
      
        
          
        
        
        LR5BpwSWdq9KnY930ilmTfeqPpeUOUUV1KdqZGwyVmM=
      
    
  
mCYpuSOZ0IopQMjWlvoX5MLc+cB/5EkU7jHb4CA9u2E=hDPiphp0mtbEOkZLtbr57dqBpCYwCgF/LrZC/Dx1Q9Ctdftkg2TDWTmdB+4dFQWok5UKpGmkwmCQ7Ig+7Igzub9orwpcj3IryvKW3UMgQagIyhriqOSBADGT7MlsF+ozRNjjTNiTQFTSSAxsDIzGtmPmVrn4Z2X0SXGSRQTc6Kk=srdAZ/Z0tbwpyKfjLRkP/++liuFxau/qEGvQ7DMLhkvhhCZ2cguEun0z/yiTIciQrhbbWUGcb16MpGSytPp+wmEAE1ixYoBEwRBX2Gju1RjKTHv5XzLoQk+BOv3KcPRMyJSdNOBik3ctLKGRh8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