Solved

Automation Error in ASP

Posted on 2004-09-06
6
776 Views
Last Modified: 2012-05-05
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!


0
Comment
Question by:rsp05
6 Comments
 
LVL 5

Expert Comment

by:KarcOrigin
Comment Utility
R U sure that your project name is Project1.class1 and is registered on the IIS server?
0
 
LVL 14

Expert Comment

by:aelatik
Comment Utility
Is your DLL Referencing to other DLL's or filesystem ? If so you need to set the security for them too
0
 
LVL 7

Accepted Solution

by:
vnvk earned 125 total points
Comment Utility
Try registering the DLL in a COM serrver and check it. One possible error might be, a recurring error for many, spelling mistakes. Check out the spell of all the req objects
0
 

Author Comment

by:rsp05
Comment Utility
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.
0
 

Author Comment

by:rsp05
Comment Utility
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
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now