Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 将计算机别名与https一起使用_Asp.net_Macos_Iis_Iis Express_Parallels - Fatal编程技术网

Asp.net 将计算机别名与https一起使用

Asp.net 将计算机别名与https一起使用,asp.net,macos,iis,iis-express,parallels,Asp.net,Macos,Iis,Iis Express,Parallels,我使用parallels在mac上开发asp.net应用程序。当我运行一个网络时,它会在我的MacChrome浏览器中打开,我正试图实现这一点。有一个很好的指南可以指导您如何做到这一点: 我遵循了指南,它解决了一个我正试图解决但尚未成功的恼人问题。打开解决方案并加载web项目或保存项目设置时,会收到以下警告: 当我在applicationhost.config中修改站点元素中的绑定时,会发生此错误,该绑定可在\.vs\config\*applicationhost.config中找到: 修改

我使用parallels在mac上开发asp.net应用程序。当我运行一个网络时,它会在我的MacChrome浏览器中打开,我正试图实现这一点。有一个很好的指南可以指导您如何做到这一点:

我遵循了指南,它解决了一个我正试图解决但尚未成功的恼人问题。打开解决方案并加载web项目或保存项目设置时,会收到以下警告:

当我在applicationhost.config中修改站点元素中的绑定时,会发生此错误,该绑定可在
\.vs\config\*applicationhost.config
中找到:

修改的站点元素/绑定

<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>

原始文件不包含具有计算机名的绑定元素,只包含localhost绑定

当我运行网站时,它会在我的mac浏览器中正确打开。然而,总是得到错误是相当烦人的


编辑 .csproj IIS

<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort>44300</IISExpressSSLPort>
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
true
44300
.csproj网络项目分机

<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>

真的
假的
51267
/
https://arrakis-win:44300
假的
假的
假的

您忘记将项目文件(.csproj/.vbproj)与配置文件保持同步

更多的技术细节可以在我的博客中找到


我一直试图在我能想到的所有变化中重现这个错误,但对我来说一切都很好。我建议尝试本地IIS,但删除了该评论,因为它看起来不适合我。是否有任何IIS记录的错误可能会给我们一个提示?我查看了事件查看器和visual studio日志。遗憾的是,此处没有记录错误或警告。感谢您的回答,但我认为这不是问题所在:-/I已将.csproj部分包括在问题中。@Santhos请尝试从配置文件中删除未使用的绑定,然后重试。我还更新了我的博客,包括更多关于机器名相关设置的信息。我无法复制您遇到的确切错误消息,但新单词应该会有所帮助。我已经尝试过了,但没有成功。我相信问题在于https。至少这不是工作阻塞问题(无论多么烦人)。奇怪的是,根据您的https部分,我们的设置基本相同。现在唯一的区别是我的机器名是小写的,而你的机器名是大写的,但我相信这并不重要。@Santhos那么你能在Jexus Manager中试用SSL诊断吗?我写了这个工具,希望它能有所帮助。