Share via


64 bit version of IIS Express

Question

Friday, February 17, 2017 4:04 PM | 1 vote

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 ?

All replies (2)

Saturday, February 18, 2017 7:03 AM | 2 votes

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

My portal and blog about VSX: http://www.visualstudioextensibility.com<br/> Twitter: https://twitter.com/VSExtensibility\<br/> MZ-Tools productivity extension for Visual Studio: https://www.mztools.com


Monday, February 20, 2017 10:19 AM

Hi kamalsanjeevi,

Carlos J's suggestion would be correct for this issue.

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

Actually if you just enable it after you open the blank VS IDE, and then re-open it again, it would enable it in default now.

All the options are saved to the VS settings, actually we could also import and export customer VS settings.

https://msdn.microsoft.com/en-us/library/1x6229t8(v=vs.100).aspx

For the different targets, you could also get some information from the following tables:

Best Regards,

Jack

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].