Quicklinks
Most probably, you don't have administrative privileges on the machine where you install the product. You must have local administrator rights to install ActiveSocket on the computer.
This is not a problem of the toolkit itself, but has something to do with security settings on Windows 7, Windows Vista, Windows 2008 and higher.
Please try the following:
When starting the command prompt, start it from the start menu by locating the "Command Prompt" in the start menu, now right click on this item and select "Run as Administrator". When you try to register the component from the command prompt it should work okay.
You can also try to turn of UAC (User Account Control)
Yes it can. To install the ActiveSocket COM component on another machine, simply copy the ASocket.dll (or ASocketX64.dll) to another machine and issue the following command from the command prompt:
REGSVR32 <destination-path>\Asocket.dll
Yes, you can use REGSVR32 to register the 64-bit component (ASocketX64.dll), e.g.:
REGSVR32 ASocketX64.dll
You can also register the 32-bit component (ASocket.dll) on a 64-bit system in the same way, e.g.:
REGSVR32 ASocket.dll
To make use of the 64-bit DLL, you should use a 64-bit application or 64-bit interpreter, e.g.:
CSCRIPT.EXE Icmp.vbs
You are right: you cannot install the product in an existing directory.
Upon un-installation, the original directory (default: C:\Program Files\ActiveXperts\ActiveSocket) is NOT deleted in case there are files created/modified after the previous installation. You must delete these files/directories manually.
Once the directory (C:\Program Files\ActiveXperts\ActiveSocket) is deleted, you can re-install it in that directory.
In previous versions of the product, it was possible to install in an existing directory, but this often lead to interference with previous installations.
If you used the regular ActiveSocket Setup program to install the software, you can simple uninstall the software by using the 'Add/Remove' applet in the control panel.
If you copied the ASOCKET.DLL file manually to your system and registered manually, you should first de-register the component by running REGSVR32 -u ASOCKET.DLL, and then delete the ASOCKET.DLL file.
You can do it in the following way:
Issue the following command from the command prompt:
REGSVR32 -u <path>\ASocket.dll
No, it only installs an ActiveX component that uses files of the Operating System.
You can find the ActiveSocket Release Notes here.
Yes you can. There's a demo included in the sample directory. You need VC++ 6.x or higher. All of the ActiveSocket logic is put together in the 'ASocketDemoDlg.cpp' file. Most important, the files ASocket.h and ASocket_i.c must be included in your sourcefile, because these file include the ISocket interface and the Socket CLSID.
In the 'New' dialog, start the MFC AppWizard. When you are asked for compound document support, select 'Container', and choose for 'Automation' support. Don't forget to include ASocket.h and ASocket_i.c.
Wake up on LAN (WOL) means that you can power on a computer by sending a sequence of packets over the network to that specific NIC card. Three conditions must be met:
Yes. You should use the SendBytes method to transmit the bytes to the remote party.
Yes, ActiveSocket is 100% thread-safe. It can be used by multiple applications simultaneously, and each individual application can have multiple simultaneous threads using ActiveSocket. This applies to all ActiveSocket object, i.e. the Icmp object, the Http object, the Ssh object, etc..
There are basically two ways to avoid prompting:
You should call ReceiveBytes to get a stream of binary data.
HTTP versions 1.0 and 1.1 are supported by the component. The 0.9 version of the protocol is not supported. In version 0.9 of the HTTP protocol, responses without an HTTP header are allowed.
Yes this is possible. Just set the 'UsePost' property to TRUE, and fill the 'PostData' property with the data you want to send. You could also have a look at the Manual, HTTP-POST section.
The following security protocols are supported using HTTPS: SSL2.0, SSL3.0 and TLS1.0 including support for client certificates.
The following authentications schemes are supported:
You can use the 'LogFile' property of the Http object, to enable ActiveSocket's trace option.
If you need further logging, you can enable the logging option of the WinHTTP library of the OS. You can do this by using the 'winhttptracecfg.exe' resource utility:
WINHTTPTRACECFG.EXE -e 1 - l c:\temp\winhttptrace.log
No, the Http object makes use of the WINHTTP libraries which do not support these settings. You have to specifiy the setting either manually using the 'ProxyServer', 'ProxyAccount' or 'ProxyPassword' or using the 'proxycfg.exe' system tool.
You can specify the port number directly after the hostname of the proxy server in the 'ProxyServer' property like this: proxy.introweb.nl:3128.
Please read the following document: www.activexperts.com/network-component/tutorials/httpheaders.
ActiveSocket uses an IP to Country database. This database is stored as a data segment inside the ActiveSocket core component: Asocket.dll. This database doesn't change frequently. Read FAQ #1280040 to learn how to make use of the latest IP-to-Country database.
The accuracy is over 95%. The inaccuracy is due to dynamic IP address allocation by large ISPs such as AOL and MSN TV. It is also due to the use of proxy servers.
The IP-to-Country database is stored as a data segment inside the ActiveSocket core component: Asocket.dll. The IP-to-Country data doesn't change often. However, to make sure you make use of the latest IP-to-Country database, you can download ActiveSocket's core component (Asocket.dll) at any time to make sure that the IP-to-Country data is up-to-date. You can download Asocket.dll directly from here: www.activexperts.com/files/network-component/asocket.dll.
There's a list of valid country codes and country names in a CSV file on the ActiveXperts Support Site:
www.activexperts.com/support/network-component/iptocountry/countries.csv
Most probably, RSH is not configured properly on the remote UNIX machine. Be sure to setup your .rhosts file correctly on your UNIX server.
The .rhosts file typically permits network access on UNIX/LINUX systems. The .rhosts file lists computer names and associated logon names that have access to remote computers. When you run rcp, rexec, or rsh commands remotely with a correctly configured .rhosts file, you do not need to provide logon and password information for the remote computer. The .rhosts file is a text file in which each line is an entry. An entry consists of the local computer name, the local user name, and any comments about the entry. Each entry is separated by a tab or space, and comments begin with a pound sign (#). For example:
host7 #This computer is in room 31A
The .rhosts file must be in the user's home directory on the remote computer. For more information about the specific implementation of the .rhosts file on a remote computer, see the remote system documentation.
When troubleshooitingb RSH, also try the Windows built-in RSH client command utility to test if the RSH configuration is working fine.
ActiveSocket requires an SNMP Agent running on your local computer. By default, SNMP is not installed on a Windows platform. This applies to all major Windows platforms, i.e. Windows XP, Windows 2000, Windows 2003 and Windows 2008.
To install the SNMP agent on a Windows XP/2000/2003/2008 platform, please do the following:
On Windows XP SP2 and Windows 2003 stations, you must configure the SNMP Agent service after installation of the SNMP Agent service.
On Windows 2003, you need to configure the SNMP service before you can actually use it. You can configure the service in the following way:
ActiveXperts doesn't deliver simulation software. However, there are some good SNMP simulation software products available. A recommended product is AdventNet Simulation Toolkit. For details, click here.
First of all, SET operation must be performed on an OID that is READWRITE, otherwise it won't work. In general, most SNMP OID's are READ ONLY.
Second, make sure that your SNMP Service has write permission on the community. By default, your SNMP Service it is NOT configured like that! Configure your SNMP Service as shown here in order to allow SNMP Set operations.
Yes this is possible. In SNMP V1, there is an extra field in the SNMP PDU, in SNMP V2, the generic trap is represented by an OID. You only have to set the 'GenericTrap' property of the SnmpTrap object as demonstrated in the code snippet below:
Option Explicit ' Declare objects Dim objSnmpTrapManager, objSnmpTrap, objSnmpConstants, objSnmpObject ' Create object Set objSnmpTrapManager = CreateObject ( "ActiveXperts.SnmpTrapManager" ) Set objSnmpTrap = CreateObject ( "ActiveXperts.SnmpTrap" ) Set objSnmpObject = CreateObject ( "ActiveXperts.SnmpObject" ) Set objSnmpConstants = CreateObject ( "ActiveXperts.ASConstants" ) ' Start manager objSnmpTrapManager.Initialize objSnmpTrapManager.ProtocolVersion = objSnmpConstants.asSNMP_VERSION_V2C ' Set trap properties objSnmpTrap.Clear() objSnmpTrap.Host = "192.168.31.98" objSnmpTrap.Community = "public" objSnmpTrap.GenericTrap = objSnmpConstants.asSNMP_TRAP_LINKUP ' Send the trap objSnmpTrapManager.Send objSnmpTrap ' Shutdown the manager objSnmpTrapManager.Shutdown
The following Windows service must run: 'SNMP Trap Service'. This service is available on a default Windows installation. The SNMP Trap Service can be installed by installing the 'SNMP Agent' (described in FAQ #1200010).
Please note that the startup-type of this service is set to 'Manual' by default, so it is not started automatically!
No; this service is only required to receive SNMP traps.
Yes, it can be done. You only have to modify two registry entries.
Start the registry editor and look for the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ASTrpSvc
In this key, you can change the value of the Description and DisplayName. Do not change any of the other values. After modifying this values you have to restart your PC.
This can happen when the command started is a background process which keeps current stdout or stderr open. The solution is to redirect stdout and stderr. Click here for more information.
The other possibility is that you are running a version of OpenSSH which is older than 4.9. These versions contain a bug which causes it to never close sessions for root users. More information in the release notes for version 4.9 under (bz#926).
The SSH component needs read/write access to a temporary folder. There will be three temp files written to it, indicated by the following three undocumented properties:
Make sure that the anonymous ASP user has read/write access to the directory where the files will be written. You can even change the paths for the above three properties and assign different file locations.
It is not possible through ActiveSocket. ActiveSocket makes use of the IP layers of the Operating System. Connection time-out properties can be modified, but only system-wide, by changing the local system registry through the following registry hive:
'HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters'
For instance, set the 'TcpMaxConnectRetransmissions' entry to change the number of connection retries.
Please read the following document: Using ActiveSocket with Visual Basic 5.x/6.x. This document describes how to refer to the ActiveSocket library, and how to declare, create and use the objects.
Please read the following document: Using ActiveSocket with VBScript. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
The problem is, that you must refer to the object before you can declare and create it. Go to the 'Project' menu, choose 'References...' and put the checkbox near 'ActiveSocket Type Library'.
You haven't installed and registered the ActiveSocket ActiveX component. This component can be installed and registered automatically by running the ActiveSocket installation, or can be downloaded from our website and registered manually by running the command:
REGSVR32 ASOCKET.DLL
This is due to the fact that Windows uses the 64bit VBScript interpreter (C:\WINDOWS\SYSTEM32\CSCRIPT.EXE or C:\WINDOWS\SYSTEM32\WSCRIPT.EXE) by default. Since the ActiveSocket control is a 32bit control, you should invoke the WOW64 subsystem. This means C:\WINDOWS\SYSTEM32\WOW64\CSCRIPT.EXE or C:\WINDOWS\SYSTEM32\WOW64\WSCRIPT.EXE.
Please read the following document: Using ActiveSocket Toolkit with HTML. This document describes how to refer to the ActiveSocket library, and how to declare, create and use the objects.
Yes it is possible. There is an online sample that shows how to use the component inside an HTML page.
In this sample, the ActiveSocket ActiveX component is downloaded and installed automatically from the following location: www.activexperts.com/files/network-component/acomport.dll. You get prompted to trust the activexperts.com site. You can customize this HTML sample, and let the ActiveX source point to another location by changing the 'codebase' reference inside this HTML file.
To avoid prompting, please read article FAQ Article 1380025.
There are basically three ways to avoid prompting:
Please read the following article: How to digitally sign an ActiveXperts software component.
Please read the following document: Using ActiveSocket Toolkit with Visual C++. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the object.
In the 'New' dialog, start the MFC AppWizard. When you are asked for compound document support, select 'Container', and choose for 'Automation' support. Don't forget to include ASocket.h and ASocket_i.c (see manual).
Yes you can. Visual Studio .NET supports Visual C++ projects. When you open a Visual C++ project for the first time, Visual Studio .NET will first convert the project to the current project format. After conversion, you'll be able to use the project.
NOTE: Visual Studio Express Edition does NOT support Visual C++ MFC projects. See also FAQ#Q1420040.
No you can't. Microsoft Visual Studio Express Edition is a free, lightweight and easy-to-use tool, and has no support for Visual C++ MFC projects. You can however use it to build one of the console applications shipped with the product.
ActiveSocket Toolkit is compatible with .NET Framework 1.0, 1.1, 2.0, 3.5 and 4.0. The .NET samples are created with Visual Studio 2005, and can be used with Visual Studio 2002, 2003, 2005, 2008 and 2010.
Please read the following document: Using ActiveSocket Toolkit with Visual Basic .NET. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
Please read the following document: Using ActiveSocket Toolkit with Visual C# .NET. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
Yes, the ActiveSocket component can be used in .NET development environments like Visual C# .NET, Visual Basic .NET and ASP .NET. During installation, samples for Visual Basic .NET and Visual C# .NET are installed (together with samples for VBScript, Visual C++, Visual Basic and ASP).
You haven't installed and registered the ActiveSocket ActiveX component properly. This component can be installed and registered automatically by running the ActiveSocket installation, or can be downloaded from our website and registered manually by running the command:
REGSVR32 ASOCKET.DLL
ActiveSocket Toolkit is compatible with .NET Framework 1.1, 2.0, 3.5 and 4.0. The .NET samples are created with Visual Studio 2005, and can be used with Visual Studio 2003, 2005, 2008 and 2010.
Users of ASP .NET (Visual Basic) should read the following document: Using ActiveSocket Toolkit with ASP .NET (VB). This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
Users of ASP .NET (C#) should read the following document: Using ActiveSocket Toolkit with ASP .NET (VB)
You need to setup IIS first to be able to use the ASP .NET samples. This applies to both the ASP .Net VB samples as well as the ASP .NET C# samples:
Please read the following document: Using ActiveSocket Toolkit with ASP. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
Please read the following document: Using ActiveSocket Toolkit with Borland Delphi. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
Please read the following document: Using ActiveSocket Toolkit with PHP. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
Please read the following document: Using ActiveSocket Toolkit with ColdFusion. This document describes how to refer to the ActiveSocket Toolkit library, and how to declare, create and use the objects.
The problem is, that you must refer to the object before you can declare and create it. Go to the 'Project' menu, choose 'References...' and put the checkbox near 'ActiveSocket Type Library'.
You haven't installed and registered the ActiveSocket ActiveX component. This component can be installed and registered automatically by running the ActiveSocket installation, or can be downloaded from our website and registered manually by running the following command:
REGSVR32 ASOCKET.DLL
You haven't installed and registered the ActiveSocket ActiveX component. This component can be installed and registered automatically by running the ActiveSocket installation, or can be downloaded fron our website and registered manually by running the following command:
REGSVR32 ASOCKET.DLL
To learn about the different license options for ActiveSocket, click here.
After 30 days of evaluation, you won't be able to call the Connect method anymore. If you call this function, nothing happens and LastError will be set.
The 'Distribution License' allows you to 'bundle' the toolkit with your own software. It allows you to ship the product to an unlimited number of customers for an unlimited period of time.
There are no restrictions in functionality of the software, and includes multiline send and receive.
Click here for more information about the ActiveSocket Licensing Scheme.
Once you have obtained a Distribution License, you receive a key that you can use on the target computers. Click here to read more about how to distribute this key with the core product DLL on the target computers.
Once you have obtained a Distribution License, you receive a key that you can use on the target computers. Click here to read more about how to distribute this key with the core product DLL on the target computers.
ActiveXperts' Maintenance Agreement entitles customers to use ActiveXperts' technical support services, and to receive all product upgrades, free of charge, during a specified Agreement duration.
The Maintenance Agreement applies to all ActiveXperts products.
After purchase, you get 1 year Maintenance for free
After this free Maintenance period, Licensee may purchase Maintenance. The price for the Maintenance Agreement is 15% of the price that was paid for the product.
Read our Maintenance Agreement in PDF format.
For detailed sales information, check the Sales webpage.
There are three ways to activate the product:
A detailed description is provided in the manual, in chapter 'Purchase and Product Activation'.
During the first (1) year after purchase, Maintenance is free. After this free Maintenance year, Licensee may purchase Maintenance. The price for the Maintenance Agreement is 15% of the price that was paid for the product.
Customers choose between one-, two- and three years Maintenance Agreement renewal. Please read the Maintenance Agreement document for more details.
Renewals that come in after the maintenance has expired will be backdated to start from the old expiry date. Also, you are only able to get Technical Support and Software Maintenance when your support contract is valid.
No, we do not ship or sell the sourcecode of our products.The only sourcecode that is included with our products, are the code samples shipped with toolkits or API’s.