How to compile and run the IIS Express 64-bit debugger in VS2012 under Windows8.1

Source: Internet
Author: User

Sometimes the C # system debugging prompt in Windows 8 or above does not support 32-bit IIS Express. If IIS is used for debugging in vs code every time, it is very troublesome.

Next we will introduce how to compile and debug 64-bit code:

Method 1:


When you use Visual Studio 2012 to develop a website or web application, you can use two types of web server. Built-in development server and iis express. Development server is x86 and iis express is x86 and x64 at the same time.

However, when 64-bit dll is referenced, an error is reported during debugging because vs2012 only calls its 32-bit version by default even if iis express is used for debugging. You can view the version of iis express that you enabled during debugging through the process in the task manager.

Later Visual Studio may integrate the debugging call of iis express x64, but 2012 we must modify the registry to make vs call iis express of x64 Edition. The modification method is as follows.

Reg add HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio12.0WebProjects/v Use64BitIISExpress/t REG_DWORD/d 1

After the registry is modified, restart vs2012 to make it take effect.

After testing, it is still unsolved.

So use this method !!

Run regedit

Add the DWORD value "Use64BitIISExpress" under HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio11.0WebProjects and set the value to 1.

OK these methods are actually to change the original default 32-bit directly to 64-bit IIS Express.

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.