<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ClickOnce security and download on demand</title><link>http://blogs.msdn.com/misampso/archive/2004/05/06/127570.aspx</link><description>I recently received this request for a post from Channel9: I'm really interested ClickOnce and how it deals with security settings. I'm planning on creating C# game that uses managed direct3d. However even though its managed direct3d it is still treated,</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: ClickOnce security and download on demand</title><link>http://blogs.msdn.com/misampso/archive/2004/05/06/127570.aspx#139404</link><pubDate>Sat, 22 May 2004 11:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:139404</guid><dc:creator>6767</dc:creator><description>675675676767</description></item><item><title>re: ClickOnce security and download on demand</title><link>http://blogs.msdn.com/misampso/archive/2004/05/06/127570.aspx#145049</link><pubDate>Mon, 31 May 2004 20:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145049</guid><dc:creator>Peter Bernhardt</dc:creator><description>I'm looking at the CTP May release and I've found a number of quirks I'm hoping you might talk about in some detail.&lt;br&gt;&lt;br&gt;First, in my first tests I had to strong name sign the application itself and build it before I could publish without generating errors.&lt;br&gt;&lt;br&gt;I've also seen some erratic behavior with the publish wizard, whereby VS creates a publish folder in the project folder and sticks all the files there; it doesn't create a virtual directory on IIS.&lt;br&gt;&lt;br&gt;If I publish directly, I have to check the output window to make sure the application was actually published.  It would be nice if the IDE generated a warning or threw up a prompt to let me know that the published application was already up-to-date.  And on that note, why can't I force a republish from within the IDE without having to change versions of the application or deployment manifest?&lt;br&gt;&lt;br&gt;Also, I recall hearing somewhere between the Oct. '03 PDC and now (can't recall where) that strong name signing support was going to be dropped for one or both of the manifests.  Am I imagining things or not?&lt;br&gt;&lt;br&gt;</description></item><item><title>re: ClickOnce security and download on demand</title><link>http://blogs.msdn.com/misampso/archive/2004/05/06/127570.aspx#145576</link><pubDate>Tue, 01 Jun 2004 17:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145576</guid><dc:creator>Sampy</dc:creator><description>Thanks for your interest Peter!&lt;br&gt;&lt;br&gt;&amp;quot;First, in my first tests I had to strong name sign the application itself and build it before I could publish without generating errors.&amp;quot;&lt;br&gt;&lt;br&gt;This will not be the case for the final release; the most common case we envision is ClickOnce deploying simply named apps. I haven't run into this particular behavior (which definitely seems like a bug, we do a build when you publish so we shouldn't need one before hand). What you may be running afoul of is the confusing UI of the signing page. Uncheck the sign assembly checkbox and enter a key. This will sign the manifests but not the assembly. We hope to take another crack at this UI before release but no promises (if we don't, expect a blog post about what's going on in there).&lt;br&gt;&lt;br&gt;&amp;quot;I've also seen some erratic behavior with the publish wizard, whereby VS creates a publish folder in the project folder and sticks all the files there; it doesn't create a virtual directory on IIS.&amp;quot;&lt;br&gt;&lt;br&gt;Not creating the folder on IIS is probably a bug but creating the publish folder on disk is not. Think of it as the obj folder for your deployment. After we create the manifests, we have to do some fixup to accommodate the directory structure of your deployment.&lt;br&gt;&lt;br&gt;&amp;quot;If I publish directly, I have to check the output window to make sure the application was actually published. It would be nice if the IDE generated a warning or threw up a prompt to let me know that the published application was already up-to-date. And on that note, why can't I force a republish from within the IDE without having to change versions of the application or deployment manifest?&amp;quot;&lt;br&gt;&lt;br&gt;You should be able to publish without changing the versions by unchecking the auto-increment version checkbox on the publish property page. Also, you should be seeing a warning if you try to publish the same version or a previous version to the same location (VS goes out and sniffs your manifest before we copy up the files). I'll bring up this feedback with my team.&lt;br&gt;&lt;br&gt;&amp;quot;Also, I recall hearing somewhere between the Oct. '03 PDC and now (can't recall where) that strong name signing support was going to be dropped for one or both of the manifests. Am I imagining things or not?&amp;quot;&lt;br&gt;&lt;br&gt;Manifests have to be signed in the CTP's and they'll have to be signed in the Beta. Beyond that I can't promise anything (my team isn't in charge of that stuff and even if they were, I don't run my team :)) but I would imagine that this will not change.</description></item><item><title>re: ClickOnce security and download on demand</title><link>http://blogs.msdn.com/misampso/archive/2004/05/06/127570.aspx#147789</link><pubDate>Thu, 03 Jun 2004 17:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:147789</guid><dc:creator>Peter Bernhardt</dc:creator><description>Thanks for the response, Mike.  Including a copy of the publish folder makes sense as you explain it.&lt;br&gt;&lt;br&gt;And yeah, I'll look forward to a more logical UI presentation for adding a key to sign the manifests. But overall, I really like the App Designer.  It's an excellent ehancement to the IDE.&lt;br&gt;&lt;br&gt;Getting back to my problems publishing ClickOnce apps, I found this hack in the OnDemand sample that ships with the May CTP.&lt;br&gt;&lt;br&gt;/WORKAROUND:  REMOVE BEFORE RELEASE&lt;br&gt;if (argv.Length == 0 || argv[0] != &amp;quot;RUN&amp;quot;)&lt;br&gt;  {&lt;br&gt;  AppDomainSetup domaininfo = new AppDomainSetup();&lt;br&gt;  domaininfo.ApplicationName = &amp;quot;OnDemand.deploy,version='1.0.0.0',publicKeyToken='32f4b9751433b77e',processorArchitecture='msil',language='default'&amp;quot;;&lt;br&gt;&lt;br&gt;// Create the application domain.&lt;br&gt;AppDomain newDomain = AppDomain.CreateDomain(&amp;quot;HackDomain&amp;quot;, null, domaininfo);&lt;br&gt;  newDomain.ExecuteAssembly(System.Reflection.Assembly.GetExecutingAssembly().Location, null, new String[] { &amp;quot;RUN&amp;quot; });&lt;br&gt;  }&lt;br&gt;  else&lt;br&gt;  {&lt;br&gt;  Application.Run(new MainForm());&lt;br&gt;  }&lt;br&gt;&lt;br&gt;Is this at al related to a bug with ClickOnce publishing?</description></item><item><title>re: ClickOnce security and download on demand</title><link>http://blogs.msdn.com/misampso/archive/2004/05/06/127570.aspx#147801</link><pubDate>Thu, 03 Jun 2004 17:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:147801</guid><dc:creator>Peter Bernhardt</dc:creator><description>As an addendum to my earlier post, here's what I get in the output window after I attempt to publish from the tool menu:&lt;br&gt;&lt;br&gt;Error: The operation could not be completed.  Unspecified error &lt;br&gt;========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========&lt;br&gt;========== Publish: 0 succeeded, 0 failed, 0 skipped ==========&lt;br&gt;&lt;br&gt;Any idea what's causing that unspecified error?</description></item><item><title>ClickOnce permission escalation is poopie</title><link>http://blogs.msdn.com/misampso/archive/2004/05/06/127570.aspx#357024</link><pubDate>Thu, 20 Jan 2005 11:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:357024</guid><dc:creator>Managed Space</dc:creator><description /></item></channel></rss>