PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Martin Francom on November 27, 2009, 08:58:19 PM

Title: Strange Error Message
Post by: Martin Francom on November 27, 2009, 08:58:19 PM
Paul,   Here's a strange error message.  I made a small change to program and compiled under FF-3 and now the program will not run.  The error message says somthing about "side by side configuration is not correct"   what ever that means. 
Any ideas?
Title: Re: Strange Error Message
Post by: Martin Francom on November 27, 2009, 09:24:00 PM
Paul,
   I got an achived version of the same program (without the changes) which was compiled under an earily version of FF  3.01 (I think).    This one with the strange message was compiled using FF3.04
   Two differences  FF3.01 verses FF 3.04  and Vista verses Win-7  I think the problem is coming from FF3.04.

I tried the new FF3.exe suggested to Mark in this thread:
  http://www.planetsquires.com/protect/forum/index.php?topic=2135.0
but got the same problem.
Title: Re: Strange Error Message
Post by: Paul Squires on November 27, 2009, 10:46:38 PM
A "side by side" error is generated by the resource file including a manifest that is incorrect. Can you send me a copy of your CODEGEN_PROJECT.exe.manifest file?
Title: Re: Strange Error Message
Post by: Martin Francom on November 27, 2009, 11:59:07 PM
Paul,   Sure.   But I found a solution.   I noticed that "Theme Support" was checked.  I don't normally check that option.  So, I uncheck that box and recompiled.  The program then work as expected.  Must be something in the Theme Support that is conflicting.   
  Do you still need me to email you a copy? 
If it would be helpful, I would be happy to do so.

Mark, provide me with this reference:
   http://www.codeproject.com/KB/winsdk/sidebysideerror.aspx

Also, I recently upgraded to  Windows-7 from Vista.   Could the version conflict be coming from them?
Title: Re: Strange Error Message
Post by: Paul Squires on November 28, 2009, 09:29:51 AM
The generation of the manifest file was changed because I was always creating it using "PlanetSquires" and "FireFly Visual Designer" rather than using the data as supplied by the user in the project properties (ie. company and product names). Jean-Pierre noticed that if he used French accent characters in any of the project properties that it would create a "side by side" error. Essentially, it was creating an invalid manifest file.

I still would like for you to turn on Themes and generate the manifest and send it to me. I need to track down if there are other reasons (types of data) that will cause the manifest to be incorrect.
Title: Re: Strange Error Message
Post by: Martin Francom on November 28, 2009, 01:21:59 PM
Paul,
   I have emailed it to you.  Hope it helps.
Title: Re: Strange Error Message
Post by: Paul Squires on November 28, 2009, 04:10:17 PM
Hi Marty,

It appears that the ampersand "&" that you're using in the File Description in Project Properties is causing the problem.

I wonder what other characters could cause a problem like this.

Title: Re: Strange Error Message
Post by: Michael Stefanik on November 28, 2009, 07:50:26 PM
If the developer uses any special characters like "&", "<", ">", etc. and you just write them out as-is, it'll cause problems because it'll result in malformed XML. Ampersands mark the beginning of an entity (e.g.: "&#nnnn;" which represents a character). For example, if the description of the application was entered as "Image & Video Manager", then it should be written to the XML manifest as "Image & #38; Video Manager" (edit: no spaces between the "&" and the "#", I just had to do that because of this forum software).

For more information, http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references (http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references)

Title: Re: Strange Error Message
Post by: Martin Francom on November 28, 2009, 08:14:18 PM
Quote from: TechSupport on November 28, 2009, 04:10:17 PM
Hi Marty,

It appears that the ampersand "&" that you're using in the File Description in Project Properties is causing the problem.

I wonder what other characters could cause a problem like this.

Yes, making that change fixed the problem. Thanks.  I will have to remember to avoid special characters.  Is it just  & < >  or would these also cause a problem:
    ~ ` ! @ # $ % ^ * ( ) | \ / ? - + = [ ] { } ' " ; :
Probably just best to avoid all of those characters.
   
Title: Re: Strange Error Message
Post by: Michael Stefanik on November 28, 2009, 11:09:17 PM
It's generally considered a good idea to use a character entity code for the single- and double- quote characters as well, but aside from that there shouldn't be a problem with the other punctuation marks you listed.
Title: Re: Strange Error Message
Post by: Martin Francom on November 29, 2009, 01:15:20 AM
Thanks, Mike,  for the info.  Noted.