Chris wrote on Tue, 4 Nov 2008 09:54:29 -0800 (PST):
Quote:
I am a newbie learning COM. I used the below sample to build a
prototype.
Quote:
I was able to create the .dll using VB6. The .dll wasn't automatically
registered as I am using OS - Vista. I registered the .dll manually
using regsvr32 command.
Quote:
After registering, when I tried to use it in ASP application using the
below code, and it gave me an error. The error was on the line "Set sd
= Server.CreateObject("Stardeveloper.Author")"
Quote:
I tried googling around, but did not find any solution. Am I missing
something?
Quote:
<html>
<head>
</head>
<body>
<%
' Declaring variable
Dim sd ' Creating instance of our Component
Set sd = Server.CreateObject("Stardeveloper.Author")
Response.Write "Name of author is : " & sd.Author
Set sd = Nothing %>
Quote:
Error:
--------
An error occurred on the server when processing the URL. Please contact
the system administrator
You need to get the actual error code from the server - it looks like the
server has a "friendly" error message handler which is useless for
debugging.
First thing I'd check is that you have given execute permission for the DLL
to the user account that IIS is running under, and also the appropriate
permissions to any other files that your DLL relies upon.
--
Dan