Please visit the following link:
http://www.eggheadcafe.com/articles/pfc/selfupdater.asp
Here A complete code for using Application updater , I downloaded the code
from the link.
When I run the application I found this error in the log:
---
[ApplicationUpdateManager.StartUpdater] :
The Updater has started; the target application's name is 'SayHello'.
Time started: 2005_03_03_16:47:14.
[DownloaderManager.RunDownloader] :
Checking on updates for application 'SayHello'.
[DownloaderManager.IsServerManifestDownloaded] :
DOWNLOAD STARTED: Downloading manifest for the application
'SayHello'. Time started: 2005_03_03_16:47:14
[DownloaderManager.IsServerManifestDownloaded] :
SOURCE FILE: 'http://localhost/sayHelloUpdate/ServerManifest.xml'
[DownloaderManager.IsServerManifestDownloaded] :
DEST FILE: 'D:\projects\selfupdater\SayHello\bin\debug\
ServerManifest.xml'
[ServerApplicationInfo.Deserialize] :
Reading Server Manifest file from 'D:\projects\selfupdater\SayHello\bin\
debug\ServerManifest.xml' to deserialize into a ServerApplicationInfo
object.
[DownloaderManager.IsServerManifestDownloaded] :
Server Manifest successfully downloaded to location 'D:\projects\
selfupdater\SayHello\bin\debug\ServerManifest.xml' .
[DownloaderManager.ValidateManifestFile] :
Validating the downloaded server Manifest file located at:
'D:\projects\selfupdater\SayHello\bin\debug\Server Manifest.xml'.
[ClientApplicationInfo.Deserialize] :
Reading the configuration file 'D:\projects\selfupdater\SayHello\bin\
debug\AppStart.exe.config' to deserialize it into a ClientApplicationInfo
object.
[DownloaderManager.ClientMustBeUpdated] :
The version currently on the client for application 'SayHello' is
1.0.0.0 and the version on the server is 2.0.0.0.
[DownloaderManager.BeginFileDownloads] :
The local files must be updated for the application 'SayHello'.
[DownloaderManager.DownloadApplicationFiles] :
Manifest downloaded, now commencing download of application files for
application 'SayHello'
to destination temporary folder 'D:\projects\selfupdater\SayHello\bin\
debug\newFiles\'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE: 'http://localhost/sayHelloUpdater/ApplicationUpdater.xml'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
ApplicationUpdater.xml'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE: 'http://localhost/sayHelloUpdater/AppStart.exe.config'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
AppStart.exe.config'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ApplicationUpdater.dll '
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ApplicationUpdater.dll '
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ApplicationUpdater.Int erfaces.dll'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ApplicationUpdater.Int erfaces.dll'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ApplicationUpdater.Int erfaces.pdb'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ApplicationUpdater.Int erfaces.pdb'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ApplicationUpdater.pdb '
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ApplicationUpdater.pdb '
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ExceptionManagement.dl l'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ExceptionManagement.dl l'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ExceptionManagement.In terfaces.dll'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ExceptionManagement.In terfaces.dll'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ExceptionManagement.In terfaces.pdb'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ExceptionManagement.In terfaces.pdb'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE:
'http://localhost/sayHelloUpdater/Microsoft.ApplicationBlocks.ExceptionManagement.pd b'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
Microsoft.ApplicationBlocks.ExceptionManagement.pd b'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE: 'http://localhost/sayHelloUpdater/SayHello.exe'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\SayHello.exe'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE: 'http://localhost/sayHelloUpdater/SayHello.exe.config'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
SayHello.exe.config'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE: 'http://localhost/sayHelloUpdater/SayHello.pdb'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\SayHello.pdb'
[DownloaderManager.DownloadApplicationFiles] :
SOURCE: 'http://localhost/sayHelloUpdater/ServerManifest.xml'
DEST: 'D:\projects\selfupdater\SayHello\bin\debug\newFil es\
ServerManifest.xml'
[DownloaderManager.BeginFileDownloads] :
Status updated with job id '73275496-16c7-4678-8a77-a467a142f633' for
the application 'SayHello'.
[BITSDownloader] :
The BITS service returned an error for the job with the ID '73275496-
16c7-4678-8a77-a467a142f633';
the job's name and description are 'BITS_Files_Download_Job' and
'BITS_Files_Download_Job'.
The BITS service error message for this job is
'The requested URL does not exist on the server.
'.
This job has been canceled, and the DownloaderManager will attempt it
again. If you see this error frequently, you may have a mis-configuration,
or another
administrator process/user is canceling BITS jobs.
It is also possible that some mis-configuration of the Manifest file is
causing BITS to have trouble with a source or destination path;
be sure that all SOURCE paths are valid URLs, and that all DESTINATION
paths are valid LOCAL UNC paths--__shares are not allowed__.
[ApplicationUpdateManager.StopUpdater] :
The Updater is stopping updates for the application named 'SayHello'.
Time stopped: 2005_03_03_16:48:04.
----------
How I can Solve The Problem?
--
Message posted via http://www.dotnetmonster.com