今天在 相关的软件列表

C#asp.net基于MiniExcel实现多个sheet导出和下载
C#.net

C#asp.net基于MiniExcel实现多个sheet导出和下载

2023-12-31 标签:C#,asp.net,MiniExcel,实现,多个,MiniExcel导出多个sheet,MiniExcel添加多个sheet,Epplus,NPOI,excel处理C#,aspose.cells

之前一直用Epplus和NPOI做excel处理,这都都不太好用,而且Epplus5.0开始不能商用,aspose.cells挺好用,就是要money,前几天想找替代品,偶然找到国内大神开源的miniexcel,看各种介绍还不错,而且可以避免OOM.今天在搞asp.net开发excel导出下载遇到个

C# NiceLabel报错ErrorService.Handler property must be assigned before being used!
C#.net

C# NiceLabel报错ErrorService.Handler property must be assigned before being used!

2023-01-13 标签:C# NiceLabel,ErrorService.Handler,property must be assigned,NiceLabel二次开发

今天在用C#进行NiceLabel二次开发时,报错ErrorService.Handler property must be assigned before being used!百度没有什么资料,后面认真看了下NiceLabel官方的C#二次开发示例才知道少了引擎初始化.即加上下面一行代码即可:P

WinAppDriver DatePicker中的checkbox选中问题C#
C#.net

WinAppDriver DatePicker中的checkbox选中问题C#

2022-06-24 标签:WinAppDriver,DatePicker,checkbox选中,UI,空格键,SendKeys,DatetimePicker,UI自动化测试,C#WinAppDriver

今天在用WinAppDriver进行UI自动化开发测试时,发现DatePicker中的Checkbox并不支持点击选择.网上百度谷歌都没有找到答案.折腾大半天,后面才找到解决的思路,那就是发送空格键选其选中.具体就是先将DatetimePicker焦点,然后发送空格键.大致代码如下:DatePick

C#自动获取文件编码txt自动判断文件编码
C#.net

C#自动获取文件编码txt自动判断文件编码

2022-04-28 标签:C#自动获取文件编码,自动判断文件编码,C#判断文件编码

今天在用c#读取txt文件,乱码了,用默认的编码不行,得用指定的编码才可以.因为每个文件的编码可能都不一样,有没有一种一劳永逸的方法,那肯定是有~自动判断文件的编码.下面就直接上代码了.public static Encoding GetEncoding(string filename){try{r

远程桌面报错
服务器

远程桌面报错"出现了内部错误"An internal error has occurred的解决方法

2022-03-15 标签:远程桌面,,出现内部错误,An internal error occurred,解决方法,Remote Desktop,RDP

今天在通过域名进行远程桌面出错:出现了内部错误(An internal error has occurred),如图:但是通过ip却能正常远程.很是奇怪.记得之前也遇到过类似的问题,解决了,可现在又出来了.现在先记着这次的解决方法吧.出现些错误的原因一般是低版本的系统远程高版本的系统

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 "