|
-
May 1st, 2002, 11:45 AM
#1
Thread Starter
Addicted Member
Using CreateObject in ASP page
I have just started at new company and am trying to create a development environment replicating the stuff currently on the production webserver.
I have an ASP page containing the code below which is supposed to run an ActiveX DLL (SMSListener.dll).
Initially when I typed in the <filename>.asp in web browser, it gave error about not having permissions. I then realised I have to register the DLL with REGSVr32.
Now the ASP page is not throwing an error, but it is entering the 'else' part of the if statement below, and dosn't seem to create the ActiveX object (SMSListener.dll).
Can you suggest an easy way to debug what the ASP page is doing?
thanks (and no hurry, as I've now given up for the minute & I'm off home for the day!)
kester
<% Response.Buffer = true
Set objMsg = Server.CreateObject("SMSListener.clsMessageHandler")
objMsg.update Request.QueryString("message")
if objMsg.Response <> "" then
response.write("<b>" & objMsg.Response & "</b>")
else
response.write("<b>Failure</b><br>" & objMsg.Response & "<br>" & err.description)
response.write(" Message = " & request("message"))
response.write(" QSMessage = " & Request.Querystring("message"))
end if
%>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|