Solved

error '80070002' when calling dotNet DLL

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Data Saving(2) 2 41
Interview questions for support of a legacy ASP.NET site 4 39
Angular - break the dataset in chunks? 7 39
Windows Media Player 2 14
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now