Register DLL - Register Your DLL with the OS
There is some information regarding registering a dll with the OS in the archive but I find it is incomplete. The information here can be found on the web, albeit with some trouble and the ability to do some major filtering.
The use of regsvr32 is found easily enough, but the error message that follows when the dll is called by IIS is a big headache. The oddity is that in a development environment you have all your servers running under the user Administrator. IIS is not! Hence the cacls line in the BAT or CMD file.
regsvr32 /u "E:\ECommerce\ECommerce6.dll"
regsvr32 "E:\ECommerce\ECommerce6.dll"
echo y|cacls E:\AmsCommerce\*.* /T /G Everyone:F
The above assumes that your dll file is called ECommerce6.dll and the Location of the file is E:\Ecommerce. Both values can be different and something completely different.
The cacls is a useful tool. Check the web for some of the good reviews of it. The âaclâ in the name stands for âaccess control listâ.
|