473,413 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Loading an ActiveX DLL

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.
Jul 22 '05 #1
8 1653
Tough to tell without understanding what the object does.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
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.

Jul 22 '05 #2
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
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Tough to tell without understanding what the object does.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
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.


Jul 22 '05 #3
> The object works in VB6 and on a .HTM web page. This problem is
ASP-specific
I think.


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.

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 22 '05 #4
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

"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:e9**************@TK2MSFTNGP15.phx.gbl...
The object works in VB6 and on a .HTM web page. This problem is

ASP-specific
I think.


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.

--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 22 '05 #5
> 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.

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 22 '05 #6
Bingo! You're a genius. It was a permissions issue. Now the page
runs..exactly once. Apparently, I have a second problem of not freeing all
resources when I set the reference to 'nothing'. I'm looking into that now.

Many thanks,

- Andrew
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:en*************@TK2MSFTNGP11.phx.gbl...
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.

--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 22 '05 #7
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
Bingo! You're a genius. It was a permissions issue. Now the page
runs..exactly once. Apparently, I have a second problem of not freeing all
resources when I set the reference to 'nothing'. I'm looking into that
now. hi,

do not forget, that you should not base solution within ASP or a IIS context
on wininet api. The winsock control does, and it has thread problems which
at its turn can lead to leaks. Instead, base your solution on the WinHTTP
5.x Api.
http://msdn.microsoft.com/library/en...asp?frame=true
Many thanks,

- Andrew
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:en*************@TK2MSFTNGP11.phx.gbl...
> 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.

--
http://www.aspfaq.com/
(Reverse address to reply.)



Jul 22 '05 #8
Thanks. I am using the Win 32 SDK WinSock API so it should not have these
problems.

Regards,

- Andrew
"Egbert Nierop (MVP for IIS)" <eg***********@nospam.invalid> wrote in
message news:e5**************@TK2MSFTNGP11.phx.gbl...
"Andrew Chalk" <ac****@XXXmagnacartasoftware.com> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
Bingo! You're a genius. It was a permissions issue. Now the page
runs..exactly once. Apparently, I have a second problem of not freeing all resources when I set the reference to 'nothing'. I'm looking into that
now. hi,

do not forget, that you should not base solution within ASP or a IIS

context on wininet api. The winsock control does, and it has thread problems which
at its turn can lead to leaks. Instead, base your solution on the WinHTTP
5.x Api.
http://msdn.microsoft.com/library/en...asp?frame=true
Many thanks,

- Andrew
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:en*************@TK2MSFTNGP11.phx.gbl...
> 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.

--
http://www.aspfaq.com/
(Reverse address to reply.)


Jul 22 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: google | last post by:
I have a page that requires 2 controls to be loaded... one is a Java Applet, the other is an ActiveX control. The ActiveX control is dependent on the Java applet being loaded first. Here is an...
0
by: Lady_A | last post by:
Hi, I have an XP SP2, .net framework 1.1 SP1. An html/css interface using jscripts in which I create ActiveX objects and present a dialog using the appropriate language set by the user on that...
1
by: RAJ | last post by:
Hi, I am working on a source code written earlier in VB.net.While loading some forms(already created with some controls on it), I am getting the following error:...
0
by: roni | last post by:
hi. i have a ActiveX control (with gui, that you need to place on form). i want to set a parameter when my application is start ,and according to that parameter i will load / not load the...
1
by: ozzy.osborn | last post by:
Hello All, I have been struggling with a cross browser solution to loading external javascript files on the fly. I have been successful using the following code in IE6: var newScr =...
4
by: Tim B | last post by:
Hi, Previously I was loading my .NET Usercontrol like this : <OBJECT id="Obj" classid="Viewer.dll#Viewer.Viewer" width=105 height=20 VIEWASTEXT><param name="DONOTHING" value="1"> </OBJECT> ...
0
by: Mark | last post by:
I am converting a VB6/COM application to VB.NET and must remove all COM objects. VB6/COM App Architecture: Windows Form hosts WebBrowser which loads HTML snippets from local disk. Some of the...
3
by: lalekse | last post by:
Hi there. I've been searching for 2 days now a way to load a resource (byte) into a Flash Player 9 ActiveX Container. I've found a lot of discussions, talking about IBindHost, IManiker and so...
1
by: jennifer.lyell | last post by:
Hello, I am using Frontpage 2003 for a site design. I have 2 .swf files on the page as well as a menu bar (with cascading menus- created with All Web Menus Pro) that are on the page. When I...
5
by: Jaime Palli | last post by:
I have developed a Visual Basic 6.0 ActiveX DLL to help to interact with some ASP pages. I have copied the compiled DLL in C:\INETPUB\WWWROOT in my XP Pro machine. After making some configuracion...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.