IISExpress使用64位

(一)

C#有一些函数如GetHashCode和x86,X64版本有关系,为了和服务器保持一致,本地iis Express也需要设置64位。

方法如下,vs2010不支持。

vs2012可以手动添加配置

reg add HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio11.0WebProjects /v Use64BitIISExpress /t REG_DWORD /d 1

如果手动敲字母的话,要防止多一个空格。

vs2010不支持该方法

(二)设置IIS可以远程访问

 <site name="XXXX.Web" id="3">
                <application path="/" applicationPool="Clr4ClassicAppPool">
                    <virtualDirectory path="/" physicalPath="I:XXXXXXn.Web" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:7766:*" />
                </bindings>
  </site>
原文地址:https://www.cnblogs.com/zhaogaojian/p/10433696.html