Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Please help debug Invalid Prog ID error

Posted on 2003-11-18
Medium Priority
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;





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
Question by:Tom Knowlton
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2

Accepted Solution

purpleblob earned 2000 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.


Author Comment

by:Tom Knowlton
ID: 9774760
I am registering the DLL for COM Interop, btw.

Author Comment

by:Tom Knowlton
ID: 9782135
Closing this Q...
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

by:Tom Knowlton
ID: 9783284

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


Final Answer at:

Expert Comment

ID: 9785388
Glad to have been of assistance - many thanks for the grade :-)

Author Comment

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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

660 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