ign*_*130 5 .net identityserver4
如标题所示:控制台应用程序在执行以下行时崩溃
disco = await DiscoveryClient.GetAsync("http://localhost:5000");
Run Code Online (Sandbox Code Playgroud)
没有抛出异常,即使我将它包装在try catch调试中也只是断线;输出中没有相关信息。Visual Studio 只是停止调试应用程序并返回到编辑模式。
有人遇到过类似的事情吗?:( 我可以尝试做什么?
我使用的是VS2015,控制台应用程序是.NETCoreApp v1.0,使用“IdentityModel”:“2.0.0-rc6”;。Identity Server 4 在 localhost:5000、.NETCoreApp v1.0 上运行。
GetAsync使用https://demo.identityserver.io参数调用方法也会导致所描述的错误。
我正在关注本教程:https://identityserver4.readthedocs.io/en/dev/quickstarts/1_client_credentials.html
实际上它是有效的,但我在控制台应用程序中滥用了异步/等待调用。这里解释了如何正确执行此操作:Debugger Stops after async HttpClient.GetAsync() call in Visual Studio
| 归档时间: |
|
| 查看次数: |
2025 次 |
| 最近记录: |