473,586 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Background Intelligent Transfer service (BITS) not working

Amo
Hi,
I'm a newbie in VB.Net programming and i'm trying to download files from
http using some BITS code that i'm trying out. the code looks as follows:

Dim myBits As New Manager
Dim currentJob As Job
Dim trans As Decimal
Dim btotal As Decimal

currentJob = myBits.CreateJo b("Performanc e database download")

currentJob.AddF ile("C:\Databas e\Performance.m df",
"http://www.wits.ac.za/depts/wcs/newimages/headerwits.jpg" )

currentJob.Resu meJob()

trans = currentJob.Prog ress.BytesTrans ferred
btotal = currentJob.Prog ress.BytesTotal

If currentJob.Stat e = JobState.Transf erred Then
currentJob.Comp lete()
MessageBox.Show ("Done", "Download", MessageBoxButto ns.OK,
MessageBoxIcon. Information)
End If

The job gets added to the list of jobs, but its permanently queued and
download never gets started. I am using the following files which i
downloaded off the microsoft site:

Imports BackgroundCopyM anager
Imports Microsoft.Msdn. Samples.BITS

As i said I'm new at this so I would appreciate any information as to where
i'm going wrong.

Thanks
Sep 14 '05 #1
0 1388

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1956
by: Gent | last post by:
I am trying to write a wrapper for BITS(Background Intelligent Transfer Service) to use in our VB 6 applications. At first I thought about shelling out using bitsadmin.exe utility that comes with Bits 1.5 but then I ran into the problem of not being able to send parameters (Such as transfer status) from the dos prompt back to my application...
0
2152
by: Conference Secretary | last post by:
CALL FOR PAPERS International Conference on Intelligent Agents, Web Technologies and Internet Commerce http://www.ise.canberra.edu.au/conferences/iawtic05/ Jointly with International Conference on Computational Intelligence for Modelling, Control and Automation
2
5406
by: BITS-guy | last post by:
I am successfully using BITS in my C# application. I am, however, polling for changes in the state of BITS jobs. Does anyone have any example code for receiving events for this notifications in C#???? Is this possible???? I would like to add prioritization of the jobs but I feel I can only do so well using notifications. Polling would...
5
2736
by: Paul de Goede | last post by:
I set the Response.Filter in my aspnet application but I have noticed that if you do a Server.Transfer that the filter doesn't get called. And in actual fact the response is mostly empty. It seems that only scripts get rendered. I have seen this mentioned on this newsgroup before but with no resolution. Can anyone give any insight into this...
0
335
by: Amo | last post by:
Hi, I'm a newbie in VB.Net programming and i'm trying to download files from http using some BITS code that i'm trying out. the code looks as follows: Dim myBits As New Manager Dim currentJob As Job Dim trans As Decimal Dim btotal As Decimal currentJob = myBits.CreateJob("Performance database download")
3
2599
by: Joseph Geretz | last post by:
I'm working on an file transfer gateway using WSE with DIME for file attachments. Our goal is to replace our direct file repository access (via windows network folder sharre) with the Web Service gateway for security purposes. As it stands now, all workstations have direct read-write access to the file repository share. The Web Service...
0
2597
by: UJ | last post by:
Folks, I'm using the .Net wrapper that Microsoft provides (you can download it) that is a wrapper around the BITS COM object. My question is once you have added a job to the queue, and it's been transferred and acknowledged, how do you delete the job? Also - does anybody by any chance have any code to handle the state changing of a bits...
0
3736
by: chris | last post by:
I spent hours on this so I hope it helps those that haven't found a solution elsewhere. I kept getting the message "Windows could not start the Background Intelligent Transfer Service on local computer" .......-2147024891 I tried the fixes about deleting the folder C:\Documents and Settings\All Users\Application
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.