473,397 Members | 2,028 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,397 software developers and data experts.

Loading an ActiveX DLL is superslow

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 changes for solving the problems with the
message:

Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
The call to Server.CreateObject failed while checking permissions. Access is
denied to this object.

Basically, the changes were:
1. In IIS configuration check "Anonimous access"., Application protection
in "Low", Execution permissions, "Commands and executables."
2. Use CACLS to give the user IUSR_<computernamefull access to
MSVBVM60.DLL

Now I see that when I call the ASP page that uses the ActiveX DLL, in
Internet Explorer 6, it lasts about 5 minutes before I get the results.
After this first time, the response time is as usual.

Why this first loading is so slow, and how can I correct it ?

Sep 23 '07 #1
5 2715
"Jaime Palli" <jp****@bigfoot.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
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 changes for solving the problems with the
message:

Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
The call to Server.CreateObject failed while checking permissions. Access
is
denied to this object.

Basically, the changes were:
1. In IIS configuration check "Anonimous access"., Application protection
in "Low", Execution permissions, "Commands and executables."
2. Use CACLS to give the user IUSR_<computernamefull access to
MSVBVM60.DLL

Now I see that when I call the ASP page that uses the ActiveX DLL, in
Internet Explorer 6, it lasts about 5 minutes before I get the results.
After this first time, the response time is as usual.

Why this first loading is so slow, and how can I correct it ?
Does the Sub Main do anything?
Does the DLL make DB connections?
--
Anthony Jones - MVP ASP/ASP.NET
Sep 23 '07 #2
After further investigation with SysInternal's filemon program, I have seen
that the problem was in the permissions of the user IUSR_<computernameover
some folder where a log file is written. Assigning permissions for this user
to the folder solved the problem.

I have some more questions about security:

Basically the system is composed of two components: a very simple .asp page
that serves as an interface to a Visual Basic 6.0 ActiveX dll.
The asp page does the following:

Set oWD = Server.CreateObject("AmWebDLL.clsWebDLL")
sData=oWD.GetData(Request.QueryString("action"),Re quest.QueryString("data"),Request.QueryString("par am"))
Response.Write sData

The dll reads and writes records to an Access database, located outside the
public web folders, and writes log information to a .txt file located in the
public web folder.
The folder where the database resides has other company internal programs
and databases.
As the IUSR_<computernamemust have read and write permissions over the
internal folder, my question is about to know if this is a security leakage.
Does this model expose the internal folder to outside users and hackers?

"Anthony Jones" <An*@yadayadayada.comescribió en el mensaje
news:%2***************@TK2MSFTNGP02.phx.gbl...
"Jaime Palli" <jp****@bigfoot.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
>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 changes for solving the problems with the
message:

Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
The call to Server.CreateObject failed while checking permissions. Access
is
>denied to this object.

Basically, the changes were:
1. In IIS configuration check "Anonimous access"., Application
protection
in "Low", Execution permissions, "Commands and executables."
2. Use CACLS to give the user IUSR_<computernamefull access to
MSVBVM60.DLL

Now I see that when I call the ASP page that uses the ActiveX DLL, in
Internet Explorer 6, it lasts about 5 minutes before I get the results.
After this first time, the response time is as usual.

Why this first loading is so slow, and how can I correct it ?

Does the Sub Main do anything?
Does the DLL make DB connections?
--
Anthony Jones - MVP ASP/ASP.NET


Sep 30 '07 #3
"Jaime Palli" <jp****@bigfoot.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
After further investigation with SysInternal's filemon program, I have
seen
that the problem was in the permissions of the user IUSR_<computername>
over
some folder where a log file is written. Assigning permissions for this
user
to the folder solved the problem.

I have some more questions about security:

Basically the system is composed of two components: a very simple .asp
page
that serves as an interface to a Visual Basic 6.0 ActiveX dll.
The asp page does the following:

Set oWD = Server.CreateObject("AmWebDLL.clsWebDLL")
sData=oWD.GetData(Request.QueryString("action"),Re quest.QueryString("data"),
Request.QueryString("param"))
Response.Write sData

The dll reads and writes records to an Access database, located outside
the
public web folders, and writes log information to a .txt file located in
the
public web folder.
The folder where the database resides has other company internal programs
and databases.
As the IUSR_<computernamemust have read and write permissions over the
internal folder, my question is about to know if this is a security
leakage.
Does this model expose the internal folder to outside users and hackers?

Unless the folder where the database resides is placed in somewhere that can
be accessed via a URL then a hacker can't simply form a URL to fetch it.

However you should be careful about how you create SQL code by using
parameterised queries and not concatenating any values received from the
client into a SQL string.

BTW how big might the content of the querystring values become?

--
Anthony Jones - MVP ASP/ASP.NET
Sep 30 '07 #4
This is the main reason I have tought in using the dll, controlling
parameters.
As far as I can, I try to control what information is coming in the
parameters, and reject anything else.
The parameters that come to the dll from the client are simple, they are not
SQL queries, and they are not appended to internal dll SQL queries.
Therefore I can control the maximum length of what is coming.
Thanks

"Anthony Jones" <An*@yadayadayada.comescribió en el mensaje
news:%2****************@TK2MSFTNGP04.phx.gbl...
"Jaime Palli" <jp****@bigfoot.comwrote in message
news:OU**************@TK2MSFTNGP05.phx.gbl...
>After further investigation with SysInternal's filemon program, I have
seen
>that the problem was in the permissions of the user IUSR_<computername>
over
>some folder where a log file is written. Assigning permissions for this
user
>to the folder solved the problem.

I have some more questions about security:

Basically the system is composed of two components: a very simple .asp
page
>that serves as an interface to a Visual Basic 6.0 ActiveX dll.
The asp page does the following:

Set oWD = Server.CreateObject("AmWebDLL.clsWebDLL")
sData=oWD.GetData(Request.QueryString("action"),Re quest.QueryString("data"),
Request.QueryString("param"))
>Response.Write sData

The dll reads and writes records to an Access database, located outside
the
>public web folders, and writes log information to a .txt file located in
the
>public web folder.
The folder where the database resides has other company internal programs
and databases.
As the IUSR_<computernamemust have read and write permissions over the
internal folder, my question is about to know if this is a security
leakage.
>Does this model expose the internal folder to outside users and hackers?


Unless the folder where the database resides is placed in somewhere that
can
be accessed via a URL then a hacker can't simply form a URL to fetch it.

However you should be careful about how you create SQL code by using
parameterised queries and not concatenating any values received from the
client into a SQL string.

BTW how big might the content of the querystring values become?

--
Anthony Jones - MVP ASP/ASP.NET


Sep 30 '07 #5
"Jaime Palli" <jp****@bigfoot.comwrote in message
news:Ol****************@TK2MSFTNGP05.phx.gbl...
This is the main reason I have tought in using the dll, controlling
parameters.
As far as I can, I try to control what information is coming in the
parameters, and reject anything else.
The parameters that come to the dll from the client are simple, they are
not
SQL queries, and they are not appended to internal dll SQL queries.
Thats good.
Therefore I can control the maximum length of what is coming.
You can't control the maximum length of what is coming in. However it is
possible to reasonably sure that anything that would exceed the maximum size
of a URL would not be valid anyway.

--
Anthony Jones - MVP ASP/ASP.NET
Oct 2 '07 #6

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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.