473,385 Members | 1,927 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,385 software developers and data experts.

ASP page that calls ActiveX object fails under x64 IIS 6

Hi,

I'm porting a Web site from 32 bit IIS 6 to x64 IIS 6 (Windows Server 2003
x64 R2) and I'm having trouble using an ActiveX object inside an ASP page
(old ASP, not ASP.NET). The CreateObject call fails under x64 IIS, while is
working fine under x86 IIS.
I found out that the problem may be related to the fact that the ActiveX is
based on a 32 bit DLL, while IIS runs at 64 bit.
I tryed to simply write a WSH VBS file that creates the object. If I barely
doubleclick on it it'll fail, while running it with
C:\Windows\sysWow64\Wscript.exe script.vbs (so using the 32 bit version on
WSH) works fine.
Now I need to find a solution to the IIS problem. Considering that:
1) I don't have the source code of the ActiveX and the company that
developed it is not releasing a 64 bit version.
2) I cannot figure out to use a different ActiveX and change hundreds of
pages to adapt to it.
3) I don't like too much to use brand new x64 hardware with old 32 bit
operating system(without considering that I spent weeks to fine tune Windows
installation).
What else could I do ??
Is there any way to run certain ASP pages in 32 bit mode ? Otherwise, is
there any way to wrap something around the ActiveX to expose it to IIS as if
it was a 64 bit code ?
I think this problem should be very common when porting old sites to 64 bit
IIS.

Any suggestion is appreciated.

Thanks.

Massimo.
Jul 27 '06 #1
4 4827
Hello,

Regarding the issue, I suggest you may first install Windows 2003 server
SP1. After implement this, there is a metabase property
"W3SVC/AppPools/Enable32bitAppOnWin64" added. We can control IIS starts a
32-bit worker process or a 64-bit worker process by its value. For details,
you may refer to :

http://support.microsoft.com/?id=895976

I believe this is worthy of try if the activex component can only be run in
32 bit mode.

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 28 '06 #2
Hi Luke,

thanks for you reply.
I tryed you solution and works. My concern is that, doing this way, the full
IIS will run in 32 bit emulation mode and will not benefit of the 64 bit
hardware. Because the site is quite heavy and we plan to make it richer in
the near future, we'd like to benefit of the 64 bit execution of ASP pages.
I read on an MSDN blog
(http://blogs.msdn.com/david.wang/arc...4bit_IIS6.aspx
point 2) that a 32 bit COM object can be loaded on a 64 bit IIS. Do you
think I can create a COM object that wraps the ActiveX DLL and solve the
problem in this way ?

Thanks.

Massimo.
Jul 28 '06 #3
Hello Massimo,

As David mentioned in the blog:

When we are running ASP pages that are creating and using the 32bit COM
component, COM+ is smart enough to start up a 32bit dllhost.exe process to
load the 32bit COM component and run it. This "magic" fails if your 32bit
COM component relies on being in the same process as the ASP code
creating/using it - such as if the component tries to change a thread token
or read the process token. But for the most part, this is an easy
compatibility approach.

We cannot guarantee all ActiveX components are compatible with x64 IIS,
espcially we don't the internal implementation of the ActiveX component.
Ideally, the vendor of ActiveX components may provide a version with 64 bit
OS compatible for this issue.

Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 31 '06 #4
Hello,

I am closely monitoring the newsgroup and I am contacting you to check the
issue status.

If you have anything unclear, please feel free to post in the newsgroup and
we will follow up.

Thank you for using our Newsgroup Support Service!

Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 2 '06 #5

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

Similar topics

2
by: Cathy Thomas | last post by:
Has anyone run into this problem? An ASP page creates a command object that calls a stored procedure. This was working one day; next, it stopped. I am not in control of the various patches that get...
1
by: ital | last post by:
I've made an ASP page that use a VB6 ActiveX EXE with a CreateObject. Initially, this page work fine. The object’s reference created with the CreateObject are saved on a session variable for...
1
by: R Reyes | last post by:
Hi, what is the best way to manipulate MSOffice programs? i understand that regular web pages do not have the permissions (because of safety measures) to open up MS word/excel programs, for...
10
by: Andrew Chalk | last post by:
I have an ASP 3.0 page that contains an ActiveX control that I wrote in VC++ v6.0. Under Visual Interdev I can debug the ASP code just fine. However, when I get to an ASP line that references my...
2
by: Adrian | last post by:
Hi I have a main page that has an Activex within it loaded by the object tag I then load a second page using an IFrame into a cell of a table on the first page I require access to the functions...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
47
by: Max | last post by:
Due to the behaviour of a particular COM object, I need to ensure that a request for a particular ASP page is finalized before another request for the page is processed. Does IIS have a way to...
1
by: HONOREDANCESTOR | last post by:
I have a dotnet dll that is called by vb6. I've done various steps to make the dotnet dll act like a com object, and my vb6 program is able to work with it without problem. But, I also have...
0
by: BooGhost | last post by:
Some background: 1. I've got a master page with an asp:Menu using an XML sitemap. 2. A page that uses the master page has an object tag (instancing an activex control) 3. This activex control...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.