f 相关的软件列表

升级NET6.0后报错InvalidOperationException: The view 'Index' was not found
Asp.net

升级NET6.0后报错InvalidOperationException: The view 'Index' was not found

2022-02-14 标签:InvalidOperationException,升级NET6.0,The view Index found,视图,asp.net,core2.1,Microsoft,AspNetCore,Razor,Design

今天将asp.net core2.1升级到NET6.0后报错:InvalidOperationException: The view 'Index' was not found.如图:大概意思就是Index视图没有找到导致出错,仔细看了,视图是有的.网上找了很多方法都没有用.最后折腾半天,发现之前升

NET6报错A relational store has been configured without specifying either the DbConnection or connection string to use
Asp.net

NET6报错A relational store has been configured without specifying either the DbConnection or connection string to use

2022-01-28 标签:NET6,报错,A,relational,store,configured,without,specifying,either,DbConnection,connection,string,use,MysqlContext,options,ConnectionString,版本,asp.net,core6.0

今天在将项目升级到asp.net core6.0后发现报错A relational store has been configured without specifying either the DbConnection or connection string to use.项目使用的数据库是My

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