Please help debug Invalid Prog ID error

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;





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:
/tomtest.asp, line 2

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

GET /tomtest.asp

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

More information:
Microsoft Support
Tom KnowltonWeb developerAsked:
Who is Participating?
purpleblobConnect With a Mentor Commented:
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.

Tom KnowltonWeb developerAuthor Commented:
I am registering the DLL for COM Interop, btw.
Tom KnowltonWeb developerAuthor Commented:
Closing this Q...
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tom KnowltonWeb developerAuthor Commented:

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


Final Answer at:
Glad to have been of assistance - many thanks for the grade :-)
Tom KnowltonWeb developerAuthor Commented:
No problem.  I rarely give anything but an "A".  I wish they would do away with "A" "B" "C" grades.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.