microsoft-bits

BITS An error occurred in the secure channel support

浪子不回头ぞ 提交于 2020-06-29 04:30:47
问题 We have a small application that we distribute together with our software to offer updates whenever a new application is ready. The C# .Net 4.6.1 application uses the BITS COM Interop distributed with Windows to download these updates from Azure CDN upon user request. We have discovered an issue that only seems to happen on Windows 7 (SP1 fully updated) where bits return the following: Error code: -2147012739 ErrorDescription: An error occurred in the secure channel support ErrorContext: BG

Downloading large files in Windows command prompt / PowerShell

守給你的承諾、 提交于 2020-02-02 02:41:27
问题 I'm kind of running out of options now... Attempt 1 Use iwr in Powershell. It works, shows progress but its 10X slower and doesn't flush until while file is in memory :(. powershell -command "& { iwr https://github.com/mitchellspryn/AirsimHighPolySuv/releases/download/V1.0.0/SUV.zip -OutFile SUV.zip }" Attempt 2 Use .Net webclient in Powershell. It works but shows no progress and you can't terminate by Ctrl+C :(. Last issue is a big setback. powershell -command "& { (New-Object System.Net

Retrieving dll version info via Win32 - VerQueryValue(…) crashes under Win7 x64

你。 提交于 2019-12-31 06:54:48
问题 The respected open source .NET wrapper implementation (SharpBITS) of Windows BITS services fails identifying the underlying BITS version under Win7 x64. Here is the source code that fails. NativeMethods are native Win32 calls wrapped by .NET methods and decorated via DllImport attribute. private static BitsVersion GetBitsVersion() { try { string fileName = Path.Combine( System.Environment.SystemDirectory, "qmgr.dll"); int handle = 0; int size = NativeMethods.GetFileVersionInfoSize(fileName,

Does .NET have a BITS module?

杀马特。学长 韩版系。学妹 提交于 2019-12-10 09:44:17
问题 I have been researching in to using Background Intelligent Transfer Service. Most articles I have seen says there is no official .NET port but they recommend using sharpBITS. I will use sharpBITS if I have to but I noticed that all of the articles are referencing .NET 1.1 and 2.0, they seem to have been written before 3.0 came out. Was BITS added to 3.0, 3.5, or expected to be in 4.0? I have tried to Google around but BITS is too common of a word in the programming world. 回答1: No, .NET 3.5

How to run script on BITS download completion

风流意气都作罢 提交于 2019-12-09 21:10:49
问题 I am trying to automate the download and installation of a large application that is several hundreds of MB to a few GB in size. I am looking into using BITS and powershell to asynchronously download the application and then launch the setup. Using the deprecated bitsadmin command there is a /SETNOTIFYCMDLINE option that would allow me to chain the execution of the setup once the download completes. How can I perform this with powershell? This will be my first powershell script, so if you

How do you set up the correct HTTP Response object for a Range request coming from BITS (Background Intelligent Transfer Service)?

╄→гoц情女王★ 提交于 2019-12-08 09:10:26
问题 I have a requirement to implement a web-service that can issue files to the bits (Background Intelligent Transfer Service). The language is ASP.NET (C#). The problem I am having is with the "range" stuff. My code currently receives the http request (with a valid range is present in the http headers of 0 - 4907), and subsequently dishes out a portion of a byte array in the response object. Here's my server code: _context.Response.Clear(); _context.Response.AddHeader("Content-Range", "bytes " +

ASP.NET Uploading files in the background (BITS/AJAX?)

泪湿孤枕 提交于 2019-12-08 05:02:37
问题 I have a webpage where users can create a database record and select a file they want to upload to the database server. these files can be big, like 100mb. I dont want the user to wait, so I want the file to be uploaded in the background. So that they can continue with doing other stuff while the file is being uploaded. Is BITS the way to go for this? Or is that only for Fatclient development? Any good tuterials ? If BITS is not the way to go, what are my options? An ajax call to a services

Is TIdHTTPServer Compatible with Microsoft BITS

谁说我不能喝 提交于 2019-12-04 11:25:15
问题 We are trying to write an update server for our software using the TIdHTTPServer component. Currently we are serving an XML file that lists the available updates and their file versions etc.., when the client program finds a updated version it should start to download it using BITS. Now this is where we have a problem, our programs are requesting the XML file and seeing there is an update available. It then creates a BITS job to download it, however BITS keeps reporting that the download

Is TIdHTTPServer Compatible with Microsoft BITS

蹲街弑〆低调 提交于 2019-12-03 07:08:33
We are trying to write an update server for our software using the TIdHTTPServer component. Currently we are serving an XML file that lists the available updates and their file versions etc.., when the client program finds a updated version it should start to download it using BITS. Now this is where we have a problem, our programs are requesting the XML file and seeing there is an update available. It then creates a BITS job to download it, however BITS keeps reporting that the download failed. We can download the file using the same URL and IE/Firefox/Chrome. so my question: Is TIdHTTPServer

Using Clickonce Deployment with Background intelligent transfer service

╄→гoц情女王★ 提交于 2019-12-02 07:13:28
问题 We are thinking about the deployment and update strategy for a fairly large framework throughout our organization. The application will be in .NET 3.5 and will run on Windows XP, Vista and Win 7 machines. I have used Clickonce few times and it works well for sure. Has anyone thought of, or have implemented the BITS feature of Windows with Clickonce. I feel the trickle upgrade approach of BITS would make the frequent framework updates pretty user friendly. Any help appreciated. 回答1: The thing