Link to home
Start Free TrialLog in
Avatar of rsp05
rsp05

asked on

Automation Error in ASP

hello:

      I tried to write a simple ActiveX.dll, and call it from ASP.  All my security setting appear ok.  In the ASP I simply reference:

<%
Dim iShell
'stop
Set ishell = Server.CreateObject("Project1.class1")

 %>
 
       <img border="0" src="images/image5.bmp">

When I hit the page, I get this error:
Error Type:
Project1 (0x800A01B8)
Automation error
/chart1.asp, line 12

I also sometimes get:
Error Type:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object


I've tried many things, but can't get it to work, either by registering the .dll or simply running the vb app.  Please help!


Avatar of KarcOrigin
KarcOrigin

R U sure that your project name is Project1.class1 and is registered on the IIS server?
Avatar of aelatik
Is your DLL Referencing to other DLL's or filesystem ? If so you need to set the security for them too
ASKER CERTIFIED SOLUTION
Avatar of vnvk
vnvk
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rsp05

ASKER

thx, all for responses.  Yes it is Project1.class1.  I used this one initially to experiment.  I used regsvr32 to register dll.
How do I register in IIS? If I needed to deploy package, can I have it automatically register it as a COM component?

I will try check some of your responses, and see if they help, and come back to post results.
Avatar of rsp05

ASKER

OK, I seem to have gotten past the ActiveX error.  Now I have another problem that I need some advice.  Since the class connect to a database, it gives me a permission error.

Only when I make IIS log in as a domain acct, it works, but this is probably not recommended, and how would I go about giving it permission to log in to db server from ASP w/o changing the IIS service account.  I would this info for distributing an application.  Thx, again