|Home||Free Software||Software Support||Training||Conferences|
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:
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
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: