Solved

error '80070002' when calling dotNet DLL

Posted on 2007-04-02
2
1,308 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 250 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 250 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET - Why is accordion not working? 3 49
ASP get fieds value 2 22
Securing WEBAPI on Azure 2 27
JS to redirect to prev page 8 24
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 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