AppUpdater not working with webservice

A

Aaron Radich

We're having some problems with the AppUpdater control. We're trying
to call a web service from the OnCheckForUpdate event. The
OnCheckForUpdate event works fine and returns a true/false and the
UpdateUrl/Path to the server media. The problem is that the download
does not occur after the OnCheckForUpdate successfully fires. We've
got the AutoFileLoad=True, ChangeDetectionMode=DirectFileCheck,
ValidateAssemblies=False, AutoStart=True, and
DownloadOnDetection=True. I've also got the webservice folder(s)
marked for directory browsing. I've included a snippet from the
AppUpdater.log and AppUpdater.xml files. Please let me know if you
know of something I'm missing or how I might be able to get additional
support (even pay support).

Thanks,

Aaron


--------------------------------------
8/31/2004 7:43:31 PM: UPDATE FAILED with the following error message:
System.IO.IOException: Cannot create a file when that file already
exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.File.Move(String sourceFileName, String destFileName)
at Microsoft.Samples.AppUpdater.WebFileLoader.CopyStreamToDisk(Stream
responseStream, String filePath)
at Microsoft.Samples.AppUpdater.WebFileLoader.UpdateFile(String
url, String filePath)
at Microsoft.Samples.AppUpdater.ServerManifest.Load(String url)
at Microsoft.Samples.AppUpdater.AppDownloader.RunThread()

-------------------------------------

_UpdateFailureEncoutered>false</_UpdateFailureEncoutered>
<_UpdateFailureCount>0</_UpdateFailureCount>
<_DownloadSource id="ref-8">http://venue.mjmsports.com/MJMBrowserUpdate/Latest.xml</_DownloadSource>
<_DownloadDestination id="ref-9">C:\Documents and Settings\Aaron
Radich\My Documents\Visual Studio Projects\MJM Sports\Win32\MJM Web
Browser\MJMBrowser\bin\AppUpdate\</_DownloadDestination>
<_NewVersionDirectory href="#ref-7"/>
</a1:UpdateState>
<a2:SortedList id="ref-6"
xmlns:a2="http://schemas.microsoft.com/clr/ns/System.Collections">
<keys href="#ref-10"/>
<values href="#ref-11"/>
<_size>5</_size>
<version>5</version>
<comparer href="#ref-12"/>
<keyList xsi:null="1"/>
<valueList xsi:null="1"/>
</a2:SortedList>
<SOAP-ENC:Array id="ref-10" SOAP-ENC:arrayType="xsd:anyType[16]">
<item id="ref-13" xsi:type="SOAP-ENC:string">appupdater.dll</item>
<item id="ref-14" xsi:type="SOAP-ENC:string">axinterop.shdocvw.dll</item>
<item id="ref-15" xsi:type="SOAP-ENC:string">devcomponents.dotnetbar.dll</item>
<item id="ref-16" xsi:type="SOAP-ENC:string">interop.shdocvw.dll</item>
<item id="ref-17" xsi:type="SOAP-ENC:string">MJMBrowser.exe</item>
</SOAP-ENC:Array>
<SOAP-ENC:Array id="ref-11" SOAP-ENC:arrayType="xsd:anyType[16]">
<item href="#ref-18"/>
<item href="#ref-19"/>
<item href="#ref-20"/>
<item href="#ref-21"/>
<item href="#ref-22"/>
</SOAP-ENC:Array>
<a2:Comparer id="ref-12"
xmlns:a2="http://schemas.microsoft.com/clr/ns/System.Collections">
<m_compareInfo xsi:null="1"/>
</a2:Comparer>
<a1:Resource id="ref-18"
xmlns:a1="http://schemas.microsoft.com/clr/ns...0.38958, Culture=neutral, PublicKeyToken=null">
<_Name href="#ref-13"/>
<_Url xsi:null="1"/>
<_FilePath id="ref-23">c:\documents and settings\aaron radich\my
documents\visual studio projects\mjm sports\win32\mjm web
browser\mjmbrowser\bin\debug\appupdater.dll</_FilePath>
<_IsFolder>false</_IsFolder>
<_LastModified>0001-01-01T00:00:00.0000000-08:00</_LastModified>
<_AddedAtRuntime>true</_AddedAtRuntime>
</a1:Resource>
<a1:Resource id="ref-19"
xmlns:a1="http://schemas.microsoft.com/clr/ns...0.38958, Culture=neutral, PublicKeyToken=null">
<_Name href="#ref-14"/>
<_Url xsi:null="1"/>
<_FilePath id="ref-24">c:\documents and settings\aaron radich\my
documents\visual studio projects\mjm sports\win32\mjm web
browser\mjmbrowser\bin\debug\axinterop.shdocvw.dll</_FilePath>
<_IsFolder>false</_IsFolder>
<_LastModified>0001-01-01T00:00:00.0000000-08:00</_LastModified>
<_AddedAtRuntime>true</_AddedAtRuntime>
</a1:Resource>
<a1:Resource id="ref-20"
xmlns:a1="http://schemas.microsoft.com/clr/ns...0.38958, Culture=neutral, PublicKeyToken=null">
<_Name href="#ref-15"/>
<_Url xsi:null="1"/>
<_FilePath id="ref-25">c:\documents and settings\aaron radich\my
documents\visual studio projects\mjm sports\win32\mjm web
browser\mjmbrowser\bin\debug\devcomponents.dotnetbar.dll</_FilePath>
<_IsFolder>false</_IsFolder>
<_LastModified>0001-01-01T00:00:00.0000000-08:00</_LastModified>
<_AddedAtRuntime>true</_AddedAtRuntime>
</a1:Resource>
<a1:Resource id="ref-21"
xmlns:a1="http://schemas.microsoft.com/clr/ns...0.38958, Culture=neutral, PublicKeyToken=null">
<_Name href="#ref-16"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top