ASP.NET 5 - NETSH命令导致DNX错误(确定DNX的进程ID)

时间:2016-02-23 21:30:44

标签: asp.net asp.net-mvc dnx

我在使用PowerShell中的两个命令进行子域调试(Windows 10)后调试ASP.NET 5应用程序时出现问题:

以下是我的步骤

  • 应用程序调试正常工作
  • 启用子域调试的Powershell命令是:

    Netsh http add urlacl url=http://tenant1.localhost:60903/ user=everyone
    netsh firewall add portopening TCP 60903 IISExpressWeb enable ALL 
    
  • 检查以运行应用程序

  • 以下是此错误消息:

    "An error occurred attempting to determine the 
    process id of the DNX process hosting your application"
    
  • 的powershell:

    netsh http delete urlacl url=http://tenant3.localhost:60903/ 
    netsh firewall delete portopening protocol=all port=60903
    
  • 应用程序正常运行...

我的新桌面上只有这个问题。在我的笔记本电脑上使用相同的系统(Windows 10)这是正常的... 我该怎么办?

2 个答案:

答案 0 :(得分:1)

这两种配置之间有什么区别吗?你能运行dnvm list并告诉哪个运行时被设置为默认值? Dnx总是使用默认值这里可能是不同版本的运行时,32位对64位或clr对核心clr。

答案 1 :(得分:1)

我想通知您,我通过再使用一个netsh命令解决了这个问题:

 netsh http add urlacl url=http://localhost:60903/ user=everyone

(没有子域名)

在beta8和RC1版本的第二台PC(笔记本电脑)上不需要此命令。 但现在正在开发新机器......