{"id":583,"date":"2011-03-27T14:00:00","date_gmt":"2011-03-27T14:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/cesardelatorre\/2011\/03\/27\/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-error-related-to-mmc-exe-programs-and-weird-cause-simple-solution\/"},"modified":"2011-03-27T14:00:00","modified_gmt":"2011-03-27T14:00:00","slug":"the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-error-related-to-mmc-exe-programs-and-weird-cause-simple-solution","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/the-application-has-failed-to-start-because-its-side-by-side-configuration-is-incorrect-error-related-to-mmc-exe-programs-and-weird-cause-simple-solution\/","title":{"rendered":"\u2018The application has failed to start because its side-by-side configuration is incorrect\u2019 error related to MMC.EXE programs and weird cause &amp; simple solution"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>I publish this error as its cause was really weird:<\/p>\n<p>I was getting an error when trying to start any Management Console related program (mmc.exe based admin tool), like Certificates, Event Viewer, etc.<\/p>\n<p>The error was:<\/p>\n<p><em>&ldquo;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&rdquo;<\/em><\/p>\n<p><em>Something like the following Message-box, but showing the specific path file I was trying to execute (and always based on the MMC.EXE).<\/em><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/2526.image_03A78F03.png\"><img decoding=\"async\" height=\"180\" width=\"615\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/7416.image_thumb_1BBAD391.png\" alt=\"image\" border=\"0\" title=\"image\" style=\"border-right-width: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px\" \/><\/a><\/p>\n<p>But because of I couldn&rsquo;t open the Event Viewer, I couldn&rsquo;t see its related error&hellip;<\/p>\n<p>I searched in the internet for similar errors, and that error is very common when you don&rsquo;t have the right Visual C++ Redistributable Package (x86 or x64), etc.<\/p>\n<p>I installed all 2008 &amp; 2010 versions of the Visual C++ Redistributable Package, but I still was getting the same error&hellip;<\/p>\n<p>Then I tried using the <strong>sxstrace.exe tool<\/strong>. <\/p>\n<p>For running <em>sxstrace.exe<\/em>, go to Visual Studio command prompt and type <em>sxstrace.exe<\/em>. <\/p>\n<p>Usage is as follows: <\/p>\n<ol>\n<li>Before running your application, run <code>sxstrace <\/code>in trace mode: <\/li>\n<\/ol>\n<blockquote>\n<p><strong>&nbsp;<em>sxstrace.exe<\/em> Trace -logfile:<em>C:\\MySxSTrace.log<\/em><\/strong><\/p>\n<\/blockquote>\n<ol>\n<li>Reproduce the error by starting your application <\/li>\n<li>Now stop the trace by using the below command <\/li>\n<\/ol>\n<blockquote>\n<p><strong>&nbsp;<em>sxstrace.exe<\/em> Parse -logfile:<em>C:\\MySxSTrace.log -outfile:C:\\MySxSTrace.txt<\/em><\/strong><\/p>\n<\/blockquote>\n<ol>\n<li>Open output file from <em>C:\\MySxSTrace.txt<\/em> <\/li>\n<\/ol>\n<p>Then I could see the trace file, and at the end there was an error:<\/p>\n<p><strong>INFO: Parsing Application Config File C:\\Windows\\system32\\mmc.exe.Config. <br \/>&nbsp;&nbsp;&nbsp; ERROR: Line 0: XML Syntax error. <br \/>ERROR: Activation Context generation failed. <br \/>End Activation Context Generation.<\/strong><\/p>\n<p>Mmmm, weird, it seems a problem regarding the XML configuration file for the mmc.exe&hellip;, but I didn&rsquo;t touch that config-file, still&hellip;, I opened and saw the following content&hellip;:<\/p>\n<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" style=\"width: 400px\">\n<tbody>\n<tr>\n<td width=\"400\" valign=\"top\">\n<p>configuration&gt; <br \/>&nbsp;&nbsp; &lt;runtime&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;assemblyBinding xmlns=&#8221;urn:schemas-microsoft-com:asm.v1&#8243;&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dependentAssembly&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity name=&#8221;Microsoft.WindowsAzure.StorageClient&#8221; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; publicKeyToken=&#8221;31bf3856ad364e35&#8243; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; culture=&#8221;neutral&#8221; \/&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bindingRedirect oldVersion=&#8221;1.0.0.0&#8243; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newVersion=&#8221;1.1.0.0&#8243;\/&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/dependentAssembly&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dependentAssembly&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;assemblyIdentity name=&#8221;Microsoft.WindowsAzure.StorageClient&#8221; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; publicKeyToken=&#8221;31bf3856ad364e35&#8243; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; culture=&#8221;neutral&#8221; \/&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;publisherPolicy apply=&#8221;no&#8221; \/&gt; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/dependentAssembly&gt; <br \/>&nbsp; <br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/assemblyBinding&gt; <br \/>&nbsp;&nbsp; &lt;\/runtime&gt; <br \/>&lt;\/configuration&gt;<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Hey!, the first &lsquo;&lt;&rsquo; character is missing!!&hellip;, why?<\/p>\n<p>Anyway, I just went ahead and put the right &lsquo;&lt;&rsquo; before &ldquo;configuration&gt;&rdquo;<\/p>\n<p>And there we go!, I can now start the mmc.exe or any other program based on the mmc.exe!! <\/p>\n<p>It is strange&hellip;, why did that config file lose that character?. Maybe because of any program installation, but it was really weird.&nbsp; <img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/1121.wlEmoticon-smile_6631EB9E.png\" alt=\"Smile\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-bottom-style: none;border-left-style: none;border-top-style: none;border-right-style: none\" \/><\/p>\n<p>BTW, this post regarding &lsquo;Diagnosing SideBySide failures&rsquo; seems quite detailed. If my cause\/problem is different than yours, try the following procedure:<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/b\/junfeng\/archive\/2006\/04\/14\/576314.aspx\" title=\"http:\/\/blogs.msdn.com\/b\/junfeng\/archive\/2006\/04\/14\/576314.aspx\">http:\/\/blogs.msdn.com\/b\/junfeng\/archive\/2006\/04\/14\/576314.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; I publish this error as its cause was really weird: I was getting an error when trying to start any Management Console related program (mmc.exe based admin tool), like Certificates, Event Viewer, etc. The error was: &ldquo;The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log [&hellip;]<\/p>\n","protected":false},"author":362,"featured_media":12806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[116,120],"class_list":["post-583","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cesardelatorre","tag-windows-7","tag-windows-server-2008"],"acf":[],"blog_post_summary":"<p>&nbsp; I publish this error as its cause was really weird: I was getting an error when trying to start any Management Console related program (mmc.exe based admin tool), like Certificates, Event Viewer, etc. The error was: &ldquo;The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/583\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media\/12806"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/categories?post=583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/tags?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}