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.