asp.net core
写bug的精神小伙
写bug的小伙子
展开
-
C# The entity type ‘IdentityUserLogin<string>‘ requires a primary key to be defined
The entity type ‘IdentityUserLogin’ requires a primary key to be defined. If you intended to use a keyless entity type, call ‘HasNoKey’ in ‘OnModelCreating’当 EF 读取数据时抛出以下异常System.InvalidOperationException: The entity type 'IdentityUserLogin<string>原创 2022-02-10 11:09:01 · 3674 阅读 · 4 评论 -
EFcore Value does not fall within the expected range.
EFcore Value does not fall within the expected range.原创 2021-12-24 14:02:57 · 990 阅读 · 1 评论 -
VisualStudio2019快捷键失效(VS2019快捷键失效)
VisualStudio2019快捷键失效(VS2019快捷键失效)win10 如果visualstuido2019 一些快捷键失效了,不是vs 的原因 是因为win10更新后 部分功能冲突/失效了。vs 2019 更新后快捷提示键 失效修复方式:1.找到输入法语言 右击 ——》设置2.找到“常规” 进入3.向下划,找到“兼容性”——》“使用以前版本的微软拼音输入法” 设置为“开” 即可解决问题。...原创 2021-08-10 14:10:17 · 8761 阅读 · 3 评论 -
vs git .gitignore 文件内容 C# asp.net core
vs git .gitignore 文件内容 C# asp.net core## Ignore Visual Studio temporary files, build results, and## files generated by popular Visual Studio add-ons.#### Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore # User原创 2021-08-10 13:50:43 · 307 阅读 · 0 评论 -
Access to the path ‘C:\Websites\PMS\wwwroot\ExcelTemplate\MachineExcel.xlsx‘ is denied.
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录前言一、解决方法总结前言在使用asp.net core 下载文件时 报了这样的错:Access to the path 'C:\Websites\PMS\wwwroot\ExcelTemplate\MachineExcel.xlsx' is denied. 其实不是你代码问题 而是 被下载的那个文件权限问题。提示:以下是本篇文章正文内容,下面案例可供参考一、解决方法在服务器上找到被下载的那个文件,右击——&g原创 2021-07-16 11:57:54 · 403 阅读 · 0 评论 -
An unhandled exception occurred while processing the request. Exception: Rotativa.AspNetCore.WkhtmlD
asp.net 5.0 (asp.net core 5.0) 在使用 Rotativa 进行HTML 转PDF 操作时,页面报出以下错误:An unhandled exception occurred while processing the request.Exception:Rotativa.AspNetCore.WkhtmlDriver.Convert(string wkhtmlPath, string switches, string html, string wkhtmlExe)Sta原创 2021-07-12 18:33:31 · 1275 阅读 · 6 评论