上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 1 new WebHostBuilder ,并传入 IHostBuilder 和 ApplicationBuilder 并初始化 , 执行委托 创建HttpListenerServer 服务,没有则返回默认 监听地址,注册中间件,获取监听地址, 遍历 生成管道 对象 requestDelegate 阅读全文
posted @ 2023-05-23 21:39 孤海飞雁 阅读(194) 评论(0) 推荐(0)
摘要: https/http下 授权跳转 总是不能跳转 idnentoty 4.00版本,升级版本后解决 20240623 上图错误 解决方法: 这是你 identity 的地址已填写错误,仔细检查下端口等 RedirectUris = { "https://localhost:7098/signin-oi 阅读全文
posted @ 2023-04-29 19:00 孤海飞雁 阅读(156) 评论(0) 推荐(0)
摘要: asp.net 核心 MVC - 找不到布局视图“~/视图/共享/_Layout.cshtml” - 堆栈溢出 (stackoverflow.com) 页面属性/生成操作/内容 阅读全文
posted @ 2023-04-29 13:38 孤海飞雁 阅读(26) 评论(0) 推荐(0)
摘要: 在刷新Token ok后 数据有返回,但是 最开始的请求那里总是underfined,这个找了一天后找到原因,记得return, 没有 return就是underfined 阅读全文
posted @ 2023-04-28 10:37 孤海飞雁 阅读(50) 评论(0) 推荐(0)
摘要: 错误使用 app.UseAuthentication();//认证 这里要加,位置不能反 app.UseAuthorization();//授权 app.UseCors();//启用Cors 解决方法 app.UseCors();//启用Cors app.UseAuthentication();// 阅读全文
posted @ 2023-04-25 10:28 孤海飞雁 阅读(61) 评论(0) 推荐(0)
摘要: System.InvalidOperationException:“Dynamic port binding is not supported when binding to localhost. You must either bind to 127.0.0.1:0 or [::1]:0, or 阅读全文
posted @ 2023-04-22 12:26 孤海飞雁 阅读(114) 评论(0) 推荐(0)
摘要: 这个百度一大片,到处不行,国外网站找也是有问题,官网文档也是有点操蛋。搞到现在ok了 直接上代码。 //Program.cs 配置 #region 日志 LogManager.LoadConfiguration(ParameterConfig.Nlog).GetCurrentClassLogger( 阅读全文
posted @ 2023-04-14 22:53 孤海飞雁 阅读(311) 评论(0) 推荐(0)
摘要: <el-form-item label="菜单权限"> <el-tree :data="navList" ref="treeRef" node-key="menuId" highlight-current=“true” :props="defaultProps" @check="checked" s 阅读全文
posted @ 2023-04-13 18:29 孤海飞雁 阅读(333) 评论(0) 推荐(0)
摘要: 前面还好好的,今天线上就反馈出这个问题。百度一下,就是iframe框不能返回数据,下面解决方法 解决方法一//代码中添加响应头app.Use(async (context, next) => { // Do work that can write to the Response. context.R 阅读全文
posted @ 2023-03-29 17:03 孤海飞雁 阅读(456) 评论(0) 推荐(0)
摘要: var services = new ServiceCollection() .AddTransient<Foo>() .AddScoped<Bar>() .Configure<HttpClientFactoryOptions>(options => { options.HandlerLifetim 阅读全文
posted @ 2023-03-14 22:16 孤海飞雁 阅读(27) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页