Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a console project and deployed in a server. On trying to run getting are error.
"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."

On using tool in the log error is stored as
Parsing Application Config File D:\Applications\XXXXXX\XXXXXXX.exe.Config.
ERROR: Line 30: XML Syntax error.

Event viewer also:
Activation context generation failed for "D:\Applications\XXXXXX\XXXXXXX.exe".Error in manifest or policy file "D:\Applications\XXXXXXX\XXXXXXXX.exe.Config" on line 30. Invalid Xml syntax.


Code at line 30 is
<add key="LOCALITY" value="Marcinelle">

Can you help me with the error.

What I have tried:

tried to remove and create new config file.
checked xml with validator no issue in full xml
Posted
Updated 13-Jan-20 4:12am

1 solution

As for the XML error, it looks like the element on line 30 is not terminated properly. You may want to try throwing a slash onto the end of that element declaration
XML
<add key="LOCALITY" value="Marcinelle" />
In regards to the side-by-side error; Google has a few results for that message, and reading through some of them suggests that the problem may actually be in the C++ installation or registration.
References:
Solved: The Application Has Failed to Start Because Its Side-By-Side Configuration Is Incorrect Error - MajorGeeks[^]

Application has failed to start because its side-by-side configuration is incorrect[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900