-
Notifications
You must be signed in to change notification settings - Fork 121
cannot debug ASP.NET Core 2 #538
Comments
If you close and reopen the solution does that fix the issue? |
No. I tried it and also deleted project.json.lock and still the same. When I run dotnet run from cmd it works. From vs it does not work |
TFS: 225788 |
@pantonis do you have .NET Core RC2 Tooling installed? Also, what version of dotnet do you have? |
@balachir If you mean this: https://go.microsoft.com/fwlink/?LinkId=798481 yes. |
I mamaged to reproduce it randomly. Whenever I buuld using dotnet build and then press F5 on vs2015 I can debug. If I clean and build from vs2015 I get the error and when I check debug folder no biuld files exist. |
I'm getting this problem as well. The program '[2632] dotnet.exe' has exited with code -2147450749 (0x80008083). I'm running ASP.Net Core RC2 in VS 2015 Community. I installed dotnet-dev-win-x64.1.0.0-preview1-002702 and I'm building an x64 bit app. The problem occurs when I build from the command line and then open VS and run. Can you tell us what the error code means? |
could you be running into this issue? dotnet/aspnetcore#1480 |
managed to reproduce it. Delete bin and obj files of the project. Then press build solution from VS2015 and run from VS2015. You will get the error |
@pantonis - do you have a global.json file at the project root? Tooling is not calculating the output path from dotnet build correctly in this case. The workaround is to remove the global.json or move it up one level. Note that this assumes you aren't using the default output path (.\bin) |
No I dont have a global.json file |
I am still wondering why this issue was closed. We have 3 Pcs all having the same problem. |
After updating to preview 2 and asp.net core 1 problem still exists. |
@pantonis you should always have a global.json file as indicated. |
I have also just hit this issue on preview2 tooling. I think this issue has been closed prematurely. Even if a workaround exists, its nice to have a clear message that either the underlying problem has been fixed or the team doesn't plan to fix it. For the record I tried the following hacks/workarounds:
|
Switching to the command line was more illuminating (in my case at least, I don't know if this matches issues other posters have). dotnet run gave an error:
Changing project.json to reference the 1.0.0 version of NETCore.App, followed by dotnet restore, dotnet build, and dotnet run was successful. At that point VS F5 was also successful. I would still consider the dubious error messaging within VS to be an issue worthy of fixing, but its certainly must less severe than an issue which blocks running/debugging at all. |
I had the same problem and solved it by uninstalling the nuget package "Microsoft.NETCore.Platforms 1.1.0" |
I had this same issue and updating to the latest .NET Core SDK fixed it. |
Same as gecko-8, I first installed the wrong one x64. After installing the right one x86 it worked |
I created new ASP.NET Core Web Application without changing anything in the code and when I run it I get
The text was updated successfully, but these errors were encountered: