简体   繁体   English

使用Mac上的Parallels VM,IIS Express在外部请求上变慢

[英]IIS Express slow on external requests using Parallels VM on Mac

Running a VM on a Mac for a .NET backend, I have the following setup: 在Mac上为.NET后端运行VM,我有以下设置:

Parallels 8 (Shared Network), Win 8, IIS Express 8 (not run as admin I think), Visual Studio 2012 Epress Parallels 8(共享网络),Win 8,IIS Express 8(我认为不是以管理员身份运行),Visual Studio 2012 Epress

ACL via elevated command line: ACL通过提升的命令行:

netsh http add urlacl url=http://10.211.55.3:29588/ user=everyone

applicationhost.config 对ApplicationHost.config

<bindings>
    <binding protocol="http" bindingInformation="*:49288:localhost" />
    <binding protocol="http" bindingInformation="*:49288:10.211.55.3" />
</bindings>

The usual tutorials about this topic use the win8 hostname, which doesn't work in my case. 关于这个主题的常用教程使用win8主机名,这在我的情况下不起作用。 I have to use the direct IP address. 我必须使用直接IP地址。 The other thing that is unusual here is that I have to leave the localhost in the bindings, otherwise Visual Studio can't start IIS Express (Error). 另一件不寻常的事情是我必须将localhost留在绑定中,否则Visual Studio无法启动IIS Express(错误)。

Above works except that the backend becomes unresponsive after a minute or so. 以上工作除了后端在一分钟左右后没有响应。 It's like the server goes to sleep. 这就像服务器进入睡眠状态。 On browser-refresh (Mac side) I get a timeout, then the requests make it through again. 在浏览器刷新(Mac端)我得到超时,然后请求再次通过。 On the Win8 side, the backend is repsonsive all the time. 在Win8方面,后端始终是repsonsive。

Does somebody have an idea what I'm doing wrong? 有人知道我做错了什么吗?

似乎VS 2012更新3解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM