微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Aspnet_regiis位于Framework64文件夹中,用于32位Web应用程序

在64位系统中,是否有任何理由在Framework文件夹中使用aspnet_regiis而不是Framework64上的aspnet_regiis?即使对于编译为x86的应用程序,我知道只需在Framework64中使用exe注册aspnet并将应用程序池设置为Enable 32 bit就可以了.

那两者之间有什么区别?

解决方法

我在MSDN( http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.100).aspx)上找到以下内容

The 32-bit version of Aspnet_regiis.exe adds only 32-bit scriptmaps to
the Applicationhost.config file. The 64-bit version of
Aspnet_regiis.exe adds 32-bit and 64-bit scriptmaps to the
Applicationhost.config file. This is done because 64-bit versions of
Windows Vista,Windows Server 2008,or Windows 7 installations that
have IIS 7.0 enabled will also have Windows on Windows 64-bit (WOW64)
support available.

也,

There are 32-bit and 64-bit versions of Aspnet_regiis.exe. For Windows
Vista and Windows Server 2008,you can run the 32-bit version of the
tool on a 64-bit installation of IIS. This lets you run mixed 32-bit
and 64-bit worker processes on the same 64-bit system. The following
table lists special cases and limitations that apply when you run the
32-bit version of the tool on a 64-bit version of IIS.

此后,它解释了IIS6.0 / 7.0的细节 – 引用适用于IIS7.0的部分:

On Windows Vista,or Windows 7,when you run the
32-bit version of Aspnet_regiis.exe under IIS 7,the tool does not
automatically set the enable32BitAppOnWin64 attribute of the
applicationPools element. On a default 64-bit operating system
installation,with Windows on Windows 64 enabled,you can use 32-bit
Aspnet_regiis.exe to configure IIS 7,but you will not be able to run
any 32-bit applications,unless you explicitly change the
enable32BitAppOnWin64 attribute to enable running the application in
Windows on Windows 64. For more information about IIS 7.0
configuration options,see the documentation for the applicationPools
element in the Applicationhost.config file.

到目前为止,我还使用您在问题中描述的方法成功运行32位Web应用程序.

原文地址:https://www.jb51.cc/html/226033.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐