Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Automation Error in ASP

Posted on 2004-09-06
6
Medium Priority
?
811 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 250 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Suggested Courses

721 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