Link to home
Start Free TrialLog in
Avatar of Tom Knowlton
Tom KnowltonFlag for United States of America

asked on

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;

            }

      }
}





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


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
 
ASKER CERTIFIED SOLUTION
Avatar of purpleblob
purpleblob

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tom Knowlton

ASKER

I am registering the DLL for COM Interop, btw.
Closing this Q...
purpleblob:

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

Tom


Final Answer at:  https://www.experts-exchange.com/questions/20803202/URGENT-Cause-of-Invalid-ProgID-in-NET-DLL-registered-for-COM-Interop.html
Avatar of purpleblob
purpleblob

Glad to have been of assistance - many thanks for the grade :-)
No problem.  I rarely give anything but an "A".  I wish they would do away with "A" "B" "C" grades.