<?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>Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx</link><description>Setting up the directory structure Ok, so the first thing I did.. I created a little directory tree for my app on my machine, emulating the final configuration on a user's machine. I just made this tree on my desktop; Desktop\ --- \AutoUpdatingPagePlanner\</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#19362</link><pubDate>Thu, 24 Jul 2003 02:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:19362</guid><dc:creator>Chris Wolf</dc:creator><description>This works without a hitch.  Sorry to contact you directly but apparently I don't have access to the message board from which I pulled this webpage, and you appear to be 'the man' on the board....  A problem I'm experiencing is this:  I'm versioning an app that is updating 9 objects which total up to 866 kb in size.  When I use my local machine's webserver (self-updating app) I have to increase the polling period from 120 to about 600 in order for all the files to be downloaded, as it takes close to 5 minutes.  When I use a remote box's webserver I increase the polling period to something very high and the download takes a variant amount of time (which is a moot point because I receive an error before the polling period).  The error is this:  all 9 files are downloaded locally as far as the BIT[etc].tmp stage, with 0kb sizes and slowly the sizes pop in (just like when I'm running on localhost) but after 4, sometimes 5, sometimes 6 files, I receive the following error message in my logfile:  
&lt;br&gt;

&lt;br&gt;
[BITSDownloader] : 
&lt;br&gt;
    The BITS service returned an error for the job with the ID '03e8db99-0ffe-4128-9589-dc335174a424'; 
&lt;br&gt;
		the job's name and description are 'BITS_Files_Download_Job' and 'BITS_Files_Download_Job'.  
&lt;br&gt;
		The BITS service error message for this job is 
&lt;br&gt;
		'The server understood the request, but is refusing to fulfill it.
&lt;br&gt;

&lt;br&gt;
Do you have any ideas as to why this happens and any advice as to how to fix it/speed up the downloads?  Thanks!!!
&lt;br&gt;
chris wolf/everettwolf@hotmail.com</description></item><item><title>Manifest Utility returning an error</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#19618</link><pubDate>Tue, 29 Jul 2003 02:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:19618</guid><dc:creator>Jeff Deville</dc:creator><description>I must apologize for direct contact as well, but I also get an error when trying to create a new thread. 
&lt;br&gt;
My problem is that running the manifest utility (either the CS or the VB version) results in an error that reads:
&lt;br&gt;
&amp;quot;A first chance exception of type 'System.FormatException' occurred in microsoft.applicationblocks.applicationupdater.dll
&lt;br&gt;

&lt;br&gt;
Additional information: Invalid character in a Base-64 string.&amp;quot;
&lt;br&gt;

&lt;br&gt;
Error occurs in KeyValidator.cs on line 220, w/stacktrace:
&lt;br&gt;
&amp;quot;StackTrace: &amp;quot;   at System.Convert.FromBase64String(String s)\r\n   at Microsoft.ApplicationBlocks.ApplicationUpdater.Validators.KeyValidator.Microsoft.ApplicationBlocks.ApplicationUpdater.Interfaces.IValidator.Sign(String filePath, String key) in C:\\Program Files\\Microsoft Application Blocks for .NET\\Updater\\Code\\CS\\Microsoft.ApplicationBlocks.Updater\\Microsoft.ApplicationBlocks.ApplicationUpdater\\KeyValidator.cs:line 220&amp;quot;
&lt;br&gt;

&lt;br&gt;
I am using the manifest utility to create the XML manifest, so I don't know what could be causing the issue.
&lt;br&gt;

&lt;br&gt;
Sorry again to ask you this in your blog.
&lt;br&gt;
-Jeff
&lt;br&gt;
(I can be reached at jeffrey.w.deville@intel.com)
&lt;br&gt;
</description></item><item><title>Code/Tea/Etc...</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#21241</link><pubDate>Fri, 18 Jul 2003 06:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:21241</guid><dc:creator>TrackBack</dc:creator><description>Code/Tea/Etc...</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#35475</link><pubDate>Mon, 03 Nov 2003 14:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:35475</guid><dc:creator>Snailbug</dc:creator><description>I got the same problem as Chris Wolf. I get a lot of .tmp files in the updated folder. I can't find what's problem, can you help?&lt;br&gt;Sorry to contact you directly.</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#39976</link><pubDate>Wed, 26 Nov 2003 22:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:39976</guid><dc:creator>Jeff Deville</dc:creator><description>As much as I enjoy hearing that other people have made the same mistake I have, I'll go ahead and just tell you:&lt;br&gt;If you received the error I did, you forgot to set the validator to RSA.&lt;br&gt;&lt;br&gt;It's the stupid mistakes that are so time-consuming eh?  :-)&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#42004</link><pubDate>Mon, 08 Dec 2003 13:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:42004</guid><dc:creator>TheCoyote</dc:creator><description>Even if I specify a RSAKey (by using the Manifest Utility) to generate the manifest.xml, I have the same behavior and error message than Chris.&lt;br&gt;&lt;br&gt;I tried with asymetric Keys or RSA or with &amp;quot;useValidation='false'&amp;quot; on the &amp;quot;application&amp;quot; node of the App.Config xml file. Lot of time already lost...&lt;br&gt;&lt;br&gt;Any idea?</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#60332</link><pubDate>Mon, 19 Jan 2004 21:57:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:60332</guid><dc:creator>Tim Jones (TJ)</dc:creator><description>When my app tries to open my app.config file (in Init() of UpdaterConfiguration.vb - line is: _configuration = CType(ConfigurationSettings.GetConfig(&amp;quot;appUpdater&amp;quot;), UpdaterConfiguration))&lt;br&gt;&lt;br&gt;I get the following error: ConfigurationSettings.GetConfig(&amp;quot;appUpdater&amp;quot;)Run-time exception thrown:&lt;br&gt;System.Configuration.ConfigurationException - Microsoft.ApplicationBlocks.ApplicationUpdater.UpdaterSectionHandler,Microsoft.ApplicationBlocks.ApplicationUpdater does not implement IConfigSectionHandler.....I copied the app.config from the MS SelfUpdating example and just changed the paths to match my testing app so I can't understand why this error is occuring.&lt;br&gt;&lt;br&gt;Any info is appreciated...thanks,&lt;br&gt;&lt;br&gt;TJ&lt;br&gt;</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#68707</link><pubDate>Fri, 06 Feb 2004 15:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:68707</guid><dc:creator>Dan Barnes</dc:creator><description>Do you have any How-To information for adding a post processor?  I am unable to get my post processor to fire after downloading the updated files to the client...the post processor is downloaded and I can run it manually (it is an exe) and the code performs the desired actions, but I can't figure out why it doesn't run after all files are downloaded.  The manifest appears to have all the correct information about the post processor...&lt;br&gt;&lt;br&gt;Any ideas?&lt;br&gt;Dan</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#77155</link><pubDate>Fri, 20 Feb 2004 17:41:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:77155</guid><dc:creator>Christopher Smith</dc:creator><description>TJ,&lt;br&gt;&lt;br&gt;I had the same trouble you are having.  If you add a Break Point on the line and step into the code until an exception is caught, you can drill down into the 'ex' object into the Inner Exception and you'll probably find that you have a problem in your app.config &amp;quot;appUpdater&amp;quot; sections under &amp;lt;application&amp;gt; and either &amp;lt;client&amp;gt; or &amp;lt;server&amp;gt;.  For example, the &amp;lt;baseDir&amp;gt; must exist and the &amp;lt;xmlFile&amp;gt; must be available when you run the application.&lt;br&gt;&lt;br&gt;&amp;lt;application name=&amp;quot;AppName&amp;quot; useValidation=&amp;quot;true&amp;quot;&amp;gt;&lt;br&gt;&amp;lt;client&amp;gt;&lt;br&gt;  &amp;lt;baseDir&amp;gt;C:\Program Files\AppDir&amp;lt;/baseDir&amp;gt; &lt;br&gt;  &amp;lt;xmlFile&amp;gt;C:\Program Files\AppDir\AppStart.exe.config&amp;lt;/xmlFile&amp;gt; &lt;br&gt;  &amp;lt;tempDir&amp;gt;C:\Program Files\AppDir\newFiles&amp;lt;/tempDir&amp;gt; &lt;br&gt;  &amp;lt;/client&amp;gt;&lt;br&gt;&amp;lt;server&amp;gt;&lt;br&gt;&amp;lt;xmlFile&amp;gt;&lt;a target="_new" href="http://www.domain.com/updates/Manifest.xml&amp;lt;/xmlFile&amp;gt;"&gt;http://www.domain.com/updates/Manifest.xml&amp;lt;/xmlFile&amp;gt;&lt;/a&gt; &lt;br&gt;  &amp;lt;xmlFileDest&amp;gt;C:\Program Files\AppDir\Manifest.xml&amp;lt;/xmlFileDest&amp;gt; &lt;br&gt;  &amp;lt;maxWaitXmlFile&amp;gt;60000&amp;lt;/maxWaitXmlFile&amp;gt; &lt;br&gt;  &amp;lt;/server&amp;gt;&lt;br&gt;  &amp;lt;/application&amp;gt;&lt;br&gt;</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#121282</link><pubDate>Tue, 27 Apr 2004 19:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:121282</guid><dc:creator>Sur42</dc:creator><description>I am having a problem in blocking the updater thread. What exactly am trying to do is when the user says no to the download I want to wait for the next polling interval, but some how am get thread interrupted exception. can anyone please help me out</description></item><item><title>re: Converting an Application to use the Application Updater Block from PAG</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#129484</link><pubDate>Tue, 11 May 2004 02:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:129484</guid><dc:creator>Jay Virk</dc:creator><description>I am using Application Updater for my App and KeyValidator for validation. All goes fine until after the download, the validation starts to happen, all files are validated but for an .exe file. I dont understand , what has got against an .exe file.&lt;br&gt;Thanks&lt;br&gt;Jay</description></item><item><title>Create a Self-Updating WinForms App with the Application Updater Block</title><link>http://blogs.msdn.com/duncanma/pages/10221.aspx#374425</link><pubDate>Wed, 16 Feb 2005 18:31:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:374425</guid><dc:creator>Brendan Tompkins</dc:creator><description /></item></channel></rss>