zoukankan      html  css  js  c++  java
  • [Bug]Unable to start process dotnet.exe

    This morning I did a sync of a repo using of Visual Studio and then tried to run a web application I was going start working when I got this error:

    Unable to start process C:Program Filesdotnetdotnet.exe. The web server request failed with status code 500, Internal Server Error. The full response has been written to C:UsersericlAppDataLocalTempHttpFailure_11-01-57.html.

    As directed by the error message I opened up the referenced html file. The file stated the requested page cannot be access because the related configuration data for the page is invalid. Along with the path to the configuration file. Here is a screen shot of the rendered file.

    I checked the config file referenced in the error message and I saw nothing wrong. It is the default generated file with no changes.

    Since this project ran fine on another computer the day before I thought I would search for my profile name on from the other computer on the one having issues. This led me to the .vs/config folder found at the solution level of my application which contained the applicationhost.config file.

    The solution

    applicationhost.config has a lot of information in it, but the section I needed to change was under the sites tag. The physical path was set to the directory where the project was located on my other computer. I changed the path to match the path on my current computer and all worked fine. Not sure why this path isn’t relative one it exists within the solution. This is the line that I needed to change.

    <virtualDirectorypath="/" physicalPath="C:UsersericlSourceReposASP.NET Core ContactsContactssrcContacts" />

    As an alternative it also works to close Visual Studio delete the whole .vs folder and reopen the project in Visual Studio. This causes the config file to regenerated with the proper values.

    Looks like the .vs folder is in the default .gitignore file, but my project was missing the ignore file.

    原文:

    http://www.elanderson.net/2016/09/unable-to-start-process-dotnet-exe/

  • 相关阅读:
    小程序双重for循环实现tab切换小demo
    小程序基础操作小总结
    一道关于类型转换的面试题的研究
    面试准备(6)vue专题
    面试准备(5)一道关于循环,事件执行顺序的题进行剖析
    微信小程序弹出授权用户信息和手机号
    面试准备(4) 作用域 预解析 字面量 arguments 等考察点练习
    ABC135
    CodeForces 1288C
    P4170
  • 原文地址:https://www.cnblogs.com/wolf-sun/p/6876939.html
Copyright © 2011-2022 走看看