473,378 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

error in Visual Basic.net

I keep getting this com error Unknown error (0x80005000) when I get to the for statement in this block of code. Anyone know how to fix it. Thanks

Dim loDirectory As DirectoryEntry
Dim loChild As DirectoryEntry
loDirectory = New DirectoryEntry("D:\Unread Tracks"
For Each loChild In loDirectory.Children
Next loChild
Nov 20 '05 #1
2 1061
Hi,

DirectoryEntry is for active directory. I think you are looking for
DirectoryInfo class.

http://msdn.microsoft.com/library/de...classtopic.asp
Ken
--------------

"bbdobuddy" <bb*******@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.com:
I keep getting this com error Unknown error (0x80005000) when I get to the
for statement in this block of code. Anyone know how to fix it. Thanks

Dim loDirectory As DirectoryEntry
Dim loChild As DirectoryEntry
loDirectory = New DirectoryEntry("D:\Unread Tracks"
For Each loChild In loDirectory.Children
Next loChild


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.1.2 - Release Date: 6/7/2004
Nov 20 '05 #2
* =?Utf-8?B?YmJkb2J1ZGR5?= <bb*******@discussions.microsoft.com> scripsit:
I keep getting this com error Unknown error (0x80005000) when I get to the for statement in this block of code. Anyone know how to fix it. Thanks

Dim loDirectory As DirectoryEntry
Dim loChild As DirectoryEntry
loDirectory = New DirectoryEntry("D:\Unread Tracks"
For Each loChild In loDirectory.Children
Next loChild


Where are you getting this error? When editing the code or when running
the code? Your code won't compile...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

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

Similar topics

10
by: John | last post by:
I have a problem, it's not with any code I have because... there is no code. When I run a blank visual basic 6 form, it opens up just fine. When I add a text box, a caption, and a button... it...
1
by: Manitoba98 | last post by:
I have been having trouble with controls in VB5 every since I got XP. I am not the administrator, and thus I cannot use OCXs or DLLs (except for API Calls, which work). When I try to add a new...
0
by: Alex | last post by:
Hi, I have a problem with the VB.NET compiler: When I open my solution I recive the message : "Visual Basic .Net compiler is unable to recover from the following error : System Error...
0
by: bart de boever | last post by:
On some of our Development workstations we get the following error from the visual basic compiler: >>> Visual Basic .NET compiler is unable to recover from the following error: System Error...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
4
by: mcwooq | last post by:
Hi, I just installed the VS.Studio 2005 Team Edition for Developper and encountered severe problems with debugging ASP.NET 2.0 projects. Even newly empty created ASP 2.0 projects can't debug...
4
by: junaidnaseer | last post by:
Hi ! I am facing a problem that I have defined a function which when called in the same file generates an error as follows; " visual c error C2371 redefinition basic types see...
7
by: Mark Carrington | last post by:
I'm developing a web app in .NET 2 using C#, and occasionally see this error, apparently something to do with the theme used on the site: Compiler Error Message: The compiler failed with error...
1
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.