473,322 Members | 1,719 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,322 software developers and data experts.

Trying to get share list. Error 429 Cannot create activex component

Hi There,

I'm trying to get a listing of shares from a server. The server is a
linux box running samba and LDAP for directory services (just for
background info!)

I have some code which I copied out of the MSDN library which is
supposed to get a list of available shares from a windows server.

However when I try to access the server with this code, I get the
following error > Error 429 'Cannot create ActiveX component'. If I try
to access another client machine on the network (running WinXP) it
works, it also works if I reference my local computer name (WinXP).

Can someone shed some light on why this might be happening and if they
know a work around? I 'think' it might have something to do with the
Lanmanserver part of the code, but I don't quiet understand why...

Thanks for your help,

Andrew

Dim fs As IADsFileService
Dim share As IADsFileShare
Dim strMachine As String

strMachine = "server"
fs = GetObject("WinNT://" & strMachine & "/LanmanServer")

if (fs.class = "FileService") Then
For Each share In fs
msgbox(share.name)
Next share
End If

fs = Nothing
share = Nothing

Nov 21 '05 #1
0 1655

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

Similar topics

0
by: jinu | last post by:
created a dll file which contains some vb6 functions using vb6 in 2000 server operating system,while calling the dll from another vb activex exe project using create object method the dll is...
3
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
1
by: John Gabriel | last post by:
I have set up a website and am testing ASPs. I have created a very simple ActiveX component with two interfaces: AboutBox() - displays About details calcpi() - returns 3.14159 Here is my...
1
by: John Gabriel | last post by:
I have set up a website and am testing ASPs. I have created a very simple ActiveX component with two interfaces: AboutBox() - displays About details calcpi() - returns 3.14159 Here is my...
4
by: Patrick | last post by:
I have a middle tier object that generates Excel spreadsheet here is the code moExcel = CreateObject("Excel.Application") moWorkBook = moExcel.Workbooks.Add moSheet =...
1
by: drk.kumar | last post by:
I have an implementation issue with WMI scripts to check the user machine processor. The implementation is working fine in the local machine (Windows XP operating system). It is throwing script...
1
by: Mike | last post by:
I have an ASP.NET 2.0 web service that runs on IIS and calls a VB6 dll which has been registered with COM+. The web service runs fine on all the servers that it has been installed on. However,...
1
by: mahesh123 | last post by:
Hi Folks, I am getting an Error "Activex Component Cannot Create Object" While I am exporting the Data from the MSFlexgrid to the MS Excel. Here In my Client System MSOffice is not Installed....
1
by: jdub33 | last post by:
I have a web project that used a vb6 class library. The asp page would call a createobject() to access the class library. I recently updated the vb6 class library to .net2005. I unregistered the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.