通过 https 使用计算机别名
Using computer alias with https
我使用并行在 mac 上开发 asp.net 应用程序。我正在努力实现当我 运行 一个网站时,它会在我的 Mac Chrome 中打开。有一个很好的指导如何做到这一点:
我已按照指南进行操作,它解决了一个我正在尝试修复但尚未成功的恼人问题。当我打开解决方案并加载 Web 项目时,或者当我保存项目设置时,我收到以下警告:
当我在 applicationhost.config 中修改站点元素中的绑定时发生错误,可以在 <solutiondir>\.vs\config\*applicationhost.config
:
中找到
修改站点element/bindings
<site name="UnitechSales" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Projects\UnitechSalesApp\UnitechSales" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:51267:localhost" />
<binding protocol="https" bindingInformation="*:44300:localhost" />
<binding protocol="https" bindingInformation="*:44300:arrakis-win" />
</bindings>
</site>
原始文件根本不包含带有计算机名称的绑定元素,只包含本地主机绑定。
当我 运行 网站时,它在我的 mac 浏览器中正确打开。然而,一直报错很烦人。
编辑
.csproj IIS
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort>44300</IISExpressSSLPort>
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
.csproj Web 项目分机
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>False</AutoAssignPort>
<DevelopmentServerPort>51267</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>https://arrakis-win:44300</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
您忘记使您的项目文件 (.csproj/.vbproj) 与您的配置文件保持同步。
更多技术细节可以在我的博客中找到post,
我使用并行在 mac 上开发 asp.net 应用程序。我正在努力实现当我 运行 一个网站时,它会在我的 Mac Chrome 中打开。有一个很好的指导如何做到这一点:
我已按照指南进行操作,它解决了一个我正在尝试修复但尚未成功的恼人问题。当我打开解决方案并加载 Web 项目时,或者当我保存项目设置时,我收到以下警告:
当我在 applicationhost.config 中修改站点元素中的绑定时发生错误,可以在 <solutiondir>\.vs\config\*applicationhost.config
:
修改站点element/bindings
<site name="UnitechSales" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Projects\UnitechSalesApp\UnitechSales" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:51267:localhost" />
<binding protocol="https" bindingInformation="*:44300:localhost" />
<binding protocol="https" bindingInformation="*:44300:arrakis-win" />
</bindings>
</site>
原始文件根本不包含带有计算机名称的绑定元素,只包含本地主机绑定。
当我 运行 网站时,它在我的 mac 浏览器中正确打开。然而,一直报错很烦人。
编辑
.csproj IIS
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort>44300</IISExpressSSLPort>
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
.csproj Web 项目分机
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>False</AutoAssignPort>
<DevelopmentServerPort>51267</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>https://arrakis-win:44300</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
</CustomServerUrl>
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
</WebProjectProperties>
您忘记使您的项目文件 (.csproj/.vbproj) 与您的配置文件保持同步。
更多技术细节可以在我的博客中找到post,