...

View Full Version : COM Object Via ASP



charon
07-16-2002, 07:43 AM
I'm here just would like to confirm something about the Component object. When I try to install the asp component out of the Inetput/wwwroot directory, the component can't be created, does it mean that we must install the component in our web server. I so wondering, from my understanding, as long as we register our component, no matter where we put the component (.dll/.exe), it can be called via ASP.

Please advice!

glenngv
07-16-2002, 07:55 AM
you must register the component in the web server. the dll can be in any directory in the web server but it's advisable to save them in the windows system32 directory


Originally posted by charon
I'm here just would like to confirm something about the Component object. When I try to install the asp component out of the Inetput/wwwroot directory, the component can't be created, does it mean that we must install the component in our web server. I so wondering, from my understanding, as long as we register our component, no matter where we put the component (.dll/.exe), it can be called via ASP.

Please advice!

BrainJar
07-20-2002, 07:34 PM
You may want to avoid putting it either in the system directory or under the web server directories (you don't want a .dll or .exe to be accessible from the web). Most shops have specific folders set up for components built in-house. It makes it easier to find them for doing updates or making backups.

When you register it, be sure to give the full path name of the .dll, or change to the directory it is in before you run regsvr32 in the DOS prompt.

If you still can't instantiate the component from ASP, check the security access settings to make sure the id the web server runs under (usually IUSR_machinename) has access to the .dll and all directories above it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum