Updater Application Block

Topics: Updater Application Block
May 11, 2005 at 7:41 AM
originally posted by: raulito

Hello,

I am running into this error when my users try to download a new version of my smart client application. However, sometimes it works after we wait for a period of time or attempt to download it several times. Essentially we cannot determine why it works sometimes and sometimes it does not.

There is one thing that remains consistent is that the download always fails immediately after a recompile and the file (.exe) is placed in the virtual directoyr for download. Also, when the files are finally downloaded successfully all subsequent download attempts succeed. The inconsistent behavior is making it very difficult to diagnose the problem.

Any help would be appreciated.

Exception Information Details:
======================================
Exception Type:
Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloadErrorException
Code: -2145386460
Context: 4
ContextDescription: The error occurred while the local file was being
processed. Verify that the file is not in use, and then try again.

Message: The job is not making headway. The server may be misconfigured.
Background Intelligent Transfer Service (BITS) will try again later.

Protocol: http
LocalFileName: C:\Program Files\ISII\MySmart
Client\UAB\downloader\ISIISmartClient\ecc0b540-2368-458b-aa31-35cd6d1b81b1\I
SIISmartClient.exe
RemoteFileName:
http://xxxxxxxxxxx/ISIISmartClient/1.0.0.1/ISIISmartClient.exe
TargetSite: Void LogAndThrowException(System.String, System.Exception)
HelpLink: NULL
Source: Microsoft.ApplicationBlocks.Updater

StackTrace Information Details:
======================================
at Microsoft.ApplicationBlocks.Updater.Logger.LogAndThrowException(String
message, Exception ex)
at
Microsoft.ApplicationBlocks.Updater.Logger.LogAndThrowException(Exception
ex)
at
Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloader.OnJobError(Up
daterTask task, IBackgroundCopyJob pJob, IBackgroundCopyError pError,
Exception ex)
at
Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloader.WaitForDownlo
ad(UpdaterTask task, IBackgroundCopyJob backgroundCopyJob, TimeSpan
maxWaitTime)
at
Microsoft.ApplicationBlocks.Updater.Downloaders.BitsDownloader.Download(Upda
terTask task, TimeSpan maxWaitTime)