?
Solved

error '80070002' when calling dotNet DLL

Posted on 2007-04-02
2
Medium Priority
?
1,315 Views
Last Modified: 2012-08-13
Hi all.

Im receiving a very strange, un informative and very ****** annoying error message when i try to create an instance of a .net DLL from an asp page.  Here is the code i use:

Dim objThumbGen
Set objThumbGen = Server.Createobject("DigiThumbGen.CThumbGenerator")      ---> LINE 312

objThumbGen.ExecuteThumbGen Session("JobId"), Session("templateId"), qryView, appPath, tlgConn, dpConn, outputBase, relativePath, log, defaultImage
set objThumbGen = nothing

the strange thing is that i have 2 virtual directories pointing to the same folder, and if i run the page from one VD then its fine, however if i run it from the other i get this:

error '80070002'
/guildonline/digitalprint/TemplateOptions.asp, line 312

if i restart IIS on the server it works once, then it gives me this error again!?!

Does anyone have any suggestions?

Thanks

Apresto

FYI:   DLL Language C#, Classic ASP Page
0
Comment
Question by:apresto
2 Comments
 
LVL 41

Accepted Solution

by:
graye earned 1000 total points
ID: 18837285
Tell us more about how the DLL was written...

As you probably already know, "classic" ASP using the COM interface to a .Net assembly.   So, that means that the author of the DLL has to specifically prepare the assembly so that it can be called via a COM interface.
0
 
LVL 12

Assisted Solution

by:ShazbotOK
ShazbotOK earned 1000 total points
ID: 18838362
That error message can be common to IIS not setting the VD up properly... try going to the properties of the VD that is you "Problem Child" and select the "Remove" button for the "Application Name" section.

Now the button is "Create" hit it again and the application name field should be repopulated.

Try your app again after a IIS Reset.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Integration Management Part 2
Suggested Courses

830 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