64位版本的IIS Express [英] 64 bit version of IIS Express

查看:82
本文介绍了64位版本的IIS Express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 



我正在制作一个在"64位版本的IIS Express"上运行的项目;通过在visual studio上进行以下设置。 


工具 - >选项 - >项目和解决方案 - >网络项目 - > "检查" "对网站和项目使用64位版本的IIS Express"


我的问题是, 


此设置仅适用于此解决方案项目还是这个视觉工作室的所有解决方案的全局设置?


或者我可以从"任何cpu"更改我的项目设置。到x64?是否与在64位处理器上运行相同?



我们是否可以为此解决方案保存此设置而不是手动执行此操作?

解决方案

您好,


工具的设置>选项适用于Visual Studio IDE,因此适用于所有解决方案。


每个项目的设置在每个项目的"项目属性"窗口中设置。 


示例:


- 在"项目属性"窗口中>网络标签>服务器部分有一个下拉列表来指定服务器:IIS Express,本地IIS或外部主机。此设置适用于所选项目。


- 在工具 - >选项 - >项目和解决方案 - >网络项目 - > "对于网站和项目使用64位版本的IIS Express",此设置适用于在先前设置中选择"IIS Express"的所有项目。


- 如果您的Windows是32位,它只能运行32位应用程序。因此,项目设置可以是"x86"。或"AnyCPU"或"AnyCPU"。 (默认为32位),但无法运行64位应用程序。


- 如果您的Windows是64位,它可以运行32位应用程序或64位应用程序应用程序。


- 在项目属性,构建选项卡,平台目标下拉列表中为C#设置应用程序的位,在项目属性,编译选项卡,目标CPU下拉列表中为VB.NET设置: / p>

* x86:您的Web应用程序将是32位,但它可以在64位IIS的32位应用程序池上运行。


* x64:您的Web应用程序将是64位,它需要64位IIS的64位应用程序池。


* AnyCPU:您的Web应用程序将表现为32-位或64位,具体取决于它的加载位置


Hi, 

I am making one of the project to run on "64 bit version of IIS express" by making the following settings on the visual studio. 

Tools->Options -> Project and Solutions -> Web Projects -> "Check" "Use 64 bit version of IIS Express for web sites and projects"

My question is, 

is this settings applicable for only this solution project or is it a global settings for all the solution for this visual studio?

or can i change my project settings from "any cpu" to x64 ? is this same as running on 64 bit processor ?

Is there any way where we can save this settings for this solution instead of doing it manually ?

解决方案

Hi,

The settings of Tools > Options are for the Visual Studio IDE, and therefore apply to all solutions.

Settings per project are set in the Project Properties window of each project. 

Example:

- In Project Properties window > Web tab > Servers section you have a dropdown list to specify the server: IIS Express, Local IIS or external host. This setting is for the selected project.

- In Tools->Options -> Project and Solutions -> Web Projects -> "Use 64 bit version of IIS Express for web sites and projects", this setting applies to all projects that in the previous setting select "IIS Express".

- If your Windows is 32-bit, it can only run 32-bit apps. So the project setting can be "x86" or "AnyCPU" (which will default to 32-bit), but you cannot run 64-bit apps.

- If your Windows is 64-bit, it can run 32-bit apps or 64-bit apps.

- The bits of your app are set for C# in Project Properties, Build tab, Platform Target dropdown and for VB.NET in Project Properties, Compile tab, Target CPU dropdown:

* x86: your web app will be 32-bit, but it can run on a 32-bit application pool of a 64-bit IIS.

* x64: your web app will be 64-bit, it requires a 64-bit application pool of a 64-bit IIS.

* AnyCPU: your web app will behave as 32-bit or 64-bit, depending on where it is loaded


这篇关于64位版本的IIS Express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆