升级NET6.0后报错InvalidOperationException: The view 'Index' was not found
今天将asp.net core2.1升级到NET6.0后报错:InvalidOperationException: The view 'Index' was not found.如图:大概意思就是Index视图没有找到导致出错,仔细看了,视图是有的.网上找了很多方法都没有用.最后折腾半天,发现之前升
今天将asp.net core2.1升级到NET6.0后报错:InvalidOperationException: The view 'Index' was not found.如图:大概意思就是Index视图没有找到导致出错,仔细看了,视图是有的.网上找了很多方法都没有用.最后折腾半天,发现之前升
今天在将项目升级到asp.net core6.0后发现报错A relational store has been configured without specifying either the DbConnection or connection string to use.项目使用的数据库是My
今天将网站程序由asp.net core2.1升级到NET6.0后报错Could not load type 'Microsoft.EntityFrameworkCore.Query.RelationalQueryContextFactory' from assembly.看了大半天.所有包都是最新
今天在ubuntu发直接运行命令dotnet /var/www/down/Down.Web.dll发现报错Value cannot be null. (Parameter 'connectionString') at Hangfire.MySql.MySqlStorage等.起初还以为是配置有问题,
安装sqlserver linux 2019报错无法打开 ‘microsoft.asc’: 没有那个文件或目录,Cannot open 'microsoft.asc': there is no such file or directory
今天在查看网站日志的,看到警报:Using an in-memory repository. Keys will not be persisted to storage.Neither user profile nor HKLM registry available. Using an epheme
今天在用Visual Studio 2022发布NET6.0或者说asp.net core发布时,在web.config包含production或者Development,VS在发布时替换asp.net core中的web.config
今天在用vs2022写类属性字段时想根据内容判断返回指定的内容,结果报错: CS8050 只有自动实现的属性才能具有初始值设定项。 错误代码如下public class MyClass{public string msg{get{if (msg.Contains("error")) return "
最近在用PowerDesigner 16.7生成SqlServer脚本时,突然多了collate chinese_prc_ci_as和constraint等字眼在语句中,如图:这些其实在MSSQL创建时中不要问题其实也不大,特别是字符集.当然要指定的除外.那么如何让PD生成SQL语句时不带colla
今天开发sso登录认证相关在用HttpClient设置ContentType时报错:xxx头名称误用。请确保将请求头用于 HttpRequestMessage,将响应头用于HttpResponseMessage,将内容头用于HttpContent对象。代码如下: HttpClient.Default