当我尝试启动应用程序时,收到此错误消息。
试图确定承载您的应用程序的DNX进程的进程id时出错
有没有办法解决这个问题?
发布于 2015-12-18 22:33:42
对我来说,这个问题是通过关闭Visual Studio、删除
project.lock.json
并再次启动Visual Studio。
编辑:我使用的是RC1。
发布于 2015-10-16 17:18:55
微软按照release notes中的描述更改了托管模型。
在project.json
中替换依赖项
"Microsoft.AspNet.Server.IIS":"1.0.0-beta7“
使用
"Microsoft.AspNet.Server.Kestrel":"1.0.0-beta8“
在web.config
的handlers
部分中,删除除以下项之外的所有条目
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
完整的web.config
将如下所示:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
</handlers>
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false" startupTimeLimit="3600"/>
</system.webServer>
</configuration>
RC1 :使用RC1时,在移动解决方案文件夹后出现错误。删除bin
和obj
文件夹后,一切都恢复正常。
正如user764754所指出的,简单地重启Visual Studio也会有所帮助。
发布于 2016-04-26 16:00:31
对于其他有这个问题的人,在其他解决方案不起作用的情况下-我在这个帖子中找到了答案:Forcing to use SSL: An error ocurred attempting to determine the process id of the DNX process hosting your application
如果您的项目使用或强制使用SSL,请先运行它而不进行调试(CTRL+F5),它会要求您生成一个本地SSL证书,然后调试就会起作用,错误就会消失。
https://stackoverflow.com/questions/33166403
复制相似问题