惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
罗磊的独立博客
F
Fortinet All Blogs
T
Threatpost
Y
Y Combinator Blog
博客园_首页
美团技术团队
Security Latest
Security Latest
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
V
V2EX - 技术
The Cloudflare Blog
L
LINUX DO - 热门话题
博客园 - 司徒正美
Jina AI
Jina AI
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
WordPress大学
WordPress大学
The Hacker News
The Hacker News
P
Privacy International News Feed
T
The Exploit Database - CXSecurity.com
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
V
V2EX
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence
Latest news
Latest news
NISL@THU
NISL@THU
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cisco Blogs
雷峰网
雷峰网
Application and Cybersecurity Blog
Application and Cybersecurity Blog
B
Blog RSS Feed
W
WeLiveSecurity
D
DataBreaches.Net
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
GRAHAM CLULEY
Spread Privacy
Spread Privacy
Know Your Adversary
Know Your Adversary
TaoSecurity Blog
TaoSecurity Blog
S
Securelist
Help Net Security
Help Net Security

博客园 - 水木

为什么要监控sql语句,以及如何监控,都有哪几种方式可以监控。 关于hexo与github使用过程中的问题与笔记 - 水木 - 博客园 mysql 使用的三个小技巧 利用反向代理服务器,加快国内对国外主机的访问 - 水木 2019年七月第三周总结 ManualResetEven使用的最清楚说明 如何画数据流图 如何画好ER图 UML图中时序图的基本用法 系统架构设计上需要注意的 - 水木 weblogic介绍 - 水木 Tuxedo 介绍 - 水木 winform如何不卡界面 - 水木 银行基金代销系统调研 - 水木 如何在wcf中用net tcp协议进行通讯 - 水木 20190710用控制台启动一个wcf服务 - 水木 wcf必知必会以及与Webapi的区别 - 水木 2019年7月第一周总结-RabbitMQ总结 - 水木 RabbitMQ入门学习系列(七) 远程调用RPC - 水木
IIS错误代码500.21 ,Nhibernate更新报错,委托的使用。action传参数
水木 · 2019-07-25 · via 博客园 - 水木

快速阅读

IIS错误代码500.21 ,Nhibernate更新报错,委托的使用。action传参数

IIS错误代码500.21

HTTP 错误 500.21 - Internal Server Error
处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”

原因是,当前程序需要注册一下aspnet 4.0

在目录C:\Windows\Microsoft.NET\Framework\v4.0.30319 下按键盘的shift ,加鼠标右击,选择在此外打开命令窗口。

然后运行 aspnet_regiis.exe -i 注册 net4.0 框架 ,

现次运行网站就可以了。

Nhibernate更新报错

{"null id in xxx.Entities.xxx entry (don't flush the Session after an exception occurs)"}

出现这种错误 是因为更新的实体中有些字段没有赋值,但是表中定义是必填,导致冲突 。

可以把其它没有赋值的字段再加上就可以了。

委托的使用。

利用委托来实现一个定时器 。并且可以传递参数。以及如何在action传参。

//调用
TaskInterval(60,TestMethod,1)

public static void TaskInterval(int interval, Action<int?> doWork,int? userid)
{
var timer = new System.Timers.Timer(interval * 1000);
timer.AutoReset = true;
timer.Enabled = true;
timer.Elapsed += (source, ee) => doWork(userid);
}

 public static void TestMethod(int? userId=null)
 {
	Console.WriteLine("zzzzzzzzzzzzz")
}

友情提示

​ 我对我的文章负责,发现好多网上的文章 没有实践,都发出来的,让人走很多弯路,如果你在我的文章中遇到无法实现,或者无法走通的问题。可以直接在公众号《爱码农爱生活 》留言。必定会再次复查原因。让每一篇 文章的流程都能顺利实现。