BITS Download error: The parameter is incorrect

Topics: Updater Application Block
Feb 1, 2005 at 3:08 PM
originally posted by: wsabey

Server is 2003 with latest security patches.

Downloads ok to XP SP1 and SP2 machines.

Error occurs on Win 2000 SP3, SP4 at least.

Has anyone come across this?

DownloaderManager.DownloadApplicationFiles :
Unexpected error using the IDownloader of type 'Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader'
and from assembly 'Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader, Microsoft.ApplicationBlocks.ApplicationUpdater, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' when a job was posted.
ERROR: The parameter is incorrect.
STACK: at Microsoft.ApplicationBlocks.ApplicationUpdater.IBackgroundCopyJob.AddFile(String RemoteUrl, String LocalName)
at Microsoft.ApplicationBlocks.ApplicationUpdater.Downloaders.BITSDownloader.BeginDownload(String[] sourceFile, String[] destFile)
at Microsoft.ApplicationBlocks.ApplicationUpdater.DownloaderManager.DownloadApplicationFiles()
Feb 3, 2005 at 10:51 AM
originally posted by: Brendan_F_Tompkins

Yes! I'm getting this error as well, with Win 2000 Server SP4. Any ideas?
Feb 8, 2005 at 10:51 AM
originally posted by: simonton

I was having the same error on Win 2003. Drilling down into the call stack, it said the URL was not valid.

It turns out that IIS on Win 2003 will not serve .pdb and .config files by default. You have to add these as MIME types on the folder as discussed in a previous post:

http://www.gotdotnet.com/workspaces/messageboard/thread.aspx?id=83c68646-befb-4586-ba9f-fdf1301902f5&threadid=a66c76c2-ab3a-4d41-867f-96b19884789f