Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM Objects

Status
Not open for further replies.

turns20

Programmer
Oct 16, 2003
9
AU
Hi,
I have just taken over responsibility for mainting a website that somebody else built and it has recently been moved to a new server. One of my ASP pages calls some dll files as COM objects eg.

set objCategory=server.CreateObject ("IKMS_Category.Category")

I have registered these dll files on the new server and moved them in to the c:\WINNT\System32\inetsrv directory but my ASP page the calls them is still failing.

Any ideas? I also do not have the source code for the dll files.

 
You shouldn't have to move them to c:\WINNT\System32\inetsrv ... registering them should be enough.

Are you sure that IKMS_Category.Category is correct? You can check in the registry to see what it was registered under.
 
do u have IIS? then use the microsoft transaction manager, though as thunder said, registering them ought to do it...

Known is handfull, Unknown is worldfull
 
hi turns20,
I think u have to check for the IIS server's web user or directory security permissions.I might some problem in web sharing of c:\WINNT\System32\inetsrv .
 
Thanks to everyone for their responses.
Will check the security permissions.
Thanks again all.
 
Thanks to everyone again, i have checked permissions and i am now getting the following error message - any ideas?

IKMS_Start error '800a005b'

Object variable or With block variable not set

//global.asa, line 21

The object variable has been declared, that doesnt seem to be the problem. Any ideas much appreciated.
 
can i have the code for that line and the code for the objects involved in that line?

Known is handfull, Unknown is worldfull
 
Hi,
The code is below, the object it is referring to IKMS_Start.dll i no longer have the source code for. But this site was working on a previous server 2 weeks ago, our junior network girl moved it onto a new web server and it hasnt worked since, so i dont think there is a problem in the dll but i can not be sure. Thanks for your time.

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Session_OnStart


Session.Timeout = 60
' Set a Session Start Time
' This is only important to assure we start a session
Session(&quot;Start&quot;) = Now
' Increase the active visitors count when we start the session

Application.Lock
Application(&quot;ActiveUsers&quot;) = Application(&quot;ActiveUsers&quot;) + 1
Application.UnLock

'on error resume next

set objStart=server.CreateObject(&quot;IKMS_Start.Start&quot;)
objStart.ProcessStart
set objStart=nothing

set objMember=server.CreateObject(&quot;IKMS_Member.Member&quot;)
objMember.AutoAuthenticate
set objMember=nothing
if err.number<>0 then Response.Redirect &quot;/sorry.asp&quot;
 
Also, how do i access the microsoft transaction manager through iis?
 
first of all u say the server was changed, does ur new server have the DLL file?

as for MTS what OS do u have?

Known is handfull, Unknown is worldfull
 
The problem could be the code objStart.ProcessStart

This error may have been caused if you are trying to access an object through the DLL which cannot be created with a web request...

Say if you have created a PicutreBox Control in your DLL code.When you access the DLL through ASP this control cannot be created...
I am not sure why and if this is wrong somebody please justify....


 
Hi, thanks for the responses.
Firstly, yes, the new server has all the dll files required and they are in the registry.
The OS is Microsoft Server 2000.
Thanks again
 
then lets have a plain test.asp that tests only ur object:
<%
'create the object
set objCategory=server.CreateObject (&quot;IKMS_Category.Category&quot;)
%>

does this page throw any error?

as for MTS:
in IIS itself there must be an MTS (below ur server directories)...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top