Solved

Please help debug Invalid Prog ID error

Posted on 2003-11-18
6
299 Views
Last Modified: 2010-04-16
ASP code (tomtest.asp):

<%
Set DBObj = Server.CreateObject("User.User")
Response.Write("From CSharp COM Object:  " & DBObj.GetNetworkLoginName())
Set DBObj = Nothing
%>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C# DLL code (user.dll):

using System;

namespace BuyersFund
{
      /// <summary>
      /// Summary description for User.
      /// </summary>
      public class User
      {
            public User()
            {
                  //
                  // TODO: Add constructor logic here
                  //
            }

            string GetNetworkLoginName()
            {
                  
                  System.Security.Principal.WindowsIdentity ident = System.Security.Principal.WindowsIdentity.GetCurrent();
                  return ident.Name;

            }

      }
}





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


ERROR:

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/tomtest.asp, line 2


Browser Type:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 1.0.3705)

Page:
GET /tomtest.asp

Time:
Tuesday, November 18, 2003, 3:35:59 PM


More information:
Microsoft Support
 
0
Comment
Question by:knowlton
  • 4
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
purpleblob earned 500 total points
ID: 9774727
I've not tried creating a C# DLL through Server.CreateObject (as I tend to use ASP.NET for interacting with .NET DLL's), so this is just an idea off the top of my head.

But from what I recall - Server.CreateObject is used for instantiating COM objects and thus is trying to create a COM object. A C# DLL is not a COM object and certainly wouldn't have a registered ProgID. This would fit in with the error message you are seeing.

0
 
LVL 5

Author Comment

by:knowlton
ID: 9774760
I am registering the DLL for COM Interop, btw.
0
 
LVL 5

Author Comment

by:knowlton
ID: 9782135
Closing this Q...
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 5

Author Comment

by:knowlton
ID: 9783284
purpleblob:

Thanks for your heartfelt assistance during this difficult problem!!!!

Tom


Final Answer at:  http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20803202.html
0
 
LVL 6

Expert Comment

by:purpleblob
ID: 9785388
Glad to have been of assistance - many thanks for the grade :-)
0
 
LVL 5

Author Comment

by:knowlton
ID: 9788623
No problem.  I rarely give anything but an "A".  I wish they would do away with "A" "B" "C" grades.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Unit testing, moq, best practices 7 28
Long URL in SMS 6 24
index Out OF Range Exception error 4 31
Create XML 5 33
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 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

18 Experts available now in Live!

Get 1:1 Help Now