登录
首页 » C# » log4net 在asp.net 记录全局错误例子

log4net 在asp.net 记录全局错误例子

于 2015-06-10 发布
0 235
下载积分: 1 下载次数: 0

代码说明:

log4net 在asp.net 记录全局错误例子

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C# 操作防火墙(ipseccmd)示例源码
    C# 操作防火墙(ipseccmd)示例源码
    2018-03-14下载
    积分:1
  • 物联网开发信息网关(DotNetty)
    JT808-Server 是基于Netty和Spring Boot框架,实现了JT/T 808部标协议的服务端程序; 在网上看到Azure团队开源的DotNetty框架,一时兴起写了个基于DotNetty的Tcp Server Demo 解析了JT808的部分指令,应答部分暂时未弄完,代码写的比较随意请不要在意。 部分代码参考了java版本的jt808协议解析 https://github.com/hylexus/jt-808-protocol 感慨JAVA强大的同时,还是喜欢C#强大的语法,希望.net core发展越来越好 直接运行程序,端口默认9623(在Main方法里面修改),可以使用网络调试助手联调(ToolNetAssist.exe)
    2019-11-08下载
    积分:1
  • C#绘制动态实时的曲线图(含波形图控件以及demo源码)
    C#绘制动态实时的曲线图(含波形图控件以及demo源码)
    2019-09-23下载
    积分:1
  • C# 套打Demo
    套打Demo 【核心代码】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace Print_Demo{ public partial class Form1 : Form { public PrintDocument printDt = new PrintDocument(); //打印文档对象 Font printFont; //打印使用的字体 public Form1() { InitializeComponent(); } void printDt_PrintPage(object sender, PrintPageEventArgs e) { float pointX = 10; float pointY = 10; e.Graphics.DrawString("打印内容", new Font("宋体", 16F), Brushes.Black, pointX 60, pointY); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 26,pointX 300,pointY 26); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 35); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 56, pointX 300, pointY 56); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 65); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 86, pointX 300, pointY 86); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 95); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 116, pointX 300, pointY 116); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 125); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 146, pointX 300, pointY 146); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 155); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 176, pointX 300, pointY 176); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 185); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 206, pointX 300, pointY 206); e.Graphics.DrawString("检测结果", printFont, Brushes.Black, pointX, pointY 233); e.Graphics.DrawString("通过", new Font("宋体",22F,FontStyle.Bold), Brushes.Black, pointX 90, pointY 225); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 265, pointX 300, pointY 265); e.Graphics.DrawString("单位名称", printFont, Brushes.Black, pointX, pointY 275); } private void Form1_Load(object sender, EventArgs e) { printDt.PrintPage = new PrintPageEventHandler(printDt_PrintPage); printFont = new Font("宋体", 12F); } private void btnPrint_Click(object sender, EventArgs e) { //PrintDialog printDlg = new PrintDialog(); //printDlg.Document = printDt; //printDlg.AllowPrintToFile = true; //printDlg.AllowCurrentPage = true; //printDlg.AllowSelection = true; //printDlg.ShowDialog(); //printDlg.ShowDialog(); printDt.Print(); } private void btnLook_Click(object sender, EventArgs e) { PrintPreviewDialog printPreview = new PrintPreviewDialog(); printPreview.PrintPreviewControl.Document = printDt; printPreview.ShowDialog(this); } }}
    2021-05-06下载
    积分:1
  • WCF基础示例代码下载(有宿主有客户端,不错)
    WCF分布式开发示例代码包括:1)一个“服务类”WCFService:采用 C#语言编写,实现一个或多个方法,也叫服务契约和操作契约。2)一个“宿主”环境WCFHost:这是一种应用程序域和进程,服务将在该环境中运行。 3)一个“终结点”Client:由客户端用于访问服务。 
    2015-03-11下载
    积分:1
  • html5 绘图以及 动画实例源码
    html5 绘图以及 动画实例源码
    2014-06-12下载
    积分:1
  • WPF IM聊天实例源码下载
    不错的wpf IM聊天程序,实现了基本的聊天功能 注意事项: 1.在自己的机器配置的话,客户端需要更改 config目录下的 IPAddress.xml文件,将其中的ip 改成自己本机ip(本机ip可通过 cmd ipconfig命令查看) 2. server端 则需要将 server/data/目录下的chatdata.mdf这个数据库附加下,同时修改程序中对应的数据库连接串(在DataLink.cs中),例如 我就修改成了这个 private static string Link = @"Data Source = localhost;Initial Catalog = ChatData;User Id = sa;Password = xxxx;";  大家根据自己的情况修改即可    客户端登陆账号:10007 密码:123456
    2015-05-01下载
    积分:1
  • wpf 抽奖 实例源码下载
    wpf 抽奖 实例源码下载
    2015-01-19下载
    积分:1
  • 百度网盘 网址 转换程序,转换后可直接下载
    百度网盘 网址 转换程序,转换后可直接下载
    2013-11-23下载
    积分:1
  • 金蝶云星空二次开发零基础入门(上)
    内容简介: 集成开发平台简介 开发环境部署准备 BOS业务常用操作业务服务讲解 单据插件开发基础
    2021-11-06 00:37:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载