<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Windows Installer MSI &amp; Clickonce Deployment support</title><subtitle type="html" /><id>http://blogs.msdn.com/gauravb/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/gauravb/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2008-09-24T22:59:00Z</updated><entry><title>Web setup Package: fails while executing WEBCA_EvaluateURLsNoFail custom action</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2009/03/04/web-setup-package-fails-while-executing-webca-evaluateurlsnofail-custom-action.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2009/03/04/web-setup-package-fails-while-executing-webca-evaluateurlsnofail-custom-action.aspx</id><published>2009-03-04T21:24:00Z</published><updated>2009-03-04T21:24:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;MSI (c) (88:E4) [10:56:51:444]: Note: 1: 2769 2: WEBCA_EvaluateURLsNoFail 3: 1 &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;MSI (c) (88:E4) [10:56:51:444]: Note: 1: 2262 2: Error 3: -2147287038 &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;DEBUG: Error 2769: Custom Action WEBCA_EvaluateURLsNoFail did not close 1 MSIHANDLEs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2769. The arguments are: WEBCA_EvaluateURLsNoFail, 1, &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Action ended 10:56:51: WEBCA_EvaluateURLsNoFail. Return value 3.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=+0&gt;&lt;FONT face=Calibri&gt;&lt;o:p&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;Workaround:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;===========&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;1) Install the &lt;A class="" title="IIS 6 Resource Kit" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;displaylang=en" target=_blank mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;displaylang=en "&gt;IIS 6.0 Resource Kit&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;2) Run the "Metabase explorer" (after installing the above, it will be&amp;nbsp;under&amp;nbsp;start menu -&amp;gt; IIS Resources -&amp;gt; Metabase explorer)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;3) In the metabase explorer program, browse to the following metabase path: "/LM/W3SVC/"&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;4)Most commonly you'll see things like "APPPOOLS", "FILTERS", "INFO", and "1" (1 is the default website)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;5) If you click on any particular folder under "W3SVC", it will show a list of properties to the right - verify that each folder contains a property with an ID of "1002" and a name of "KeyType". The value of "KeyType" doesn't matter for this issue; it just matters that the property exists, and just in case, make sure it isn't blank.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: #1f497d; mso-bidi-font-family: 'Times New Roman'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: dark2"&gt;&lt;FONT size=3&gt;6) If you find one of the folders is missing this property, you can add it by right-clicking in the properties area (on the right) while the folder is selected, and choosing "New -&amp;gt; String Record". Now in the window that appears, where it says "Record Name or Identifier", type or select "KeyType" (case sensitive). Click "OK" to create the property with a blank value. Now double-click on the property in the properties window, and set its value to the string "Test", so that it isn't blank.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9458776" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author><category term="Web setup" scheme="http://blogs.msdn.com/gauravb/archive/tags/Web+setup/default.aspx" /><category term="KeyType" scheme="http://blogs.msdn.com/gauravb/archive/tags/KeyType/default.aspx" /><category term="WEBCA_EvaluateURLsNoFail" scheme="http://blogs.msdn.com/gauravb/archive/tags/WEBCA_5F00_EvaluateURLsNoFail/default.aspx" /></entry><entry><title>ClickOnce Application Launch Issues </title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2009/02/20/clickonce-application-launch-issues.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2009/02/20/clickonce-application-launch-issues.aspx</id><published>2009-02-20T03:17:00Z</published><updated>2009-02-20T03:17:00Z</updated><content type="html">&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;1)&lt;U&gt;&lt;SPAN style="COLOR: red"&gt;An Error occurred during writing to the disk. Please check that disk is not full&lt;/SPAN&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;-&lt;SPAN style="mso-bidi-font-family: Arial"&gt;On Vista machine &lt;/SPAN&gt;C:\Document and settings\&amp;lt;User&amp;gt;\Local settings\Apps this folder dint have Administrators under Security.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;Most probably User Profile issue. create New user profile to resolve the issue&lt;/B&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;2)&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-family: Arial"&gt; &lt;/SPAN&gt;IE doesn’t recognize MIME (.application) for ClickOnce&lt;BR&gt;&lt;U&gt;&lt;SPAN style="COLOR: red"&gt;Message : .application “Unknown MIME Type” , You want to save the file or Cancel&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;-&lt;B style="mso-bidi-font-weight: normal"&gt;Provide Registry permission through &lt;/B&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN lang=EN style="mso-ansi-language: EN"&gt;SubInACL tool to &lt;A href="http://blogs.msdn.com/gauravb/archive/2008/10/31/clickonce-application-fails-to-publish-with-empty-error-message.aspx"&gt;overcome IE issue&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN lang=EN style="mso-ansi-language: EN"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN lang=EN style="mso-ansi-language: EN"&gt;3)&lt;/SPAN&gt;&lt;SPAN lang=EN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-family: Arial"&gt; &lt;/SPAN&gt;Office assemblies to integrate to Outlook fails during Deployment With ClickOnce &lt;BR&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;U&gt;&lt;SPAN style="COLOR: red"&gt;Strong name signature not valid for this assembly stdole.dll&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;-&lt;B style="mso-bidi-font-weight: normal"&gt;Office assemblies should not be distributed randomly. Either PIA should be installed on target machine or added as prerequisite to ClickOnce Project&lt;o:p&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;4) ClickOnce Launch second time gives Error &lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;U&gt;The remote server returned an error&lt;SPAN style="COLOR: red"&gt;: (401) Unauthorized on ClickOnce application&lt;/SPAN&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;-&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-family: Arial"&gt; &lt;/SPAN&gt;Application was getting Launched from Shortcut - shortcut was available at &lt;BR&gt;C:\Documents and Settings\USER.HM\Application Data\Microsoft\Internet Explorer\Quick Launch\ Track-It! 8 Technician Client (2).appref-ms&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;-&lt;B style="mso-bidi-font-weight: normal"&gt;Add-on for IE was not allowing Launch from shortcut. Create fresh shortcut from Application Exe (located inside ClickOnce Cache) would resolve the issue &lt;o:p&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;5)&lt;U&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-family: Arial"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR: red"&gt;ClickOnce application doesn’t launch on client machine (No Error)&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;-&lt;B style="mso-bidi-font-weight: normal"&gt; Proventia Desktop and Kingston Mouse Driver would not allow Clickonce to run on the machine. There are other &lt;A href="http://blogs.msdn.com/gauravb/archive/2008/10/31/clickonce-application-fails-to-publish-with-empty-error-message.aspx"&gt;known Application&lt;/A&gt; as well.&lt;o:p&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;U&gt;6)Client cannot launch the application, Error : &lt;SPAN style="COLOR: red"&gt;Store metadata "AppType" is not valid&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;I style="mso-bidi-font-style: normal"&gt;-&lt;/I&gt;&lt;I style="mso-bidi-font-style: normal"&gt;&lt;SPAN style="FONT-SIZE: 8pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-family: Arial"&gt; &lt;/SPAN&gt;Issue is as follows:&lt;BR&gt;DFSVC.exe (ClickOnce service) makes a call into System.Deployment.Application.ComponentStore.GetPropertyAppType&lt;BR&gt;&lt;BR&gt;which then calls System.UInt16.Parse &lt;BR&gt;appTypeStr in this case is "0" which is a valid string for the number 0. However, we're getting the following exception:&lt;BR&gt;&lt;BR&gt;System.FormatException&lt;BR&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;Input string was not in a correct format&lt;o:p&gt;&lt;/o:p&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;This is Known issue and Working Fix is available at &lt;A href="http://support.microsoft.com/kb/942460"&gt;&lt;FONT color=#0000ff&gt;KB 942460&lt;/FONT&gt;&lt;/A&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9435194" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author><category term="App Launch" scheme="http://blogs.msdn.com/gauravb/archive/tags/App+Launch/default.aspx" /><category term="Clickonce" scheme="http://blogs.msdn.com/gauravb/archive/tags/Clickonce/default.aspx" /></entry><entry><title>Clickonce: Failed to sign bin\Debug\ICE.publish\\setup.exe</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2009/01/23/clickonce-failed-to-sign-bin-debug-ice-publish-setup-exe.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2009/01/23/clickonce-failed-to-sign-bin-debug-ice-publish-setup-exe.aspx</id><published>2009-01-23T22:55:00Z</published><updated>2009-01-23T22:55:00Z</updated><content type="html">&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;copy the latest version of CAPICOM.dll into the directory that contains&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;SignTool.exe.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Workaround &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;==========&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;-Copy the DLL to the correct folder &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Which would be&amp;nbsp;From %&lt;SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;Program Files%\Common\Microsoft Shared&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;to the location where Signtool stored.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;For VS2005&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;%Program&amp;nbsp;files%\Microsoft Visual studio 8\SDK\v2.0\Bin&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-theme-font: minor-bidi"&gt;For VS2008&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;%Programfiles%\Microsoft SDKs\Windows\v6.A\Bin\ &lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&amp;nbsp;&lt;/P&gt;&lt;/SPAN&gt;&lt;/FONT&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;-We need to Perform registration as well.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT size=+0&gt;&lt;FONT face=Calibri&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;registered the Dll to register &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;Start | Run | regsvr32 “&amp;lt;Path&amp;gt;\CAPICOM.dll&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;To register We could also Type regsvr32 and drag the DLL to the run window&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=3&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9373091" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author><category term="Signtool" scheme="http://blogs.msdn.com/gauravb/archive/tags/Signtool/default.aspx" /><category term="CAPICOM" scheme="http://blogs.msdn.com/gauravb/archive/tags/CAPICOM/default.aspx" /></entry><entry><title>Clickonce: Clickonce Deployment through Application virtualization</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2009/01/02/clickonce-clickonce-deployment-through-application-virtualization.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2009/01/02/clickonce-clickonce-deployment-through-application-virtualization.aspx</id><published>2009-01-02T21:49:26Z</published><updated>2009-01-02T21:49:26Z</updated><content type="html">&lt;p&gt;Clickonce Deployment is by design Created to Deploy&amp;nbsp; in Per-user Environment&lt;/p&gt; &lt;p&gt;We could not change the Target path to Clickonce Application. By default Clickonce would only Point to Root Drive\%User Profile%\Local\Apps&lt;/p&gt; &lt;p&gt;-Generally through Soft grid or Citrix server virtual Drive would be created and Deployment would be to those virtual Drive.&lt;/p&gt; &lt;p&gt;-Clickonce would not completely work on those environment as it wouldn't understand the Virtual drive location and still try to Deploy to the Default Local drive of the machine&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Workaround&lt;/p&gt; &lt;p&gt;----------------&lt;/p&gt; &lt;p&gt;-Clear the Clickonce cache through Mage -cc or manually Deleting %userprofile%\Apps Folder&lt;/p&gt; &lt;p&gt;-Clickonce on Virtual environment is not the best Practice. Allow click once to Deploy to Local drive and than programmatically try to transfer Content of Clickonce Cache to Virtual Directory &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9269555" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce: Shortcut on Desktop is not available</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/12/23/clickonce-shortcut-on-desktop-is-not-available.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/12/23/clickonce-shortcut-on-desktop-is-not-available.aspx</id><published>2008-12-24T01:01:00Z</published><updated>2008-12-24T01:01:00Z</updated><content type="html">&lt;P&gt;Windows installer or MSI project had inbuilt .lnk shortcut feature available. 
&lt;P&gt;We could also use &lt;A href="http://msdn.microsoft.com/en-us/library/fywyxt64(VS.85).aspx" mce_href="http://msdn.microsoft.com/en-us/library/fywyxt64(VS.85).aspx"&gt;Shell Shortcut&lt;/A&gt; 
&lt;P&gt;ClickOnce could create shortcut in Startup Menu. However Creating Desktop Shortcut is not available feature in ClickOnce 
&lt;P&gt;Please use this program to create desktop shortcut. However this is just copying of Start menu shortcut 
&lt;P&gt;So application must be launched first time and second time desktop shortcut could launch it. 
&lt;P&gt;Generally ClickOnce launches automatically after installation, if it doesn't please check 
&lt;P&gt;Properties | Publish Tab | Option Button | Uncheck "Block application from being activated via a URL" 
&lt;P&gt;To create shortcut here is the C# application 
&lt;P&gt;------------------------------------------------------- 
&lt;P&gt;static void Main(string[] args) 
&lt;P&gt;{ 
&lt;P&gt;Console.WriteLine(Environment.SpecialFolder.Programs); 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{ 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if(System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun) 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; copyShortcut("Companyname", " ApplicationName.appref-ms"); 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (System.Deployment.Application.InvalidDeploymentException ex) 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine("Please run this application from the shortcut in the Start Menu to get the automatic update&amp;nbsp;&amp;nbsp; feature working." +"\n\n" +"You can create a desktop shortcut from that particular shortcut if you like."); 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(Exception ex){ 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //other exceptions 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static void copyShortcut(string manufacturerName, string shortcutFileName ) 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\" + shortcutFileName; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string startPath = Environment.GetFolderPath(Environment.SpecialFolder.Programs) + "\\" + manufacturerName + "\\" + shortcutFileName; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{ 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.File.Copy(startPath, desktopPath, true); 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(Exception ex){ 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw ex; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&lt;P&gt;To get the &lt;A href="http://thedatafarm.com/devlifeblog/archive/2006/07/28/42695.aspx" mce_href="http://thedatafarm.com/devlifeblog/archive/2006/07/28/42695.aspx"&gt;Same code&lt;/A&gt; in vb 
&lt;P&gt;Please consider this as copy of shortcut and not real shortcut. During uninstall of your product, the desktop shortcut would stay back at desktop&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9250988" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author><category term="Clickonce Shortcut" scheme="http://blogs.msdn.com/gauravb/archive/tags/Clickonce+Shortcut/default.aspx" /></entry><entry><title>ClickOnce: application does not install when the deployment path includes ampersands</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/12/02/clickonce-application-does-not-install-when-the-deployment-path-includes-ampersands.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/12/02/clickonce-application-does-not-install-when-the-deployment-path-includes-ampersands.aspx</id><published>2008-12-02T22:10:54Z</published><updated>2008-12-02T22:10:54Z</updated><content type="html">&lt;p&gt;&amp;nbsp; &lt;p&gt;After running the publish wizard and running the setup.exe, a message box is shown saying that the "Application cannot be started. Contact the application vendor".&lt;br&gt;ERROR DETAILS&lt;br&gt;Following errors were detected during this operation.&lt;br&gt;* [13/08/2008 11:07:34] System.ArgumentException&lt;br&gt;- Value does not fall within the expected range.&lt;br&gt;- Source: mscorlib&lt;br&gt;- Stack trace:&lt;br&gt;at System.Deployment.Internal.Isolation.IDefinitionAppId.EnumAppPath()&lt;br&gt;at System.ActivationContext.CreateFromNameAndManifests(ApplicationIdentity applicationIdentity, String[] manifestPaths)&lt;br&gt;at System.Deployment.Application.ActivationDescription.ToActivationContext()&lt;br&gt;at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory&amp;amp; downloadTemp)&lt;br&gt;at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState subState, ActivationDescription actDesc)&lt;br&gt;at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)&lt;br&gt;at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) &lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;strong&gt;Workaround&lt;/strong&gt; &lt;p&gt;This is Known Issue Currently and Simple workaround is don't use "&amp;amp;" in File path of Clickonce publish location &lt;p&gt;The Issue expected to be Fix in Next version of .Net Framework &lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9165723" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce: Application has COM references Needs to be registered</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/12/02/clickonce-application-has-com-references-needs-to-be-registered.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/12/02/clickonce-application-has-com-references-needs-to-be-registered.aspx</id><published>2008-12-02T22:01:16Z</published><updated>2008-12-02T22:01:16Z</updated><content type="html">&lt;p&gt;ClickOnce Application is not advanced like MSI. If you have COM references that needs to be register on Client to run the application correctly we have to create Bootstrap manifest generator &lt;p&gt;For any Additional Data or required of third party application would also needs to be added as prerequisite &lt;p&gt;To add prerequisite in Visual studio 2005, we need to create Simple MSI project and create BMG through this tool &lt;p&gt;&lt;a href="http://code.msdn.microsoft.com/bmg/Release/ProjectReleases.aspx?ReleaseId=1569"&gt;http://code.msdn.microsoft.com/bmg/Release/ProjectReleases.aspx?ReleaseId=1569&lt;/a&gt; &lt;p&gt;The same tool is available for VS2008 and would get updated at above location. However sometime creating Prerequisite through this tool will cause Visual studio Crash &lt;p&gt;Workaround &lt;p&gt;-The failure could be corrected by comparing other prerequisite Product and Package XML and correcting it with Space and other tags. &lt;p&gt;You could also create your Own Prerequisite Manually &lt;p&gt;1. Create Setup Project using Visual studio(Or any other Tool).For Ex I am using MSI name as Reference.msi &lt;p&gt;2.Create Package.xml &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;Package xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" Name="References" Culture="En"&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;PackageFiles CopyAllPackageFiles="false"&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;PackageFile Name="References.msi"/&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;/PackageFiles&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;Commands Reboot="Defer"&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;Command PackageFile="References.msi" Arguments=""&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;ExitCodes&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;DefaultExitCode Result="Success" FormatMessageFromSystem="true"/&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;/ExitCodes&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;/Command&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;/Commands&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;/Package&amp;gt;&lt;/font&gt; &lt;p&gt;3. Create Product.XML &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;&amp;lt;Product&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"&lt;/font&gt; &lt;p&gt;&lt;font color="#8080ff"&gt;ProductCode="References"/&amp;gt;&lt;/font&gt; &lt;p&gt;4. Create Folder References Under C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages (For X64 machine Copy under (ProgramFiles(X86)) &lt;p&gt;Add Reference.msi, Product.XML under it. Create folder called en and Add Package.XML under this folder &lt;p&gt;NOTE: References is name for Example, Change it according to your prerequisite Application name &lt;p&gt;5. Launch VS 2008 Select project | Properties | Publish | Prerequisite Button &lt;p&gt;You would See references listed under prerequisite List&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9165692" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce:Clickonce Application can be created with Command line</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/11/04/clickonce-clickonce-application-can-be-created-with-command-line.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/11/04/clickonce-clickonce-application-can-be-created-with-command-line.aspx</id><published>2008-11-04T21:26:01Z</published><updated>2008-11-04T21:26:01Z</updated><content type="html">&lt;p align="left"&gt;ClickOnce deployment enables you to publish application. Visual Studio provides full support for publishing and updating applications deployed with ClickOnce technology.  &lt;p&gt;ClickOnce application stores assembly information in &lt;a href="http://msdn.microsoft.com/en-us/library/aa374191(VS.85).aspx"&gt;Application manifest&lt;/a&gt; and application information inside &lt;a href="http://msdn.microsoft.com/en-us/library/k26e96zf.aspx"&gt;Deployment manifest&lt;/a&gt;  &lt;p&gt;We could create this by using &lt;a href="http://msdn.microsoft.com/en-us/library/acz3y3te(VS.80).aspx"&gt;Mage&lt;/a&gt; or &lt;a href="http://msdn.microsoft.com/en-us/library/xhctdw55(VS.80).aspx"&gt;MageUI&lt;/a&gt; tool  &lt;p&gt;Can we create ClickOnce application without Visual studio ?  &lt;p&gt;If we have &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E6E1C3DF-A74F-4207-8586-711EBE331CDC&amp;amp;displaylang=en"&gt;windows SDK&lt;/a&gt; installed we could use Command line to create ClickOnce application, which is using MSBuild  &lt;p&gt;Known Issue for creating ClickOnce through command line  &lt;p&gt;=============================================  &lt;p&gt;&lt;font color="#0000ff"&gt;MSB3147: Could not find required file 'setup.bin' in 'C:\&amp;lt;Projectpath&amp;gt;\Engine\Setup.bin&lt;/font&gt;  &lt;p&gt;-Please check the Windows SDK C:\Program files\Microsoft SDK\Windows\Vx.x(where x.x=5.0,6.0,6.0A,6.1)\Bootstrapper Folder  &lt;p&gt;If you don't have this folder available, that means you could not create bootstrapper (Setup.exe) from your SDK  &lt;p&gt;To overcome either we could manually Copy Bootstrapper\Engine folder from another machine where SDK has it.  &lt;p&gt;Bootstrapper is nothing but wrapper which calls deployment manifest. We can run our application without that as well  &lt;p&gt;Please check the MSDN For Full information on ClickOnce &lt;a href="http://msdn.microsoft.com/en-us/library/ms165431.aspx"&gt;Command line&lt;/a&gt; and Properties&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9040744" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce: Publish on IIS fails with System.Deployment.Application.DeploymentDownloadException (Unknown subtype)</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/10/31/clickonce-publish-on-iis-fails-with-system-deployment-application-deploymentdownloadexception-unknown-subtype.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/10/31/clickonce-publish-on-iis-fails-with-system-deployment-application-deploymentdownloadexception-unknown-subtype.aspx</id><published>2008-10-31T20:51:17Z</published><updated>2008-10-31T20:51:17Z</updated><content type="html">&lt;p&gt;&amp;lt;Error Log&amp;gt;&lt;/p&gt; &lt;p&gt;Below is a summary of the errors, details of these errors are listed later in the log.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Activation of C:\Documents and Settings\&amp;lt;Username&amp;gt;\Local Settings\Temporary Internet Files\Content.IE5\PEB6XSQC\*.application resulted in exception. Following failure messages were detected:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + Downloading file:///C:/Documents and Settings/&amp;lt;username&amp;gt;/Local Settings/Temporary InternetFiles/Content.IE5/PEB6XSQC/&amp;lt;Appname&amp;gt;.application did not succeed. &lt;p&gt;ERROR DETAILS&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Following errors were detected during this operation.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * [10/28/2008 3:00:20 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Downloading file:///C:/Documents and Settings/ykasan/Local Settings/Temporary Internet Files/Content.IE5/PEB6XSQC/HIC Report Launcher.application did not succeed.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Source: System.Deployment&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Stack trace:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles() &lt;p&gt;&amp;nbsp; &lt;p&gt;&lt;strong&gt;&amp;lt;Workaround&amp;gt;&lt;/strong&gt; &lt;p&gt;In My case the Publish Location was \\&amp;lt;Servername&amp;gt;\c$\wwwRoot\VirtualDirectory\&lt;br&gt;This UNC path was Publishing the application on the web server under same Domain&lt;br&gt;However, when we changed the publish Location to http:\Webserver\Visrtual Directory in Place of UNC Visual studio gave Error  &lt;p&gt;&lt;font color="#ff0000"&gt;Failed to connect to 'http://&amp;lt;Server&amp;gt;/&amp;lt;Virtual Dir&amp;gt;/' with the following error: Unable to create the Web site 'http://&amp;lt;Server&amp;gt;/&amp;lt;Virtual Dir&amp;gt;/'.&amp;nbsp; The Web server does not appear to have FrontPage Server Extensions installed.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt; &lt;p&gt;&lt;font color="#000000"&gt;&lt;strong&gt;&lt;u&gt;Resolution&lt;/u&gt;&lt;/strong&gt;&lt;/font&gt; &lt;p&gt;-Check if Web server has FrontPage Extension installed and Install it if its not installed already&lt;br&gt;-check that FrontPage extension is accessible as well&lt;br&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa984224(VS.71).aspx"&gt;http://msdn.microsoft.com/en-us/library/aa984224(VS.71).aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;-Check that Clickonce MIME types are also set on web server&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;To set MIME types in the IIS root directory's -&amp;gt; Properties -&amp;gt; HTTP Headers -&amp;gt; MIME Types.RightClick the Default Web Site of your IIS, then Select Properties, then go the HTTP Header tab. Near the bottom of the tab there is a command button called MIME Types &lt;br&gt;Click the MIME Types button. A New dialog pops. &lt;/p&gt; &lt;p&gt;Extension to .&lt;font color="#0000ff"&gt;application&lt;/font&gt; and MIME Type to &lt;font color="#0000ff"&gt;application/x-ms-application &lt;br&gt;&lt;/font&gt;Extension to .&lt;font color="#0000ff"&gt;manifest&lt;/font&gt; and add MIME Type to &lt;font color="#0000ff"&gt;application/x-ms-manifest&lt;/font&gt;&amp;nbsp; &lt;br&gt;Then add the Extension to .&lt;font color="#0000ff"&gt;deploy&lt;/font&gt; and&amp;nbsp; add MIME Type to &lt;font color="#0000ff"&gt;application/octet-stream&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt; Please check &lt;a href="http://msdn.microsoft.com/en-us/library/ms228998.aspx"&gt;MSDN&lt;/a&gt; For More information on MIME types and Clickonce Configuration. &lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9027025" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce Application Fails to Publish with Empty Error Message</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/10/31/clickonce-application-fails-to-publish-with-empty-error-message.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/10/31/clickonce-application-fails-to-publish-with-empty-error-message.aspx</id><published>2008-10-31T20:25:00Z</published><updated>2008-10-31T20:25:00Z</updated><content type="html">&lt;P&gt;&lt;A href="http://villelink.com/wp-content/uploads/2008/03/error.jpg" mce_href="http://villelink.com/wp-content/uploads/2008/03/error.jpg"&gt;&lt;IMG alt="ClickOnce error message" src="http://villelink.com/wp-content/uploads/2008/03/error.jpg" mce_src="http://villelink.com/wp-content/uploads/2008/03/error.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;Error Log&amp;gt;&lt;/P&gt;
&lt;P&gt;"Error occurred attempting to extract setup configuration file"&lt;/P&gt;
&lt;P&gt;&amp;lt;Workaround&amp;gt;&lt;/P&gt;
&lt;P&gt;The root cause of the failure is unknown. But Some web related application stops&amp;nbsp; Clickonce application Download correctly&lt;/P&gt;
&lt;P&gt;Some Known Issues are with Installation of &lt;/P&gt;
&lt;P&gt;Microsoft Web Services Enhancement 3.0&lt;BR&gt;.NET Memory Profiler by SciTech Software 3.0&lt;BR&gt;WebEx, &lt;SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;Black Ice, Oracle Developer tools&lt;/SPAN&gt; 
&lt;P&gt;-Removal of this software will resolve the issue. after publish you could reinstall those application again. If none of this software are installed Please check if any Application is interacting with IE(Web)removal of that should help&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9026987" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce:when IE tries to execute the .application file it comes up with a prompt asking to save the .application file</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/10/08/clickonce-when-ie-tries-to-execute-the-application-file-it-comes-up-with-a-prompt-asking-to-save-the-application-file.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/10/08/clickonce-when-ie-tries-to-execute-the-application-file-it-comes-up-with-a-prompt-asking-to-save-the-application-file.aspx</id><published>2008-10-09T00:25:40Z</published><updated>2008-10-09T00:25:40Z</updated><content type="html">&lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/gauravb/WindowsLiveWriter/ClickoncewhenIEtriestoex.applicationfile_CADA/Errorscreenshot.jpg"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="115" alt="Errorscreenshot" src="http://blogs.msdn.com/blogfiles/gauravb/WindowsLiveWriter/ClickoncewhenIEtriestoex.applicationfile_CADA/Errorscreenshot_thumb.jpg" width="205" border="0"&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;It Gives prompt with Unknown File type&lt;/p&gt; &lt;p&gt;This Could be the issue with Local MIME types or permission on Internet Explorer&lt;br&gt;1)For Fixing MIME, Please install related .Net Framework version on the machine and repair in case its already installed  &lt;p&gt;2)For permission we should check user and machine problems.&lt;br&gt;-Please create a new user profile and try launching the application from new user &lt;br&gt;To check Permission Process monitor could be used  &lt;p&gt;Process monitor Log would look like &lt;br&gt;===========================&lt;br&gt; iexplore.exe&amp;nbsp;&amp;nbsp;&amp;nbsp; 1480&amp;nbsp;&amp;nbsp;&amp;nbsp; RegOpenKey&amp;nbsp;&amp;nbsp;&amp;nbsp; HKCR\.application&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS DENIED&amp;nbsp;&amp;nbsp;&amp;nbsp; Desired Access: Query Value&lt;br&gt;iexplore.exe&amp;nbsp;&amp;nbsp;&amp;nbsp; 1480&amp;nbsp;&amp;nbsp;&amp;nbsp; RegOpenKey&amp;nbsp;&amp;nbsp;&amp;nbsp; HKCU\Software\Classes\.application&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME NOT FOUND&amp;nbsp;&amp;nbsp;&amp;nbsp; Desired Access: Query Value&lt;br&gt;iexplore.exe&amp;nbsp;&amp;nbsp;&amp;nbsp; 1480&amp;nbsp;&amp;nbsp;&amp;nbsp; RegOpenKey&amp;nbsp;&amp;nbsp;&amp;nbsp; HKCR\.application&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS DENIED&amp;nbsp;&amp;nbsp;&amp;nbsp; Desired Access: Query Value&lt;br&gt;===========================  &lt;p&gt;To provide permission Please use this SubInACL tool &lt;br&gt;we have to run few commands from command prompt :&lt;br&gt;C:\Program Files\Windows Resource Kits\Toot &lt;br&gt;Commands to run:&lt;br&gt;subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=everyone=f &lt;br&gt;subinacl /subkeyreg HKEY_CURRENT_USER /grant=everyone=f &lt;br&gt;subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=everyone=f &lt;br&gt;subinacl /subdirectories %SystemDrive% /grant=everyone=f  &lt;p&gt;Please check for more information &lt;br&gt;&lt;a href="http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx"&gt;http://blogs.msdn.com/astebner/archive/2006/09/04/739820.aspx&lt;/a&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8992074" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce: &lt;Filename&gt;, has a different computed hash than specified in manifest</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/10/06/clickonce-filename-has-a-different-computed-hash-than-specified-in-manifest.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/10/06/clickonce-filename-has-a-different-computed-hash-than-specified-in-manifest.aspx</id><published>2008-10-06T23:03:59Z</published><updated>2008-10-06T23:03:59Z</updated><content type="html">&lt;p&gt;Clickonce Log&lt;/p&gt; &lt;p&gt;=============&lt;/p&gt; &lt;p&gt; Following errors were detected during this operation.&lt;br&gt; * [9/27/2008 4:11:03 PM] System.Deployment.Application.InvalidDeploymentException (HashValidation)&lt;br&gt;&amp;nbsp; - File, &amp;lt;Filename&amp;gt;, has a different computed hash than specified in manifest.&lt;br&gt;&amp;nbsp; - Source: System.Deployment&lt;br&gt;&amp;nbsp; - Stack trace:&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ComponentVerifier.FileComponent.Verify()&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ComponentVerifier.VerifyComponents()&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory&amp;amp; downloadTemp)&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState&amp;amp; subState, ActivationDescription actDesc)&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension)&lt;br&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Workaround&lt;/p&gt; &lt;p&gt;===========&lt;/p&gt; &lt;p&gt;This workaround must be applied to all machines that publish this solution or gets this Error)&lt;br&gt;&lt;br&gt;change %windir%\Microsoft.Net\Framework\v2.0.50727\Microsoft.Common.targets (should &lt;br&gt;be on or around line 3173, easy way to search is search on &lt;strong&gt;PublishOnlyDependsOn&lt;/strong&gt;):&lt;br&gt;You should have similar Configuration information, add _CopyManifestFiles &lt;/p&gt; &lt;p&gt;===========================================&lt;/p&gt; &lt;p&gt;&amp;lt;PropertyGroup&amp;gt;&lt;br&gt;&amp;lt;PublishOnlyDependsOn&amp;gt;&lt;br&gt;SetGenerateManifests;&lt;br&gt;PublishBuild;&lt;br&gt;BeforePublish;&lt;br&gt;GenerateManifests;&lt;br&gt;CleanPublishFolder;&lt;br&gt;_&lt;font color="#0000ff"&gt;CopyManifestFiles;&lt;/font&gt;&lt;br&gt;_CopyFilesToPublishFolder;&lt;br&gt;_DeploymentGenerateBootstrapper;&lt;br&gt;ResolveKeySource;&lt;br&gt;_DeploymentSignClickOnceDeployment;&lt;br&gt;AfterPublish&lt;br&gt;&amp;lt;/PublishOnlyDependsOn&amp;gt;&lt;br&gt;&amp;lt;/PropertyGroup&amp;gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8978589" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Clickonce Fails with HRESULT: 0x80070005 (E_ACCESSDENIED))</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/10/02/clickonce-fails-with-hresult-0x80070005-e-accessdenied.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/10/02/clickonce-fails-with-hresult-0x80070005-e-accessdenied.aspx</id><published>2008-10-02T21:49:43Z</published><updated>2008-10-02T21:49:43Z</updated><content type="html">&lt;p&gt; Activation of &lt;a href="http://Contoso/SmartClientLaunch/Project/ProjectEditor.application?"&gt;http://Contoso/SmartClientLaunch/Project/ProjectEditor.application?&lt;/a&gt; resulted in exception. Following failure messages were detected:&lt;br&gt; + Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))  &lt;p&gt;* That means the ClickOnce deployment framework is not able to either write to file system / registry. Make sure the user has read/write access to  &lt;p&gt;File System : %system drive%\DOCUME~1\&amp;lt;user name&amp;gt;\LOCALS~1\Apps\2.0&lt;br&gt;Registry&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion.  &lt;p&gt;Workaround&lt;br&gt;==========&lt;br&gt;To Provide Privilege to file system We could delete the contents of 2.0 and run Mage -cc on the machine if Possible(&lt;a href="http://msdn.microsoft.com/en-us/library/acz3y3te(VS.80).aspx"&gt;Mage&lt;/a&gt; is command line utility comes with &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=4377f86d-c913-4b5c-b87e-ef72e5b4e065&amp;amp;displaylang=en"&gt;Windows SDK&lt;/a&gt;)&lt;br&gt;If Access denied is because of registry, Delete the Registry&lt;br&gt;%userprofile%\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat&lt;br&gt;Reboot the machine should recreate it. However to Delete this file you have to login through different User profile&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8974149" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author></entry><entry><title>Store metadata "AppType" is not valid</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/09/29/store-metadata-apptype-is-not-valid.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/09/29/store-metadata-apptype-is-not-valid.aspx</id><published>2008-09-29T22:49:00Z</published><updated>2008-09-29T22:49:00Z</updated><content type="html">&lt;P&gt;&lt;STRONG&gt;Workaround&lt;/STRONG&gt;&lt;BR&gt;========== 
&lt;P&gt;If you have "APPTYPE" In the Registry Key it would Give Error 
&lt;P&gt;If you remove that value from Registry location the issue would be fixed 
&lt;P&gt;HKCU\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0\PacakgeMetadata\{2ec93463-b0c3-45e1-8364-327e96aea856}_{3f471841-eef2-47d6-89c0-d028f03a4ad5}\imat..tion_3e64e3b4b5cafdd9_e70ba27c30f97a67\ 
&lt;P&gt;5. Remove the following registry value: 
&lt;P&gt;{2ad613da-6fdb-4671-af9e-18ab2e4df4d8}!AppType 
&lt;P&gt;&lt;STRONG&gt;Issue Detail&lt;/STRONG&gt;&lt;BR&gt;============== 
&lt;P&gt;DFSVC.exe (ClickOnce service) makes a call into System.Deployment.Application.ComponentStore.GetPropertyAppType 
&lt;P&gt;appTypeStr in this case is "0" which is a valid string for the number 0.&amp;nbsp; However, we're getting the following exception: 
&lt;P&gt;&amp;nbsp; System.FormatException&lt;BR&gt;&amp;nbsp; - Input string was not in a correct format.&lt;BR&gt;&amp;nbsp; - Source: mscorlib&lt;BR&gt;&amp;nbsp; - Stack trace:&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp;amp; number, NumberFormatInfo info, Boolean parseDecimal)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Number.ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.UInt16.Parse(String s, NumberStyles style, NumberFormatInfo info)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Deployment.Application.ComponentStore.GetPropertyAppType(DefinitionAppId appId, String propName) 
&lt;P&gt;To figure out it in a better way run this Code on Machine 
&lt;P&gt;============================================= 
&lt;P&gt;Dim strInput As String = "10"&lt;BR&gt;Dim intResult As Integer = 0&lt;BR&gt;Try&lt;BR&gt;intResult = Convert.ToInt16(strInput)&lt;BR&gt;Catch ex As Exception&lt;BR&gt;MessageBox.Show("Error: " &amp;amp; ex.Message) 
&lt;P&gt;=============================================== 
&lt;P&gt;Please check the &lt;A href="http://support.microsoft.com/kb/942460" mce_href="http://support.microsoft.com/kb/942460"&gt;Working fix&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8969391" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author><category term="APPTYPE CLICKONCE Store metadata" scheme="http://blogs.msdn.com/gauravb/archive/tags/APPTYPE+CLICKONCE+Store+metadata/default.aspx" /></entry><entry><title>Unable to install because a newer version of this product is already installed</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/gauravb/archive/2008/09/24/unable-to-install-because-a-newer-version-of-this-product-is-already-installed.aspx" /><id>http://blogs.msdn.com/gauravb/archive/2008/09/24/unable-to-install-because-a-newer-version-of-this-product-is-already-installed.aspx</id><published>2008-09-25T00:59:00Z</published><updated>2008-09-25T00:59:00Z</updated><content type="html">&lt;P&gt;MSI Log &lt;/P&gt;
&lt;P&gt;=================&lt;/P&gt;
&lt;P&gt;Action 15:16:33: FindRelatedProducts. Searching for related applications&lt;BR&gt;Action start 15:16:33: FindRelatedProducts.&lt;BR&gt;FindRelatedProducts: Found application: {7F0093FD-CC7D-4464-98FE-CD0EFDF55D97}&lt;BR&gt;MSI (c) (80:DC) [15:16:33:579]: PROPERTY CHANGE: Adding NEWERPRODUCTFOUND property. Its value is '{7F0093FD-CC7D-4464-98FE-CD0EFDF55D97}'. 
&lt;P&gt;I (c) (80:DC) [15:16:34:532]: Note: 1: 2262 2: Error 3: -2147287038 &lt;BR&gt;DEBUG: Error 2835:&amp;nbsp; The control ErrorIcon was not found on dialog ErrorDialog&lt;BR&gt;The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, &lt;BR&gt;Unable to install because a newer version of this product is already installed.&lt;BR&gt;MSI (s) (78:54) [15:16:35:704]: Note: 1: 2262 2: Error 3: -2147287038 &lt;BR&gt;MSI (s) (78:54) [15:16:35:704]: Product: OrderService -- Unable to install because a newer version of this product is already installed. 
&lt;P&gt;Action ended 15:16:35: ERRCA_CANCELNEWERVERSION. Return value 3. 
&lt;H4&gt;&lt;STRONG&gt;Workaround&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;If you have created Setup Project through visual studio Please make sure that Visual studio Property &lt;/P&gt;
&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/yys0tfd0(VS.80).aspx" mce_href="http://msdn.microsoft.com/en-us/library/yys0tfd0(VS.80).aspx"&gt;&lt;FONT color=#669966&gt;DetectNewerInstalledVersion&lt;/FONT&gt;&lt;/A&gt; Property is set to &lt;STRONG&gt;False.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Details&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this property is True(Default Setting),Visual studio changes the Product code with New Build But it keeps the upgrade Code Same.&lt;/P&gt;
&lt;P&gt;It would Create Problem if you use the same Setup Project and make changes to it with Saving it as Different Project.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8964152" width="1" height="1"&gt;</content><author><name>Gauravb</name><uri>http://blogs.msdn.com/members/Gauravb.aspx</uri></author><category term="Newerversion Visual studio Setup Project" scheme="http://blogs.msdn.com/gauravb/archive/tags/Newerversion+Visual+studio+Setup+Project/default.aspx" /></entry></feed>