Tom Knowlton
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. WindowsIde ntity ident = System.Security.Principal. WindowsIde ntity.GetC urrent();
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
<%
Set DBObj = Server.CreateObject("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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Closing this Q...
ASKER
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
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
Glad to have been of assistance - many thanks for the grade :-)
ASKER
No problem. I rarely give anything but an "A". I wish they would do away with "A" "B" "C" grades.
ASKER