Solved

Please help debug Invalid Prog ID error

Posted on 2003-11-18
6
309 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

820 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