var currentUser = await _userManager.GetUserAsync(HttpContext.User);处理请求时发生了未处理的异常。NullReferenceException:对象引用没有设置为对象的实例。若要显示其他信息,请调用'DbContextOptionsBuilder.EnableSensitiveDataLogging'.System.NullReferenceException:对象引用没有设置为对象的实例
我正在创建一个与身份服务器集成的Blazor WebAssembly应用程序。我对身份验证有一些问题,因为当我将API称为时,这里是帖子(我仍然在四处寻找解决方案)。如果用户单击链接以查看主页,则会出现错误,因为Blazor找不到该页面。System.NullReferenceException: Arg_NullReferenceException at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsyncMicrosoft.
是否有可能双向地绑定一个集合在Blazor子组件中?TLDR;在执行ValueChanged EventCallBack处理程序时,将对象中的类型list的属性设置为null,这会抛出NullReferenceException,因为它在页面中设置为nullis completly cleared and
// set to NULL... this throws exceptions everywhere in the index.blazor
@if (UserManager.GetUserAsync(User).Result.ProfilePicture.Length > 0 && UserManager.GetUserAsync(UserNullReferenceException: Object reference not set to an instance of an object.0+<<ExecuteAsync>b__1>d.MoveNext() in _Layout.cshtml, line 102
Stack Qu