2022-01-28 标签:NET6,Could,load,type,Microsoft,EntityFrameworkCore,Query,assembly,dll,EntityFramework,EFCore,升级,报错,asp.net,core2.1,NET6.0,包都
今天将网站程序由asp.net core2.1升级到NET6.0后报错Could not load type 'Microsoft.EntityFrameworkCore.Query.RelationalQueryContextFactory' from assembly.看了大半天.所有包都是最新
2022-01-28 标签:ubuntu,asp.net core,appsettings.json,问题,dotnet,appSettings,Value cannot be null,Hangfire.MySql.MySqlStorage,ubuntu appSettings
今天在ubuntu发直接运行命令dotnet /var/www/down/Down.Web.dll发现报错Value cannot be null. (Parameter 'connectionString') at Hangfire.MySql.MySqlStorage等.起初还以为是配置有问题,
2022-01-23 标签:安装,sqlserver,linux,2019,报错,无法,打开,microsoft,asc,没有,文件,目录,SQL,Server,ubuntu,https,packages
安装sqlserver linux 2019报错无法打开 ‘microsoft.asc’: 没有那个文件或目录,Cannot open 'microsoft.asc': there is no such file or directory
2022-01-22 标签:C#,net,core,Keys,persisted,storage,存储,Using,repository,HKLM,应用程序,密钥,注册表,用户,修改,配置文件,memory,Neither
今天在查看网站日志的,看到警报:Using an in-memory repository. Keys will not be persisted to storage.Neither user profile nor HKLM registry available. Using an epheme
2022-01-22 标签:VS,发布,asp.net,core,项目,web,config,包含,production,环境变量,EnvironmentName,PropertyGroup,设置,配置文件,文件,Visual,Studio,2022,NET6.0
今天在用Visual Studio 2022发布NET6.0或者说asp.net core发布时,在web.config包含production或者Development,VS在发布时替换asp.net core中的web.config
2022-01-06 标签:VisualStudio,报错,CS8050,自动,实现,属性,初始值,设定,C#,C#自动实现属性,C#初始值设定项
今天在用vs2022写类属性字段时想根据内容判断返回指定的内容,结果报错: CS8050 只有自动实现的属性才能具有初始值设定项。 错误代码如下public class MyClass{public string msg{get{if (msg.Contains("error")) return "
2022-01-04 标签:PowerDesigner,PD生成sql,不带,collate,chinese,constraint,DEFAULT,COMPUTE,DATATYPE,ExtNullConstName,ExtDeftConstName,PD生成sql不带collate,PD生成sql不带constraint
最近在用PowerDesigner 16.7生成SqlServer脚本时,突然多了collate chinese_prc_ci_as和constraint等字眼在语句中,如图:这些其实在MSSQL创建时中不要问题其实也不大,特别是字符集.当然要指定的除外.那么如何让PD生成SQL语句时不带colla
2021-11-05 标签:C#,HttpClient,设置,ContentType,Authorization,报错,HttpContent,application,json,content,new,Add,postParameters,Headers,用于,代码,如下,sso
今天开发sso登录认证相关在用HttpClient设置ContentType时报错:xxx头名称误用。请确保将请求头用于 HttpRequestMessage,将响应头用于HttpResponseMessage,将内容头用于HttpContent对象。代码如下: HttpClient.Default
2021-05-19 标签:MySQL Workbench,MySQL,Workbench,错误,Target,host,configured,Windows,seems,different,OS,8.0,版本,重新安装,报错,Server,Status,could,acquire
今天升级MySQL Workbench后打开Server Status报错:could not acquire management access for administration Runtime Error: Target host is configured as Windows, but
2021-05-18 标签:vs2019,GatherAllFilesToPublish,Microsoft,Import,Project,targets,VSToolsPath,Condition,VisualStudioVersion,MSBuildBinPath,CSharp,PropertyGroup
用VS2019打开一个以前用VS2010写的asp.net项目报错GatherAllFilesToPublish后,设置好发布选项(发布到文件夹),发布的时候报错如图: