{"id":7730,"date":"2021-07-11T22:02:50","date_gmt":"2021-07-11T20:02:50","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=7730"},"modified":"2021-07-12T10:12:52","modified_gmt":"2021-07-12T08:12:52","slug":"windows-resolve-dependencies-when-an-application-not-starts","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-resolve-dependencies-when-an-application-not-starts\/","title":{"rendered":"Windows: Resolve dependencies when an Application not starts"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_7730 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_7730')){$('.twoclick_social_bookmarks_post_7730').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20Resolve%20dependencies%20when%20an%20Application%20not%20starts\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Asomething%20you%20get%20or%20load%20a%20tool%20and%20it%20won%27t%20start%20due%20to%20a%20missing%20Runtime%20or%20dll.%0D%0A%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-resolve-dependencies-when-an-application-not-starts\\\/\",\"post_id\":7730,\"post_title_referrer_track\":\"Windows%3A+Resolve+dependencies+when+an+Application+not+starts\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>something you get or load a tool and it won&#8217;t start due to a missing Runtime or dll.<\/p>\n<p><!--more--><\/p>\n<p>Such issues can solved with sxstrace tool. An example:<\/p>\n<p>I want to run the makeappx tool from the Windows SDK on another host. The application won&#8217;t start:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; makeappx.exe\r\nThe 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.\r\n &quot;D:\\temp\\makeappx.exe&quot;\r\n<\/pre>\n<p>Start logging and open another shell and execute the command again<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; sxstrace.exe Trace -logfile:D:\\temp\\sxs.etl\r\nTracing started. Trace will be saved to file D:\\temp\\sxs.etl.\r\nPress Enter to stop tracing...\r\n<\/pre>\n<p>Press enter in the sxstrace windows to stop logging, convert the etl file into a text file and open it with your favourite texteditor.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nD:\\&gt; sxstrace.exe Parse -logfile:D:\\temp\\sxs.etl -outfile:D:\\temp\\SxsTrace.txt\r\nD:\\&gt; notepad D:\\temp\\SxsTrace.txt\r\n<\/pre>\n<p>In the file you should found some hints what is missing:<br \/>\n<code><br \/>\n...<br \/>\n\tINFO: End assembly probing.<br \/>\n\tERROR: Cannot resolve reference Microsoft.Windows.Build.Appx.AppxPackaging.dll,version=\"0.0.0.0\".<br \/>\nERROR: Activation Context generation failed<br \/>\n...<br \/>\n<\/code><\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, something you get or load a tool and it won&#8217;t start due to a missing Runtime or dll.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1597,1596,1595,542,20],"class_list":["post-7730","post","type-post","status-publish","format-standard","hentry","category-windowsknowhow","tag-appx-dependencies","tag-c-runtime","tag-dependencies","tag-resolve","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=7730"}],"version-history":[{"count":1,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7730\/revisions"}],"predecessor-version":[{"id":7731,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/7730\/revisions\/7731"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=7730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=7730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=7730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}