<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dan Rigsby - Coding Up Style &#187; ClickOnce</title>
	<atom:link href="http://www.danrigsby.com/blog/index.php/category/clickonce/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danrigsby.com/blog</link>
	<description>Developer.Speaker.Blogger</description>
	<lastBuildDate>Tue, 17 Nov 2009 18:29:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Visual Studio 2008 &amp; ClickOnce Warning</title>
		<link>http://www.danrigsby.com/blog/index.php/2008/04/16/visual-studio-2008-clickonce-warning/</link>
		<comments>http://www.danrigsby.com/blog/index.php/2008/04/16/visual-studio-2008-clickonce-warning/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 18:11:15 +0000</pubDate>
		<dc:creator>Dan Rigsby</dc:creator>
				<category><![CDATA[ClickOnce]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.danrigsby.com/blog/index.php/2008/04/16/visual-studio-2008-clickonce-warning/</guid>
		<description><![CDATA[Visual Studio 2008 added a new feature to easily embed a manifest.&#160; This is available right from the project properties page. It can be used to embed UAC data for Vista or other things.

By default each project is selected to use the embedded manifest.&#160; This doesn&#8217;t sound too harmful, right?
Well, ClickOnce and Registration-Free COM applications [...]]]></description>
			<content:encoded><![CDATA[<p>Visual Studio 2008 added a new feature to easily embed a manifest.&nbsp; This is available right from the project properties page. It can be used to embed UAC data for Vista or other things.</p>
<p><a href="http://www.danrigsby.com/blog/wp-content/uploads/2008/04/clickoncemanifest.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="466" alt="ClickOnceManifest" src="http://www.danrigsby.com/blog/wp-content/uploads/2008/04/clickoncemanifest-thumb.png" width="702" border="0"></a></p>
<p>By default each project is selected to use the embedded manifest.&nbsp; This doesn&#8217;t sound too harmful, right?</p>
<p>Well, ClickOnce and Registration-Free COM applications require an external manifest.&nbsp; So, if you use ClickOnce, it will try to create it own external application manifest which could cause a conflict with the embedded one. Here is the error you might get when you try to install the ClickOnce application:</p>
<blockquote><p>ERROR SUMMARY <br />&nbsp;&nbsp;&nbsp; Below is a summary of the errors, details of these errors are listed later in the log. <br />&nbsp;&nbsp;&nbsp; * Activation of <a href="https://ccnet.apisoftwareinc.com/builds/navigator/ClickOnceTrial.application"></a>\\MyShare\MyApplication.application</a> resulted in exception. Following failure messages were detected: <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + Reference in the manifest does not match the identity of the downloaded assembly MyApplication.exe.</p>
</blockquote>
<p>This error seems a bit cryptic at first.&nbsp; Especially if you don&#8217;t know that Visual Studio is embedding a manifest for. Fortunately, this error is easy to get around.&nbsp; You simple just set this option to &#8220;Create application without a manifest&#8221;.&nbsp; Or manually add &#8220;&lt;NoWin32Manifest&gt;true&lt;/NoWin32Manifest&gt; &#8221; to your project file like so:</p>
<div>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, 'Courier New', courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">&lt;PropertyGroup&gt;
    &lt;Configuration Condition=<span style="color: #006080">" '$(Configuration)' == '' "</span>&gt;Debug&lt;/Configuration&gt;
    &lt;Platform Condition=<span style="color: #006080">" '$(Platform)' == '' "</span>&gt;AnyCPU&lt;/Platform&gt;
    &lt;ProductVersion&gt;9.0.21022&lt;/ProductVersion&gt;
    &lt;SchemaVersion&gt;2.0&lt;/SchemaVersion&gt;
    &lt;OutputType&gt;WinExe&lt;/OutputType&gt;
    &lt;AppDesignerFolder&gt;Properties&lt;/AppDesignerFolder&gt;
    &lt;RootNamespace&gt;MyApplication&lt;/RootNamespace&gt;
    &lt;AssemblyName&gt;MyApplication&lt;/AssemblyName&gt;
    &lt;TargetFrameworkVersion&gt;v3.5&lt;/TargetFrameworkVersion&gt;
    &lt;FileAlignment&gt;512&lt;/FileAlignment&gt;
    &lt;NoWin32Manifest&gt;<span style="color: #0000ff">true</span>&lt;/NoWin32Manifest&gt;
  &lt;/PropertyGroup&gt;</pre>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
]]></content:encoded>
			<wfw:commentRss>http://www.danrigsby.com/blog/index.php/2008/04/16/visual-studio-2008-clickonce-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

