![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.net
L*先生
这个作者很懒,什么都没留下…
展开
-
.net core Program.cs中读取appsettings.json路径读取错误问题
在.net core 3.1中遇到读取appsettings.json路径读取错误问题.原创 2023-11-13 16:12:03 · 211 阅读 · 0 评论 -
crc 仿格西CRC计算工具
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using System.IO;namespaceCRC{undefined.原创 2022-03-31 09:44:03 · 658 阅读 · 0 评论 -
vs App.config启动调试后debug中exe.config不更新问题
vs App.config启动调试后debug中exe.config不更新问题原创 2022-01-06 17:56:06 · 931 阅读 · 0 评论 -
C# 设置允许跨域
1.Global.asax → Application_BeginRequest方法中添加如下代码:protected void Application_BeginRequest(object sender, EventArgs e) { HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*"); if (HttpContext.Current原创 2022-01-05 16:04:53 · 2711 阅读 · 0 评论 -
c# my sql 字段出现0000-00-00 00:00:00时实体转换失败
错误代码:"Unable to convert mysql date/time value to System.DateTime"日期字段中有"0000-00-00"数据值,要修正这个问题,你可以把这些数据设为null,或者在连接字符串中设置"网上有人说 convert Zero Datetime=True"可以解决,但是本人修改后并没有解决亲测可用: conve原创 2017-07-14 09:58:43 · 1095 阅读 · 0 评论 -
在C#代码中应用Log4Net(四)在Winform和Web中捕获全局异常
在Web中捕获全局异常我们只需要在Global.asax文件中添加异常捕获的代码即可。完整Global.asax代码如下所示using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Security;转载 2017-08-30 10:56:44 · 390 阅读 · 0 评论 -
VS“无法查找或打开PDB文件” 解决方案
起初刚装了vs2013,调试程序后只有360浏览器可以成功调试,谷歌和ie都不可以,ie提示找不到文件,谷歌什么都不提示,真坑!后来看输出框,法案现是找不到pdb文件,以下是解决方案使用 VS(Visual Studio)编译程序时会出现“无法查找或打开PDB文件”的提示,并且此时程序会生成失败,无法运行,如下图所示:大家不要惊慌,出现这种提示并不是代码写错了,而是编译器设置的...转载 2019-07-15 14:18:39 · 4905 阅读 · 4 评论 -
postman中post请求正常,但是利用postman生成C#后台http模拟代码之后调用失败问题记录
postman中post请求正常但是利用postman中code功能生成C#后台代码之后,填入C#后台失败postman中code生成的代码引用的是RestSharp(RestfulClient开发(RestSharp帮助类)),postman生成的是undefined,并不是参数类型,改成下图就好了。...原创 2019-08-05 11:26:57 · 6934 阅读 · 0 评论