Home             Free Software             Software Support             Training             Conferences                    

  Stonebroom.RegEx Technical Support

The product support pages contain information about the topics which arise most frequently. If you need more help or wish to report a problem with RegEx or any of our other products please mail us directly at support@stonebroom.com. You can also use the contact details on the home page to submit comments, suggestions, or technical queries.

Using RegEx under the .NET Framework.

The RegEx component is not specifically designed for use under the Microsoft .NET Framework. It is a standard COM DLL, and so will require you to run any managed code application or ASP.NET page that uses it in "compatibility" mode (i.e. include AspCompat="true" in the <%@Page ... %> directive). Alternatively you can use the .NET TLBIMP utility to create a managed code wrapper for the component. However, please note that we cannot provide support for issues that arise in conjunction with using the component within a .NET application.

Checking the component version number.

If you are having problems with RegEx, you should check the component version number and include this with your inquiry. The component file is stnregex.dll, which is installed by default in your Winnt\System32 folder. To check which version you have installed:

  • Open the Winnt\System32 folder and select the file stnregex.dll.
  • Right-click on it, select Properties, and open the Version page.
  • The version number is shown at the top of this page, in the format xx.xxxx

Registry Access Permissions.

In Windows NT/2000, the individual subkeys in the Registry can have Permissions allocated to them, controlling which accounts can access each subkey and what actions they can take (i.e. Read, Write, Enumerate Subkeys, Create Subkey, etc.). The GetRegValue and SetRegValue methods do not provide any security information when attempting to access the Registry, and so should be avoided in Windows NT/2000. Instead, use the extended methods GetRegValueEx and SetRegValueEx.

The GetRegValueEx method attempts to open the subkey for READ access only, so will succeed when the subkey has Read and Enumerate Subkeys permissions set for the account under which the component or ASP page is running. The SetRegValueEx method attempts to open the subkey for ALL ACCESS, and so will only succeed if the account has Read, Write, Enumerate Subkeys and Create Subkey permissions set for this subkey.

I can't replace or delete the RegEx DLL file.

Windows NT and the Web server cache the components they use in memory, and lock them so that they cannot be moved or deleted while in use. In some cases stopping and restarting the Web server may release the component. Otherwise restarting Windows or rebooting the server will do the trick. To avoid this problem, if you are using Internet Information Server 4 or higher, you can create Virtual Applications and place all your ASP pages that use the component inside this folder. It's then possible to unload the component from memory using the Properties dialog of the Virtual Application folder in Internet Service Manager.

How do I view the documentation from a remote machine?

The documentation and sample pages for RegEx are found in the directory where you installed the component. By default this is C:\Program Files\Stonebroom\RegEx. To make these files available through the Web server so that you can view them from another machine, you can either copy them into a directory underneath your WWWRoot directory, or create a virtual root (or Alias) that points to the directory containing the files. Make sure that you specify 'Script Executable' permission for the directory. If you only want to view the HTML documentation pages you don't need to specify Executable permission for the directory.

Runtime error 800a01ad 'ActiveX component can't create object'.

This general error message can be caused by many things. To cure it, try the following:

  • Make sure you are using Server.CreateObject() in VBScript in ASP pages. CreateObject() alone should only be used in Visual Basic.
  • If you are running the object in a separate process in IIS4, it may be that MTS has become confused and is holding an invalid object pointer. Try unloading the object using the Properties dialog of the virtual application directory. Otherwise reboot the server.
  • Alternatively, it might be that the DLL has been moved or deleted, or that for some reason the registered information is wrong. Re-register the DLL (probably in Winnt\System32) using the RegSvr32 utility:

    regsvr32 path_to_dll\stnregex.dll

Finally, if you've got any suggestions - or any comments on RegEx generally - we'd love to hear from you.

Home | Free utilities | Software support | Training | Conferences | Contact
  ©2013 Stonebroom Limited, England