net 相关的软件列表

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

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后,设置好发布选项(发布到文件夹),发布的时候报错如图:

.net批量插入报错:来自数据源的 String 类型的给定值不能转换为指定目标列的类型 nvarchar
C#.net

.net批量插入报错:来自数据源的 String 类型的给定值不能转换为指定目标列的类型 nvarchar

2021-05-07 标签:net,批量,插入,报错,来自,数据源,String,类型,给定,不能,转换,指定,目标,nvarchar,50,长度,错误

今天在做.net批量插入SqlServer报错:来自数据源的 String 类型的给定值不能转换为指定目标列的类型 nvarchar.报此错误一般是插入的内容太长,目标字段设定的长度太短导致.比如截图的ConfigDesc字段,长度限定为50,实际内容超过50就会报错,解决办法就是把长度设置成合适的

asp.net Invalid non-ASCII or control character in header
Asp.net

asp.net Invalid non-ASCII or control character in header

2021-01-10 标签:asp.net,Invalid,non,ASCII,control,character,header,Response,Redirect,Uri,EscapeUriString,字符,跳转,0x7F16,OK,url,编码,后端,链接

今天进行asp.net后端Response.Redirect跳转的时候提示错误:Invalid non-ASCII or control character in header: 0x7F16.大概的意思是包含了非ASCII字符即非法字符.那么如何解决了,很简单,将链接用Uri.Esca

如何理解前端模块化
JavaScript

如何理解前端模块化

2020-07-22 标签:理解,前端,模块化,加载,模块,文件,js,请求,维护,打包,开发,代码,引入,命名,好处,增加,修改,兼容性问题,报错,JavaScript

在 JavaScript 发展初期,我们并没有前后端分离的说法。我刚开始做 asp.net 或者 jsp 开发的时候,基本就是我一个人承担了所有的开发任务:html 页面、简单的 js 交互逻辑、后端开发、数据库建表以及写文档等。这样做的好处就是我想修改哪就修改哪,不用通知任何人。可是随着前端的发展