05 2023 档案

C# 中实现对List中的数据查重操作
摘要:一、列表查重操作核心如下 1.1、常用列表的查重操作核心如下: ``` //查找出列表中的所有重复元素 private static List QueryRepeatElementOfList(List list) { List listTmp = new List(); if (list!=nul 阅读全文

posted @ 2023-05-31 17:49 糯米白白 阅读(3134) 评论(0) 推荐(0) 编辑

.Net Core Hangfire 运行时间偏差问题
摘要:实际运行和设置的运行时间偏差八小时 AddOrUpdate中的默认是UTC时间,需要手动设置为Local ![](https://img2023.cnblogs.com/blog/2922453/202305/2922453-20230530104231710-1482449375.png) `Re 阅读全文

posted @ 2023-05-30 10:46 糯米白白 阅读(347) 评论(0) 推荐(0) 编辑

C# 该行已经属于另一个表。
摘要:`table.Rows.Add(dr);` 改为 `table.Rows.Add(dr.ItemArray);` 阅读全文

posted @ 2023-05-29 14:02 糯米白白 阅读(122) 评论(0) 推荐(0) 编辑

js下载pdf文件
摘要:// 点击下载文件参数href:下载地址,参数filename:文件名(可自定义文件名) ``` downloadFile(href, fileName) { // 获取heads中的filename文件名 let a = document.createElement("a"); a.style.d 阅读全文

posted @ 2023-05-18 15:53 糯米白白 阅读(874) 评论(0) 推荐(0) 编辑

水晶报表 加载报错 An error has occurred while attempting to load the Crystal Reports runtime
摘要:源错误: Crystal Reports An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions a 阅读全文

posted @ 2023-05-18 10:18 糯米白白 阅读(83) 评论(0) 推荐(0) 编辑

Windows 下删除已有第三方服务
摘要:方法 1:使用「注册表」删除 Windows 服务 注册表是 Windows 操作系统和应用程序存储其低层级配置的数据库,当然也包括了「服务」。在 Windows 中删除任何「服务」最简单方法就是使用「注册表编辑器」: 1.使用Windows + R快捷键打开「运行」——执行regedit打开「注册 阅读全文

posted @ 2023-05-17 11:13 糯米白白 阅读(346) 评论(0) 推荐(0) 编辑

C# 程序不包含适合于入口点的静态 "Main" 方法
摘要:由类转为网站项目缺少配置 在Web.config下的configuration节点下添加 <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExten 阅读全文

posted @ 2023-05-12 09:56 糯米白白 阅读(328) 评论(0) 推荐(0) 编辑

C# 如何将类库项目转换为Web应用程序项目?
摘要:1)在靠近顶部的元素之后添加 <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> 2)删除Local 3)在文件的底部,在 阅读全文

posted @ 2023-05-12 09:10 糯米白白 阅读(163) 评论(0) 推荐(0) 编辑

水晶报表导出中文字符乱码
摘要:在ASP.Net开发的页面上嵌入的水晶报表,中文字符和英文字符均能正确显示 但是导出为PDF后发现中文字符乱码了 所有的字体都是“Arial” 解决办法: 针对中文显示的字段或者参数,采用中文字体,比如“宋体”即可解决 为了好看并且兼容,索性将所有的字体都改为“宋体”,否则部分为“宋体”,部分为别的 阅读全文

posted @ 2023-05-11 18:27 糯米白白 阅读(64) 评论(0) 推荐(0) 编辑

VS修改NuGet包默认存放位置
摘要:1、问题描述 默认情况下,NuGet下载的包存放在系统盘(C盘中,一般在路径C:\Users\用户.nuget\packages下),这样一来,时间长了下载的包越多,C盘占用的控件也就越多。 那么有没有办法将默认的下载位置修改掉呢?答案肯定是可以的。 2、修改默认存放位置的目的 目的很简单,当然是给 阅读全文

posted @ 2023-05-10 10:44 糯米白白 阅读(921) 评论(0) 推荐(0) 编辑

C# .Net Core 合并PDF文件
摘要:使用 PdfSharpCore nuget包 代码实现 using Microsoft.AspNetCore.Razor.TagHelpers; using PdfSharpCore.Pdf; using PdfSharpCore.Pdf.IO; using System; using System 阅读全文

posted @ 2023-05-10 10:34 糯米白白 阅读(549) 评论(0) 推荐(0) 编辑

C# PDFSharp No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
摘要:在.Net Core框架使用PdfSharp插件时出现问题 需要装Core版的PdfSharp PdfSharpCore 阅读全文

posted @ 2023-05-10 10:28 糯米白白 阅读(406) 评论(0) 推荐(0) 编辑

Linux下查找Nginx配置文件位置
摘要:1、查看Nginx进程 ps -aux | grep nginx 圈出的就是Nginx的二进制文件 2、测试Nginx配置文件 /usr/sbin/nginx -t 可以看到nginx配置文件位置 3、nginx的使用(启动、重启、关闭) 首先利用配置文件启动nginx。 nginx -c /usr 阅读全文

posted @ 2023-05-05 14:32 糯米白白 阅读(7476) 评论(0) 推荐(0) 编辑

fatal: unable to access 'xxx': Failed to connect to 127.0.0.1 port xxx: Connection refused
摘要:Git 拉取Gitee仓库报错:“fatal: unable to access 'xxx': Failed to connect to 127.0.0.1 port xxx: Connection refused” 之前使用了代理导致git访问错乱 1.本地查看是否Git使用了代理 git con 阅读全文

posted @ 2023-05-04 16:26 糯米白白 阅读(189) 评论(0) 推荐(0) 编辑

unix:///var/run/supervisor/supervisor.sock no such file
摘要:问题 unix:///var/run/supervisor/supervisor.sock no such file 原因 使用过程中可能是因为机器宕机,supervisor没有正常关掉,导致/var/run目录下supervisor.sock文件被删除,找不到所以失败报错unix:///var/r 阅读全文

posted @ 2023-05-04 11:39 糯米白白 阅读(643) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示