Groups | Blog | Home
all groups > inetserver asp components > february 2005 >

inetserver asp components : Find COM component path in ASP


Mike L
2/8/2005 8:59:09 AM
I'm currently trying to move an existing ASP site to a new server. I need to
find all of the dependant COM components and their path on the old server.
(I'm primarily concerned with custom components, not components with
additional internal dependancies so let's assume that problem doesn't exist.)


I already went through the asp code and found all the calls to CreateObject
and found the ones that fail on the new server. Now I want to know if their
is an easy way to get the file path of the component being created.

Basically I want to be able to do this:
Set obj = Server.CreateObject("objectname") 'Successfully created
path = obj.GetServerPath
response.write "objectname path: " & path

There are quite a few components and I don't have direct access to the
server so I can't just do a file search. If I know the paths I can request
them to be copied.

Thanks for any help!
Aidy
2/21/2005 9:56:20 PM
You'll have to access the registry for this info.

Under

HKEY_CLASSES_ROOT\ADODB.Recordset\CLSID

You'll see the default is something like

{00000535-0000-0010-8000-00AA006D2EA4}

Under

HKEY_CLASSES_ROOT\CLSID\{00000535-0000-0010-8000-00AA006D2EA4}\InprocServer3
2

You'll see the default is

C:\Program Files\Common Files\System\ADO\msado15.dll

[quoted text, click to view]

AddThis Social Bookmark Button