我有一个运行 Blazor 服务器的 .net 5.0 预览版 7 项目,并且身份登录工作正常,直到我搭建了身份登录页面。The returnUrl field is required.现在,一旦加载登录页面,我就会收到表单错误消息
当我调试OnGetAsyncLogin.cshtml.cs 中的方法时,它显示 returnUrl 确实有一个值。
我<Nullable>enable</Nullable>在 csproj 中有,以防万一这会有所作为。
这是 Login.cshtml.cs 和 Login.cshtml 文件内容与脚手架完全相同,并导致了问题。有什么想法可能是错的吗?
// Login.cshtml.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
using POS.WebAdmin.Data.Model;
namespace POS.WebAdmin.Areas.Identity.Pages.Account
{
[AllowAnonymous]
public class LoginModel : PageModel
{
private readonly UserManager<ApplicationUser> _userManager;
private readonly SignInManager<ApplicationUser> _signInManager;
private readonly …Run Code Online (Sandbox Code Playgroud) My android app is filling up the logs with messages like this (making logcat almost useless):
W ResourceType: For resource 0x7f1001b5, entry index(437) is beyond type entryCount(157)
The resource ID changes from line to line, as well as the index and entryCount numbers.
此问题仅发生在发布版本上。我知道它发生在 Android 7.0、7.1 和 8.0 上。我看过 Android 10 中的一些日志猫,但没有遇到此问题。
我的应用程序的目标是 sdk 30,minSdk 24。我有multiDexEnabled true. 使用 Java 8 (1.8) 进行编译。100% 用 Kotlin 编写。
有一些类似的问题,但没有任何对我有用的答案,这里,这里,这里,这里
我尝试aapt dump --values resources myAPK.apk > …