Loading an ActiveX DLL

A

Andrew Chalk

Why would the following code execute in VB6 but hang indefinately when
exectuted in an ASP 3.0 page?

Set VLReceive = CreateObject("VLCTI.VLReceive")

This line is invoked in the following context:
<%
Dim VLReceive
Set VLReceive = CreateObject("VLCTI.VLReceive")
Set VLReceive = Nothing
%>

Is it the setup of the virtual directory or something?

Many thanks.
 
A

Andrew Chalk

The object works in VB6 and on a .HTM web page. This problem is ASP-specific
I think. I wrote the object inVC++ v6.0 but cannot find a way to get the
debugger to break inside it when it is loaded from an ASP page.

- Andrew
 
A

Aaron [SQL Server MVP]

The object works in VB6 and on a .HTM web page. This problem is
ASP-specific

I didn't object to that.

However, to help determine WHY it might be a problem in ASP, it would help
to know WHAT the object does. For example, ASP by default runs in the
context of IUSR_MachineName, which has a very different set of security
credentials than you do when you run an HTML page or VB application.
 
A

Andrew Chalk

Fair enough. The control:

1) attempts to instantiate a Winsock object and connect to a remote host. It
transfers some data with that host and then closes the socket;
2) It attempts local file I/O to write a log of its actions;

I looked at http://support.microsoft.com/?kbid=198432 and gave
IUSR_MachineName the Registry Value Permissions alluded to therein. I think
your emphasis on a 'permissions' problem is along the right lines. However,
what permissions and how do I change them? I'm prepared to give
IUSR_MachineName wide open machine access for debugging purposes if
necessary.

Thanks,

- Andrew
 
A

Aaron [SQL Server MVP]

1) attempts to instantiate a Winsock object and connect to a remote host.
It
transfers some data with that host and then closes the socket;

Can you use MSXML2.ServerXMLHTTP for that? (See http://www.aspfaq.com/2173)
2) It attempts local file I/O to write a log of its actions;

IUSR_MachineName will need write/change permissions to this folder.

To test the permissions theory, you can temporarily add IUSR_MachineName to
the local Administrators group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,430
Latest member
7dog123

Latest Threads

Top