473,791 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("WinN T://" & strMachine & "/LanmanServer")

if (fs.class = "FileServic e") Then
For Each share In fs
msgbox(share.na me)
Next share
End If

fs = Nothing
share = Nothing

Nov 21 '05 #1
0 1691

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

Similar topics

0
1096
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 working in the server machine,but in different m/c i registered this using regsvr32.exe and the object browser shows the functions in the activex exe project,but while running the project using creates object methods or calling the dll the program...
3
2774
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
1629
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 configuration (All the most up to date versions except for Visual C++): Windows XP (Home Edition).
1
1627
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 configuration (All the most up to date versions except for Visual C++): Windows XP (Home Edition).
4
3245
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 = moWorkBook.Worksheets(liSheetNum) moSheet.Delete() moSheet = moWorkBook.Worksheets(liSheetNum) moSheet.Delete()
1
14770
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 error in the DEV environment (Application deployed in the linux box). Following is the javascript code to detect the processor, function detectProcessor() { var locator = new ActiveXObject
1
6396
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, on a couple of servers, one is Windows 2000 and then other Windows 2003, if the server is restarted then when the web service tries to access the dll, it reports the following error: 'Creating an instance of the COM component with CLSID {...}...
1
1739
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. Please, guide me in the Installing and creating the Depending files of the MS Excel. Thanks ----------- S.N.Mahesh
1
4210
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 old class library and registered the new .net dll using regasm using /codebase and registered the dll in the GAC. I can access the dll using a vbscript that just does this: dim o set o = createobject( "DataAccess_NET.DataAccess" ) Wscript.Echo...
0
9669
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10154
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5430
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3713
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2913
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.