随笔分类 -  Asp.Net

摘要:.Net Windows Forms(窗体程序)在服务端运行不了的问题(本机可以) 原因:是在Form1的构造函数中多了这几行,在服务端找不到配制文件。 //DomSqlMapBuilder builder = new DomSqlMapBuilder(); //ISqlMapper mapper 阅读全文
posted @ 2024-07-11 13:15 三瑞 阅读(23) 评论(0) 推荐(0) 编辑
摘要:C# 枚举帮助类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Utils { /// <su 阅读全文
posted @ 2022-06-18 17:46 三瑞 阅读(221) 评论(0) 推荐(0) 编辑
摘要:C# 中执行使用委托执行代码块 以实现公用try catch public static T Exec<T>(Func<T> fun) { T result = default(T); try { result = fun(); } catch { } return result; } protec 阅读全文
posted @ 2022-06-18 17:33 三瑞 阅读(105) 评论(0) 推荐(0) 编辑
摘要:C# 会自动替换 变量 把形如 "{{varName}}" 替换成对应的数值 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using Sy 阅读全文
posted @ 2022-03-31 16:27 三瑞 阅读(272) 评论(0) 推荐(0) 编辑
摘要:C# .Net WebClient http及https请求及上传文件 using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using Syste 阅读全文
posted @ 2021-12-09 17:54 三瑞 阅读(2243) 评论(0) 推荐(0) 编辑
摘要:借鉴: https://blog.csdn.net/qq_25407771/article/details/113842722 NuGet上搜 BouncyCastle 并安装,直接上cs文件 using Org.BouncyCastle.Crypto; using Org.BouncyCastle 阅读全文
posted @ 2021-12-09 10:57 三瑞 阅读(1539) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Linq; using System.Net; using Syst 阅读全文
posted @ 2021-08-24 17:01 三瑞 阅读(571) 评论(0) 推荐(0) 编辑
摘要:C# IndexOf 报错 值不能为null,参数名value 原因就是IndexOf 方法中传了null 就把这个错误! 值不能为 null。 参数名: s 赋值也会报上面的错.JsonText = "未能从程序集“”中加类型“”" 阅读全文
posted @ 2021-08-02 18:25 三瑞 阅读(615) 评论(0) 推荐(0) 编辑
摘要:拦接器 public class AutoDesensitizationMethodInterceptor : IMethodInterceptor { public object Intercept(IMethodInvocation invocation, params object[] arg 阅读全文
posted @ 2021-05-20 19:51 三瑞 阅读(299) 评论(0) 推荐(0) 编辑
摘要:[TestClass] public class FacilityTest {public FacilityTest() { } [TestInitialize] public void InitTestData() { } [TestCleanup] public void ClearTestDa 阅读全文
posted @ 2021-05-20 19:10 三瑞 阅读(81) 评论(0) 推荐(0) 编辑
摘要:安装Asp.net mvc4 时报错:x80070005 拒绝访 解决方法: 运行 dcomcnfg 组件服务》计算机》我的电脑》DCOM配置》Windows Management and Instrumentation右击》属性》安全》编辑》将ASPNET这个用户(IIS_IUSRS、IUSR)加 阅读全文
posted @ 2021-03-11 16:52 三瑞 阅读(406) 评论(0) 推荐(0) 编辑
摘要:BaseSqlMapDaoEx using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System 阅读全文
posted @ 2021-02-18 17:03 三瑞 阅读(95) 评论(0) 推荐(0) 编辑
摘要:JSON 反序列化 报错 Bad state (incorrect header check) 原因是返回有反回的对象多了序列化了一次 所以反两次就对了 阅读全文
posted @ 2021-01-25 14:52 三瑞 阅读(376) 评论(0) 推荐(0) 编辑
摘要:文件扩展名Content-Type(Mime-Type)文件扩展名Content-Type(Mime-Type) .*( 二进制流,不知道下载文件类型) application/octet-stream .tif image/tiff .001 application/x-001 .301 appl 阅读全文
posted @ 2021-01-08 11:06 三瑞 阅读(243) 评论(0) 推荐(0) 编辑
摘要:外部插件:(http://ffmpeg.org/download.html) FfmpegHelper.cs 文件 using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; u 阅读全文
posted @ 2021-01-05 14:18 三瑞 阅读(184) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-12-01 14:36 三瑞 阅读(0) 评论(0) 推荐(0) 编辑
摘要:“/”应用程序中的服务器错误。 编译错误 说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误消息: BC30560: “ExtensionAttribute”在命名空间“System.Runtime.CompilerServices”中 阅读全文
posted @ 2020-11-27 10:03 三瑞 阅读(1022) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示