Skip to content

Exception.ToString() failed. #5203

Closed
Closed
@sklivvz

Description

@sklivvz

Minimal repro: dotnet new then modify Program.cs as follows

public class Program
{
    public class Config {}
    public static void Main() { Newtonsoft.Json.JsonConvert.DeserializeObject<Config>(""); }
}

and project.json as follows

{
    "version": "1.0.0-*",
    "compilationOptions": {
        "emitEntryPoint": true
    },

    "dependencies": {
        "NETStandard.Library": "1.0.0-rc2-23811",
        "Newtonsoft.Json": "8.0.2"
    },

    "frameworks": {
        "dnxcore50": { }
    }
}

then dotnet restore, dotnet run

Unhandled Exception:
   Cannot print exception string because Exception.ToString() failed.

Attaching it to visual studio debugger reveals the following error:

Unhandled exception at 0x00007FFFC6988A5C (KernelBase.dll) in min.exe: 0xE0434352 (parameters: 0xFFFFFFFF80070002, 0x0000000000000000, 0x0000000000000000, 0x0000000000000000, 0x00007FFF76A00000).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions