<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: AppUpdater with Apache Server (without Web-DAV)</title>
	<atom:link href="http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 09 Jul 2011 21:19:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: GunArm</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-153</link>
		<dc:creator>GunArm</dc:creator>
		<pubDate>Thu, 30 Jun 2011 19:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-153</guid>
		<description>Thank you SO much for this awesome post!  I have been killing myself to get this working and was about to give up on it.  Distributing by zip files is neater anyway!  



Below is the output of my log messages upon the failure that this fixes.  Hopefully this will help others with this problem find this solution through search engines:


UPDATE FAILED with the following error message:
System.FormatException: Input string was not in a correct format.
   at Microsoft.Samples.AppUpdater.AppDownloader.Download()
   at Microsoft.Samples.AppUpdater.AppDownloader.RunThread()</description>
		<content:encoded><![CDATA[<p>Thank you SO much for this awesome post!  I have been killing myself to get this working and was about to give up on it.  Distributing by zip files is neater anyway!  </p>
<p>Below is the output of my log messages upon the failure that this fixes.  Hopefully this will help others with this problem find this solution through search engines:</p>
<p>UPDATE FAILED with the following error message:<br />
System.FormatException: Input string was not in a correct format.<br />
   at Microsoft.Samples.AppUpdater.AppDownloader.Download()<br />
   at Microsoft.Samples.AppUpdater.AppDownloader.RunThread()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JPG</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-146</link>
		<dc:creator>JPG</dc:creator>
		<pubDate>Mon, 18 Jan 2010 16:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-146</guid>
		<description>After much searching for why Apache won&#039;t work with AppUpdater, I stumbled upon this solution.  It was a huge help.  Thank you for taking the time to provide such great details.</description>
		<content:encoded><![CDATA[<p>After much searching for why Apache won&#8217;t work with AppUpdater, I stumbled upon this solution.  It was a huge help.  Thank you for taking the time to provide such great details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eric</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-92</link>
		<dc:creator>eric</dc:creator>
		<pubDate>Thu, 27 Nov 2008 06:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-92</guid>
		<description>A Wed-DAV-less solution is exactly what I was looking for, thanks for publishing it.

I did however run into a few problems. The zip file extraction would throw an exception saying that the &quot;file was not found&quot;. I thought it was the spaces in the filename that were playing tricks, but it turns out that the shell32 method relies (behind the scenes) on the presence of &quot;unzip.exe&quot; to do the extraction and for whatever reason that utility is not available on a few systems here.

So instead of bundling unzip.exe with the application, I simply added a reference to an open source zip lib (http://www.codeplex.com/DotNetZip) and extracted the files in the archive by replacing the Shell32 lines in CopyDirectory by the following:
using (Ionic.Utils.Zip.ZipFile zip = Ionic.Utils.Zip.ZipFile.Read(newPath))
  {
    foreach (Ionic.Utils.Zip.ZipEntry e in zip)
    {
      e.Extract(filePath);
    }
  }

Hopefully this will help someone else with a similar situation.</description>
		<content:encoded><![CDATA[<p>A Wed-DAV-less solution is exactly what I was looking for, thanks for publishing it.</p>
<p>I did however run into a few problems. The zip file extraction would throw an exception saying that the &#8220;file was not found&#8221;. I thought it was the spaces in the filename that were playing tricks, but it turns out that the shell32 method relies (behind the scenes) on the presence of &#8220;unzip.exe&#8221; to do the extraction and for whatever reason that utility is not available on a few systems here.</p>
<p>So instead of bundling unzip.exe with the application, I simply added a reference to an open source zip lib (<a href="http://www.codeplex.com/DotNetZip" rel="nofollow">http://www.codeplex.com/DotNetZip</a>) and extracted the files in the archive by replacing the Shell32 lines in CopyDirectory by the following:<br />
using (Ionic.Utils.Zip.ZipFile zip = Ionic.Utils.Zip.ZipFile.Read(newPath))<br />
  {<br />
    foreach (Ionic.Utils.Zip.ZipEntry e in zip)<br />
    {<br />
      e.Extract(filePath);<br />
    }<br />
  }</p>
<p>Hopefully this will help someone else with a similar situation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-86</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 18 Nov 2008 09:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-86</guid>
		<description>Hi Cinni,

I was wondering why your 1.0.0.0 folder contained a folder named &quot;app&quot; after the update and was gonna suggest that you look into this :-)

I&#039;m glad it works for you!!</description>
		<content:encoded><![CDATA[<p>Hi Cinni,</p>
<p>I was wondering why your 1.0.0.0 folder contained a folder named &#8220;app&#8221; after the update and was gonna suggest that you look into this <img src='http://www.sebastianvogelsang.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I&#8217;m glad it works for you!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cinni</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-85</link>
		<dc:creator>Cinni</dc:creator>
		<pubDate>Tue, 18 Nov 2008 05:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-85</guid>
		<description>Hi Admin!
Above issue is resolved...

it was app.zip which created this issue for me. I have created a zip of a folder named &quot;app&quot; and files inside it, rather than zipping all files togather directly &quot;app.zip&quot;

Your Solution Rocks!!!!

A Trillion Thank to You.</description>
		<content:encoded><![CDATA[<p>Hi Admin!<br />
Above issue is resolved&#8230;</p>
<p>it was app.zip which created this issue for me. I have created a zip of a folder named &#8220;app&#8221; and files inside it, rather than zipping all files togather directly &#8220;app.zip&#8221;</p>
<p>Your Solution Rocks!!!!</p>
<p>A Trillion Thank to You.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cinni</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-84</link>
		<dc:creator>Cinni</dc:creator>
		<pubDate>Mon, 17 Nov 2008 14:15:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-84</guid>
		<description>HI admin!
Thank you for a quick reply

Here is my &quot;UpdateVersion.xml&quot;

2.0.0.0
http://www.myapplication/2.0.0.0/app.zip

Before update
1.0.0.0 folder contains, exe and dlls for my application

After update
1.0.0.0 folder contains app\ contents downloaded from Server
app\ 
app\myapplication.exe
app\mydll.dll


1.0.0.0_1 contains 
old files (myapplication.exe , mydll.dll)
app\
app\myapplication.exe
app\mydll.dll


&quot;UpdateFile&quot; function is NOT getting called!!!



Hope this can give u idea to find where i m wrong</description>
		<content:encoded><![CDATA[<p>HI admin!<br />
Thank you for a quick reply</p>
<p>Here is my &#8220;UpdateVersion.xml&#8221;</p>
<p>2.0.0.0<br />
<a href="http://www.myapplication/2.0.0.0/app.zip" rel="nofollow">http://www.myapplication/2.0.0.0/app.zip</a></p>
<p>Before update<br />
1.0.0.0 folder contains, exe and dlls for my application</p>
<p>After update<br />
1.0.0.0 folder contains app\ contents downloaded from Server<br />
app\<br />
app\myapplication.exe<br />
app\mydll.dll</p>
<p>1.0.0.0_1 contains<br />
old files (myapplication.exe , mydll.dll)<br />
app\<br />
app\myapplication.exe<br />
app\mydll.dll</p>
<p>&#8220;UpdateFile&#8221; function is NOT getting called!!!</p>
<p>Hope this can give u idea to find where i m wrong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-83</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 16 Nov 2008 16:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-83</guid>
		<description>Hi Cinni,

sorry to hear you have problems. Have you tried debugging the &quot;UpdateFile&quot; function? This might help finding out what&#039;s going wrong in your case. Also, can you post your UpdateVersion.xml file? What files are copied to the 1.0.0.0 folder? What&#039;s in the folder 1.0.0.0_1?</description>
		<content:encoded><![CDATA[<p>Hi Cinni,</p>
<p>sorry to hear you have problems. Have you tried debugging the &#8220;UpdateFile&#8221; function? This might help finding out what&#8217;s going wrong in your case. Also, can you post your UpdateVersion.xml file? What files are copied to the 1.0.0.0 folder? What&#8217;s in the folder 1.0.0.0_1?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cinni</title>
		<link>http://www.sebastianvogelsang.com/2008/04/14/appupdater-with-apache-server-without-web-dav/comment-page-1/#comment-80</link>
		<dc:creator>Cinni</dc:creator>
		<pubDate>Sat, 15 Nov 2008 11:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.sebastianvogelsang.com/?p=48#comment-80</guid>
		<description>Hi!

I have made modifications as specified in this article..
Still having problem to start newer version after updating is completed.

1) I have committed changes suggested in &quot;WebFileLoader.cs&quot;, 
2) upload a zip file of newer version of my application in 2.0.0.0 folder on web server.
3) And change in UpdateVersion.xml

As a result , i got success to check and download newer version from Apache web server, 

But it &quot;fails to Start newer version&quot;. I can see a folder created as &quot;1.0.0.0_1&quot; and app/ contents are downloaded to 1.0.0.0\ in my target machine. Actually it should download files in folder 2.0.0.0. which is not happening in my case.. 


Please suggest where i am wrong!!!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I have made modifications as specified in this article..<br />
Still having problem to start newer version after updating is completed.</p>
<p>1) I have committed changes suggested in &#8220;WebFileLoader.cs&#8221;,<br />
2) upload a zip file of newer version of my application in 2.0.0.0 folder on web server.<br />
3) And change in UpdateVersion.xml</p>
<p>As a result , i got success to check and download newer version from Apache web server, </p>
<p>But it &#8220;fails to Start newer version&#8221;. I can see a folder created as &#8220;1.0.0.0_1&#8243; and app/ contents are downloaded to 1.0.0.0\ in my target machine. Actually it should download files in folder 2.0.0.0. which is not happening in my case.. </p>
<p>Please suggest where i am wrong!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

