PDA

Click to See Complete Forum and Search --> : ASP and IIS 5


Randhart
Feb 1st, 2001, 03:06 AM
Hey there

I'm in the process of testing my site to move it to a IIS 5 machine running Windows 2000 Professional sp1.

On the IIS4 NT4 SP6 machine it works fine, but as soon as I try it on the IIS5 I get a error:

Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object
/index.asp, line 66

This line of code that gives the problem:

(66)Set oMyObject = Server.CreateObject("Web_Login.clsHeadline")
(67) varReturn = oMyObject.Get_Rates()
(68) if varReturn = True then
(69) Response.Write "<b>$</b></td><td> " & oMyObject.Dollar & "<br></td><tr><td>"

If anyone can help .. please!

Thanks

Feb 1st, 2001, 03:45 AM
It sounds like that a (custom) component you had on your NT 4 machine is not registered on your IIS5 machine. The component resides in some DLL that is not present or not registered at your new machine.

How to solve this:

Open the registry and do a search for "Web_Login.clsHeadline" (without the quotes)

Under the key InprocServer32 you will find the location of the DLL.
Copy the DLL to your new machine, and then register it by typing
regsvr32 yourDllName.dll
at the command prompt in the directory where your DLL resides.

Now the component is registered and should work like it used to do.

HtH

Imar

Randhart
Feb 1st, 2001, 06:05 AM
Hi there

Yes you are right about the custom DLL but it's registered on the Win2K machine but it still doesn't want to work ,, any other idea's

Thanks anyway

tonyenkiducx
Feb 1st, 2001, 08:25 AM
Take your components source, and recompile it using VB under 2000, sounds silly, but it will tell you if theres any problems with your code running under 2K.

Randhart
Feb 1st, 2001, 02:54 PM
Hey there

I did that as-well but no joy!!

Cheers