y 相关的软件列表

ubuntu asp.net core读取appSettings.json问题
Asp.net

ubuntu asp.net core读取appSettings.json问题

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等.起初还以为是配置有问题,

C#net core报Keys will not be persisted to storage
Asp.net

C#net core报Keys will not be persisted to storage

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

VS发布asp.net core项目在web.config包含production环境变量
Asp.net

VS发布asp.net core项目在web.config包含production环境变量

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

VisualStudio报错CS8050只有自动实现的属性才能具有初始值设定项(C#)
C#.net

VisualStudio报错CS8050只有自动实现的属性才能具有初始值设定项(C#)

2022-01-06 标签:VisualStudio,报错,CS8050,自动,实现,属性,初始值,设定,C#,C#自动实现属性,C#初始值设定项

今天在用vs2022写类属性字段时想根据内容判断返回指定的内容,结果报错: CS8050 只有自动实现的属性才能具有初始值设定项。 错误代码如下public class MyClass{public string msg{get{if (msg.Contains("error")) return "

PowerDesigner生成sql不带constraint和collate chinese_prc_ci_as
其它语言

PowerDesigner生成sql不带constraint和collate chinese_prc_ci_as

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

C# HttpClient设置ContentType和Authorization报错
C#.net

C# HttpClient设置ContentType和Authorization报错

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

vs2019发布报错该项目中不存在目标“GatherAllFilesToPublish”
Asp.net

vs2019发布报错该项目中不存在目标“GatherAllFilesToPublish”

2021-05-18 标签:vs2019,GatherAllFilesToPublish,Microsoft,Import,Project,targets,VSToolsPath,Condition,VisualStudioVersion,MSBuildBinPath,CSharp,PropertyGroup

用VS2019打开一个以前用VS2010写的asp.net项目报错GatherAllFilesToPublish后,设置好发布选项(发布到文件夹),发布的时候报错如图: