摘要:[TOC] 什么是MSMQ Message Queuing(MSMQ) 是微软开发的消息中间件,可应用于程序内部或程序之间的异步通信。主要的机制是:消息的发送者把自己想要发送的信息放入一个容器中(我们称之为Message),然后把它保存至一个系统公用空间的消息队列(Message Queue)中;本 阅读全文
posted @ 2019-01-21 14:03 菜菜菜鸟飞不动 阅读 (825) 评论 (0) 编辑
摘要:Quartz定时任务默认都是并发执行的,不会等待上一次任务执行完毕,只要间隔时间到就会执行, 如果定时任执行太长,会长时间占用资源,导致其它任务堵塞。 比如Job设置1分钟跑一次,每次获取50条短信发送,发送完成后状态设置为已发送。但是可能Job1执行的时间超过1分钟50条短信还没有跑完,这时候Job2 启动了,就会获取全部未发送的记录继续发送。造成重复执行短信发送的问题。 阅读全文
posted @ 2019-01-16 14:05 菜菜菜鸟飞不动 阅读 (163) 评论 (0) 编辑
摘要:The problem is likely that there's a newer version of the Visual C++ Redistributable than SQL Server is trying to install, e.g., from Visual Studio 2017. So another way to address this, if you don't need the latest C++ redistributable, is to go to Add or Remove Programs and uninstall all references to Visual C++ 2017 Redistributable. After this, the SQL Server installation should proceed without errors. 阅读全文
posted @ 2018-06-04 11:02 菜菜菜鸟飞不动 阅读 (215) 评论 (0) 编辑
摘要:``` select DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())-1, 0) --First day of previous month select DATEADD(MONTH, DATEDIFF(MONTH, -1, GETDATE())-1, -1) --Last Day of previous month ``` 阅读全文
posted @ 2018-05-07 15:25 菜菜菜鸟飞不动 阅读 (140) 评论 (0) 编辑
摘要:Some specific needs of SQL developers like connecting to [SQL Server](https://www.microsoft.com/en/server-cloud/products/sql-server/) from OSX and even using Windows authentication can be covered by DataGrip. Since releasing DataGrip, we’ve received lots of comments about connecting to SQL Server. It appears it’s not straightforward as with other databases, requiring a couple of extra steps beforehand. Here is a small guide describing the main problems you may face and how to solve them. 阅读全文
posted @ 2018-05-02 12:31 菜菜菜鸟飞不动 阅读 (1741) 评论 (0) 编辑
摘要:未找到与命令“dotnet ef”匹配的可执行文件 Specific to VS2017 15.3 or greater and ASP.NET CORE 2.0 or later... Install nuget for db provider via command line or nuget 阅读全文
posted @ 2018-04-17 18:20 菜菜菜鸟飞不动 阅读 (1854) 评论 (0) 编辑
摘要:I have set the .ASPXAUTH cookie to be https only but I am not sure how to effectively do the same with the ASP.NET_SessionId. The entire site uses HTTPS so there is no need for the cookie to work with both http and https 阅读全文
posted @ 2018-03-06 17:52 菜菜菜鸟飞不动 阅读 (310) 评论 (0) 编辑
摘要:the-client-and-server-cannot-communicate-because-they-do-not-possess-a-common-a 阅读全文
posted @ 2018-02-08 18:52 菜菜菜鸟飞不动 阅读 (435) 评论 (0) 编辑
摘要:C# 移除Response Header,403调整返回为404Make IIS return a 404 status code instead of 403 阅读全文
posted @ 2018-02-07 15:52 菜菜菜鸟飞不动 阅读 (170) 评论 (0) 编辑
摘要:Here's a workaround I found that works for all cases (including suspended dispatchers). It's not my code and I'm still working to fully understand it, but it does work. 阅读全文
posted @ 2018-02-05 19:31 菜菜菜鸟飞不动 阅读 (139) 评论 (0) 编辑
摘要:I understand that IValidatableObject is used to validate an object in a way that let's one compare properties against each other. I'd still like to have attributes to validate individual properties, but I want to ignore failures on some properties in certain cases. 阅读全文
posted @ 2018-01-17 20:10 菜菜菜鸟飞不动 阅读 (149) 评论 (0) 编辑
摘要:Several people have asked me about using data annotations for validation outside of a UI framework, like ASP.NET MVC or Silverlight. The System.ComponentModel.DataAnnotations assembly contains everything you need to execute validation logic in the annotations. Specifically, there is a static Validator class to execute the validation rules. For example, let's say you have the following class in a console mode application 阅读全文
posted @ 2018-01-17 20:07 菜菜菜鸟飞不动 阅读 (136) 评论 (0) 编辑
摘要:依赖倒置是面向对象设计领域的一种软件设计原则。 软件设计有 6 大设计原则,合称 SOLID。 有人会有疑惑,设计原则有什么用呢? 设计原则是前辈们总结出来的经验,你可以把它们看作是内功心法。 只要你在平常开发中按照设计原则进行编码,假以时日,你编程的功力将会大增。 阅读全文
posted @ 2017-12-08 17:01 菜菜菜鸟飞不动 阅读 (115) 评论 (0) 编辑
摘要:十六进制值 是无效的字符错误 阅读全文
posted @ 2017-11-14 19:43 菜菜菜鸟飞不动 阅读 (340) 评论 (0) 编辑
摘要:What is a correct mime type for docx, pptx etc? 阅读全文
posted @ 2017-11-14 19:40 菜菜菜鸟飞不动 阅读 (1919) 评论 (0) 编辑
摘要:there was an error running the selected code generator unable to retrieve metadata for 阅读全文
posted @ 2017-10-26 19:54 菜菜菜鸟飞不动 阅读 (486) 评论 (0) 编辑
摘要:问题描述 Severity Code Description Project File Line Suppression State Error 未能加载文件或程序集“netfx.force.conflicts”或它的某一个依赖项。不应出于执行的目的加载引用程序集。只能在仅限反射的加载程序上下文中加 阅读全文
posted @ 2017-09-20 15:06 菜菜菜鸟飞不动 阅读 (649) 评论 (0) 编辑
摘要:Try setting (in global.cs): I think it's important to note why this works: This tells the AntiForgery class to use the NameIdentifier (which is the us 阅读全文
posted @ 2017-09-20 14:59 菜菜菜鸟飞不动 阅读 (158) 评论 (0) 编辑
摘要:This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props 阅读全文
posted @ 2017-09-20 14:56 菜菜菜鸟飞不动 阅读 (323) 评论 (1) 编辑
摘要:I have navigate lots of similar pages on the web, but most of them use a new project instead of an existing one, or not have the necessary features. So, I have an existing MVC5 project and want to integrate ASP.NET MVC5 Identity with log in, email confirmation and password reset features. In addition to this, I also need to create all the necessary tables on the database i.e. User, Roles, groups, etc. (I use EF Code First in my project). Is there any article or sample that corresponds these need 阅读全文
posted @ 2017-09-18 20:17 菜菜菜鸟飞不动 阅读 (3738) 评论 (0) 编辑