tags:

views:

8

answers:

0

Hi,

I am developing a ASP.NET website to download a file in Response. The file download needs to add headers like Last-Modified, ETag on top Content-Type,Content-Length headers. The client would use BITS to download the file.I am testing it on my machine which has the website and the client tool.When I include the Last-Modified header with value as DateTime.Now.ToString("r") the BITS client fails. It cannot download the file and it says transient error the server is not configured correctly. But if I remove the header the BITS client works well and I am able to download the file. Is this header not supported with BITS ?

Thanks Irene Daniel