Solved

Automation Error in ASP

Posted on 2004-09-06
6
788 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
ID: 11993635
R U sure that your project name is Project1.class1 and is registered on the IIS server?
0
 
LVL 14

Expert Comment

by:aelatik
ID: 11993667
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
ID: 11994188
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
ID: 11994836
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
ID: 11995418
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

761 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