473,800 Members | 2,602 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\sysW ow64\Wscript.ex e 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 4847
Hello,

Regarding the issue, I suggest you may first install Windows 2003 server
SP1. After implement this, there is a metabase property
"W3SVC/AppPools/Enable32bitAppO nWin64" 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
2674
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 applied to this machine, so yes, it is possible that new MS code was applied to it. The error is a 429, 'Cannot create ActiveX Component'. I can get the code to work if I turn on the IE option 'Initialize and script ActiveX controls not marked...
1
1532
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 reuse it on many page. When many users call this page and many instance of the ActiveX EXE Object are created, the CreateObject command fails with a 429 error (ActiveX component can't create object). The class (in ActiveX EXE) are MultiUse, then only a...
1
1232
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 example, from a web site. What I need is a strategy for the best way to open up word/excel applications and manipulate them by adding/removing text, formatting, and doing mail merge types of transactions. Would ActiveX be the best strategy to...
10
3893
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 ActiveX control the debugger does not go inside my C++ code allowing me to debug the ActiveX control. If I load the ActiveX control project from VC++ with Internet Explorer as the debug executable I have the same problem. Break points in the ActiveX...
2
1250
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 in the ActiveX dll in the main page how can I do this? Currently I re load the object in the second page but some times it fails to load! however it always loads ok on the main page! I give the object the same name in both pages as load/use...
6
9354
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 sure it is a permission issue because the script works when I point the browser directly at the .htm file on the c: drive: c:\inetpub\wwwroot\DemoSite\VbScriptTest.htm
47
3122
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 ensure that subsequent requests will be queued until the current request is completed? If not, can IIS be configured to use seperate processes to satisfy requests for a nominated ASP page? Thanks in advance.
1
2013
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 another vb6 program that uses the same dll. The vb6 program is an activeX exe. So I have a vb6 program that calls the vb6 activeX exe which in turn calls the dotnet com object. This does not work at all, in fact, it gives an error: "Run-Time error...
0
1318
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 exposes an event: onSelectionChanged(parameter) 4. The suggested/preferred method of wiring up this event (according to the control manufacturer) is to place a vbscript block on the page with a vbs event handler that calls a javascript...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10507
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10279
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10255
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10036
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5473
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2948
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.