64-bit Windows Server 2003 runs IIS6 running a 32-bit. NET program __.net

Source: Internet
Author: User
Tags ole support microsoft
I just bought a server. Support for 64-bit Windows2003 so want to cool, loaded IIS6, can only install 64-bit net FrameWork

Publish two websites with VS2005 under the XP32 bit:

A, based on the SQL2000
B, Office Access based

After the server configuration completed, a station normal operation, very cool. B Station error, meaning in the method of connecting to the database, depressed for a long time.

Thinking: Today, the user prompts 64-bit IIS support for OLE problems.

Because the 64-bit operating system does not support Microsoft OLE DB Provider for Jet drive apricot explosion also does not support earlier Microsoft Access Driver (*.mdb)-mode connections. Therefore, Microsoft OLE DB Provider for Jet for Access and Excel databases is not available in the 64-bit version, that is, the following two connection strings are no longer working:

"Provider=Microsoft.Jet.OLEDB.4.0;Data source=" &server.mappath (db)
"Driver=microsoft Access Driver (*.mdb);D bq=" &server.mappath (db)

Workaround: In this case, you can only use one method to set the running environment of IIS to 32 bits:

IIS6 on the way:

1. Command line type:

cscript.exe%SystemDrive%\inetpub\adminscripts\adsutil.vbs SET W3svc/apppools/enable32bitapponwin64 1

That is, Setup IIS6 allows 32-bit programs to run on 64-bit machines

2. Re-register. NET Frameworks

%systemroot%\microsoft.net\framework\v2.0.50727\aspnet_regiis.exe-i

3. After the completion, look at the Web service extensions, should be more than a 32-bit asp.net set it to allow, disadvantage: This will enable all sites on the entire IIS to run in 32-bit compatible mode.

The practice on IIS7 is much simpler:

Application pools, advanced settings--> allows 32-bit applications
Run IIS6, run the. Net+access website to see if it solves

Follow-up: If there are problems, such as service unavailable, congratulations, you can learn new knowledge. Very annoying, look at the error log, I encountered RpcProxy.dll all ISAPI filter errors that could not be loaded and could not load the site/service. Workaround: Open iis--> View the properties of the Web site--->isapi filter--> Remove the item with the down Red Arrow--> restart Iis-->ok. This is all resolved.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.