Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Please help debug Invalid Prog ID error

Posted on 2003-11-18
6
Medium Priority
?
320 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:Tom Knowlton
  • 4
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
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.

0
 
LVL 5

Author Comment

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

Author Comment

by:Tom Knowlton
ID: 9782135
Closing this Q...
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 5

Author Comment

by:Tom 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:Tom 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

783 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