Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Not able to Debug .NET Core App in VS 2017 #4466


User avatar
0
ajayak created

Hi,

I got the latest version of AspNetZero Core template and tried to run in VS 2017. If I run the app using CTRL+F5, it works fine. But when I try to run the app in debug mode, the app crashes instantly and I get the following message in <ins>Output</ins> window.

'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.4\System.Reflection.Emit.Lightweight.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.4\System.Reflection.Emit.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'DynamicProxyGenAssembly2'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'DynamicProxyGenAssembly2'. 
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.4\System.IO.Compression.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Application Insights Telemetry (unconfigured): {"name":"Microsoft.ApplicationInsights.Dev.RemoteDependency","time":"2018-01-09T12:11:54.4161117Z","tags":{"ai.operation.parentId":"|10cada12-40606802f4d1cd28.","ai.internal.sdkVersion":"rdddsc:2.4.1-1362","ai.operation.id":"10cada12-40606802f4d1cd28","ai.operation.name":"POST /LicenseManagement/CheckLicense","ai.application.ver":"5.0.0.0"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"POST /LicenseManagement/CheckLicense","id":"|10cada12-40606802f4d1cd28.1.","data":"https://www.aspnetzero.com/LicenseManagement/CheckLicense","duration":"00:00:00","resultCode":"200","success":true,"type":"Http","target":"www.aspnetzero.com","properties":{"AspNetCoreEnvironment":"Development","DeveloperMode":"true"}}}}
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.4\System.Diagnostics.Tools.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Application Insights Telemetry (unconfigured): {"name":"Microsoft.ApplicationInsights.Dev.Message","time":"2018-01-09T12:11:54.4470452Z","tags":{"ai.internal.sdkVersion":"dotnet:2.4.0-32153","ai.application.ver":"5.0.0.0","ai.operation.syntheticSource":"SDKTelemetry"},"data":{"baseType":"MessageData","baseData":{"ver":2,"message":"AI (Internal): Operation to stop does not match the current operation.","properties":{"AspNetCoreEnvironment":"Development","DeveloperMode":"true"}}}}
Application Insights Telemetry (unconfigured): {"name":"Microsoft.ApplicationInsights.Dev.RemoteDependency","time":"2018-01-09T12:11:53.2071668Z","tags":{"ai.operation.parentId":"|10cada12-40606802f4d1cd28.","ai.internal.sdkVersion":"rdddsc:2.4.1-1362","ai.operation.id":"10cada12-40606802f4d1cd28","ai.operation.name":"POST /LicenseManagement/CheckLicense","ai.application.ver":"5.0.0.0"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"POST /LicenseManagement/CheckLicense","id":"|10cada12-40606802f4d1cd28.1.","data":"https://www.aspnetzero.com/LicenseManagement/CheckLicense","duration":"00:00:01.2560444","resultCode":"200","success":true,"type":"Http","target":"www.aspnetzero.com","properties":{"AspNetCoreEnvironment":"Development","DeveloperMode":"true"}}}}
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.4\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.4\System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The program '[18112] dotnet.exe: Program Trace' has exited with code 0 (0x0).
The program '[18112] dotnet.exe' has exited with code -42 (0xffffffd6).
The program '[18060] chrome.exe: WebKit' has exited with code -1 (0xffffffff).

Note: Removed unnecessary lines from output


4 Answer(s)
  • User Avatar
    0
    ajayak created

    Here is the output from dotnet --info

    .NET Command Line Tools (2.1.3)
    
    Product Information:
     Version:            2.1.3
     Commit SHA-1 hash:  a0ca411ca5
    
    Runtime Environment:
     OS Name:     Windows
     OS Version:  10.0.16299
     OS Platform: Windows
     RID:         win10-x64
     Base Path:   C:\Program Files\dotnet\sdk\2.1.3\
    
    Microsoft .NET Core Shared Framework Host
    
      Version  : 2.0.4
      Build    : 7f262f453d8c8479b9af91d34c013b3aa05bc1ff
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ajayak,

    We have sent you an email about this problem.

  • User Avatar
    0
    ajayak created

    Thanks @ismcagdas, the issue is resolved now :)

  • User Avatar
    0
    ismcagdas created
    Support Team

    Great :)