BadImageFormatException: Bad IL range. OTPHub.Pages.Counter..ctor()
TargetInvocationException: Eine Ausnahme wurde vom Ziel eines
Aufrufs ausgelöst. System.RuntimeType.CreateInstanceDefaultCtor(bool
publicOnly, bool wrapExceptions)
Es scheint, dass es ein Problem mit der im laufenden Betrieb neu geladenen Build-Assembly gibt.< /p>
Hier ist meine launch.json:
Code: Select all
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "dotnet",
"args": [
"watch",
"--project",
".",
"--verbose"
],
"cwd": "${workspaceFolder}/OTPHub",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}