Solved

Automation Error in ASP

Posted on 2004-09-06
6
801 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month7 days, 11 hours left to enroll

632 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