03 2016 档案

摘要:主要区别在于连接协议不同,前者(localhost)使用TCP协议,后者(“(local)”)使用NamedPipe协议。 Sample code with SQL Server connection strings often use localhost and (local) interchangeably. They're different. Server=(local);Datab... 阅读全文
posted @ 2016-03-22 11:41 排骨虾 阅读(279) 评论(0) 推荐(0)
摘要:出现这个错误的原因是我们给ChartControl同时设置了Minimum和Maxmum的值,而这两个值又恰好相等。 chart.ChartAreas[0].AxisY.Minimum=min; chart.ChartAreas[0].AxixY.Maxmum=max; 解决的方法很简单,不要设置Maxmum就行了。或者可以判断当Minimum==Maxmum时,适当增大Maxmum的值。具体就得... 阅读全文
posted @ 2016-03-11 10:57 排骨虾 阅读(546) 评论(0) 推荐(0)
摘要:启动Profiler之前设置一下Targets的属性就行,图中有说明。 阅读全文
posted @ 2016-03-09 17:04 排骨虾 阅读(1273) 评论(0) 推荐(0)
摘要:可以用来跟踪执行的sql语句。安装SqlServer之后SqlServerManagementStudio自带一个SqlProfiler,但是如果安装的SqlExpress,那就没有了。 项目的主页在https://expressprofiler.codeplex.com/,点右边的“Download”下载,解压然后直接运行“ExpressProfiler.exe”就可以了。里面有个msi文件,... 阅读全文
posted @ 2016-03-08 15:54 排骨虾 阅读(2552) 评论(0) 推荐(0)
摘要:前一篇关于anti-forgery token问题的博文提到我们可以通过修改AntiForgeryConfig.UniqueClaimTypeIdentifier属性来避免AntiForgeryToken生成的问题。但是也许你编译运行后又得到了这样一个错误: A claim of type 'http://schemas.xmlsoap.org/ws/2005/05/identity/claim... 阅读全文
posted @ 2016-03-04 16:12 排骨虾 阅读(1141) 评论(0) 推荐(0)
摘要:当使用ClaimsIdentity的时候,Asp.Net MVC在生成AntiForgeryToken的时候会默认使用User.Identity中两种ClaimsType的值:NameIdentifier (http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier )和IdentityProvider (http://... 阅读全文
posted @ 2016-03-02 17:42 排骨虾 阅读(3119) 评论(0) 推荐(1)
摘要:Operating System Version(s) Location Unix, Unix-like, POSIX /etc/hosts Microsoft Windows 3.1 %WinDir%\HOSTS Microsoft Windows 95, 98, ME %WinDir%\hosts Microsoft Windows NT, 2000, XP, 2003, V... 阅读全文
posted @ 2016-03-02 14:36 排骨虾 阅读(223) 评论(0) 推荐(0)