Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: HARI HARAN RAMACHANDRAN
  Where is HARI HARAN RAMACHANDRAN?
 chennai
 India
 HARI HARAN RAMACHANDRAN
 Tags
Subject: Using VFP dlls in x64 system
Thread ID: 249281 Message ID: 249281 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Web Applications
Date: Thursday, December 31, 2009 12:17:45 PM         
   


I have an ASP.NET web application, it uses VFP dll for some internal processing. Web application is working fine in x86 servers.

It gives the following error message in x64 servers.

Retrieving the COM class factory for component with CLSID {} failed due to the following error : 80040154

To enable IIS 6.0 to run 32-bit applications on 64-bit Windows, I changed Enable32BitAppOnWin64 to true.

To change this property, did the following
Open Command prompt
Navigate to folder (%systemdrive%\Inetpub\AdminScripts directory)
Executed the following
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”

After setting Enable32BitAppOnWin64 to true, all the websites that are there in the server is throwing "Service Unavailable" error message.

Registering the VFP dll succeeds in x64 environment,
Accessing the DLL from VFP is working fine
Running the web application from Visual Studio IDE (debug mode) is working fine.

Any help will be really apprecated.

Regards,
R.HARI HARAN

ENTIRE THREAD

Using VFP dlls in x64 system Posted by HARI HARAN RAMACHANDRAN @ 12/31/2009 12:17:45 PM