How to configure the ASP.net program on a X64 system

Source: Internet
Author: User

Asp. NET program is compiled by default is any CPU, that is, the compiled program can be in the X86, X64 system platform to run. If you want our ASP.net program to run on the X64 system, all we have to do is deploy IIS and modify the configuration.

If you want the program to run in IIS32 bit mode, run the following configuration under the. NET Framwork32 bit:

1.cscript%systemdrive%inetpubadminscriptsadsutil.vbs Set W3svc/apppools/enable32bitapponwin64 1 Modify IIS configuration to allow 32-bit programs to run

2.windowsmicrosoft.netframeworkv2.0.50727aspnet_regiis-i registers Asp.net32 for IIS. The asp.net2.0.*32bit is displayed in the IIS Web extensions after registration.

The 3.Web extension allows Asp.net2.0.*32bit to run. The W3wp32.exe process is running.

Two. 64-bit mode

1.cscript%systemdrive%inetpubadminscriptsadsutil.vbs Set W3svc/apppools/enable32bitapponwin64 0 default is 0, if the original run 32-bit program, You need to reset to 0.

2.windowsmicrosoft.netframework64v2.0.50727aspnet_regiis-i is registered for IIS 64 as asp.net. IIS registered for 64-bit asp.net displays asp.net2.0.* in the Web extension.

The 3.Web extension allows asp.net2.0.* to run. The W3wp.exe process is running.

About compiling: The beginning mentioned that the general compiler defaults to any CPU, that is, the program defaults to support X86, X64. But whether there is a performance loss, I have not yet tested, but in theory, personally feel there will be a loss rate. I would like to know more about this friend to provide information. I ran the X86 compiled program on X64 at the time of the test, and the result was an attempt to load 64-bit assemblies on a 32-bit platform. If the assembly is loaded for reflection purposes, use ReflectionOnlyLoad () instead. Learned a valuable experience, wow haha!

Resources

<
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.