NO

Author Topic: Adding Manifest results in SxS error?  (Read 3799 times)

rdtsc

  • Guest
Adding Manifest results in SxS error?
« on: October 18, 2014, 04:41:01 PM »
Win7 x64, Visual Studio 2013 uninstalled, tried Eclipse / MinGW32 - total pain in the rear...

Hello, I installed Pelle's C v8 RC6 the other day, and made a new Win32 project. Works well, debug fine, etc. But noticed that the "OK" button on the About dialog was in the flat style; so I added a Manifest to the resource section. Build (CTRL+B) worked fine, but when I hit Run (CTRL+F5), an error dialog appears with this message:
Code: [Select]
Unable to execute 'Test.exe'.
The application has failed to start because its side-by-side configuration is incorrect.
Please see the application event log or use the command-line sxstrace.exe tool for more detail.

So I performed the sxstrace, and this is what it says:
Code: [Select]
=================
Begin Activation Context Generation.
Input Parameter:
Flags = 0
ProcessorArchitecture = Wow32
CultureFallBacks = en-US;en
ManifestPath = C:\Users\Me\PellesCproj\Test123\Test.exe
AssemblyDirectory = C:\Users\Me\PellesCproj\Test123\
Application Config File =
-----------------
INFO: Parsing Manifest File C:\Users\Me\PellesCproj\Test123\Test.exe.
INFO: Manifest Definition Identity is (null).
ERROR: Line 2: XML Syntax error.
ERROR: Activation Context generation failed.
End Activation Context Generation.

Anyone have an idea why this seems to be erroring out on line 2 of the manifest XML? The first few lines of it are:
Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

<assemblyIdentity
    type="win32"
    name="MyOrganization.MyDivision.MyApp"
    version="1.0.0.0"
    <!-- processorArchitecture="amd64" -->
    processorArchitecture="X86"
/>
...

Thanks for your help! :)
« Last Edit: October 18, 2014, 04:50:56 PM by rdtsc »

laurro

  • Guest
Re: Adding Manifest results in SxS error?
« Reply #1 on: October 18, 2014, 04:55:26 PM »
Delete the comment <!-- processorArchitecture="amd64" -->.

Laur
« Last Edit: October 18, 2014, 05:01:04 PM by laurro »

rdtsc

  • Guest
Re: Adding Manifest results in SxS error?
« Reply #2 on: October 18, 2014, 05:49:40 PM »
Thanks Laur! I almost tried that, and guess I should have first. Still interesting that an auto-generated bit of code would be to blame though.