Solved

DLL's and Personal Web Server

Posted on 2000-05-08
9
165 Views
Last Modified: 2010-05-02
How can I use my own custom DLL's in my web application? I have created the DLL's from VB 6.0, and I would like to call some of there properties from my ASP's. I am using PWS and when i try to use the code

set Variable1 = Server.CreateObject ("SampleProject.SampleClass")

i get this error

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Invalid class string

What to do?
0
Comment
Question by:Maxim10553
9 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 100 total points
ID: 2789790
Have you registered the DLLs on the machine you are running PWS on?

Try a visual basic project with the same code in a command button to see if you can create the object there. (If you have VB on the same machine.)
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2789833
See:

"Inability to Create Components"
http://msdn.microsoft.com/library/psdk/bdg/bdgapp03_886r.htm

And:

"PRB: Server Object Error 'ASP 0177:80040154' Server.CreateObject"
http://support.microsoft.com/support/kb/articles/q175/8/04.asp
0
 
LVL 3

Author Comment

by:Maxim10553
ID: 2789981
yes, my DLL's are registered. I put the DLL off of c:\Inetpub\wwwroot
0
 

Expert Comment

by:biswaspradeep
ID: 2791949
If the DLL's are registered and the class string is also correct then the problem may that you have not created the tlb and vbr file along with the creation of DLL. Do this and let me know if it works......
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 3

Author Comment

by:Maxim10553
ID: 2792387
I have used DLL's before without having to create these files. I dont believe this is the solution
0
 
LVL 3

Author Comment

by:Maxim10553
ID: 2793881
Alright I am going to change the question and the first person to give me a reasonably good answer can have the points. How can other people look at my web application if I am running PWS? I have a DLL on one of the pages also. What URL do they need to type in? Will they be able to use the functions from the DLL? I know this is probably an easy question but I am new to web programming.
0
 

Expert Comment

by:biswaspradeep
ID: 2795478
It may be possible that any of the DLL's dependencies are missing. There are many ways to determine DLL dependencies. Among these are the Depends.exe tool (shipped with the Platform SDK and Developer Studio 98). To use Depends, simply run the tool and open the DLL in question.

The DLL that implements the COM object must exist on the system and be registered with the correct path

To verify that the path in the registry is correct, run the RegEdit program and search for the PROGID (found in the CreateObject call). From the PROGID entry, record or copy the CLSID to the Clipboard and locate the entry for the CLSID. This entry should contain an InprocServer32 key with a path to the DLL. The following illustrates the flow of this process:

(from the asp file)
   set obj = Server.CreateObject("SampleProject.SampleClass")

   (from RegEdit)
   HKEY_CLASSES_ROOT\SampleProject.SampleClass\CLSID
      {683DA7E0-5C73-11D2-80F6-0000F87A8236}

   HKEY_CLASSES_ROOT\CLSID\{683DA7E0-5C73-11D2-80F6-0000F87A8236}\
      InprocServer32 E:\Programs\COMPON~1\Sample~1\Debug\Sample~1.DLL

The following commands run from a command prompt will verify the existence of this file:


   E:\>cd E:\Programs\COMPON~1\Sample~1\Debug
   E:\Programs\COMPON~1\Sample~1\Debug>dir Sample~1.DLL

   10/14/98  11:18a               241,739 SampleProject.dll

                  1 File(s)        241,739 bytes
                             2,038,755,328 bytes free

If no path is specified in the registry for the DLL, the DLL must exist in the system path

Also check the security settings of your IIS.
0
 
LVL 3

Author Comment

by:Maxim10553
ID: 2796540
Simple, basic answer. Thank you Paul
0
 
LVL 5

Expert Comment

by:funke
ID: 6528925
check the permissions on your web project and dll's
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now