随笔分类 -  .NET 相关

摘要:App Metricshttps://www.app-metrics.io ASP.NET Core之跨平台的实时性能监控http://www.cnblogs.com/GuZhenYin/p/7170010.html .Net Core 2.0+ InfluxDB+Grafana+App Metri 阅读全文
posted @ 2018-02-23 17:24 jinzesudawei 阅读(489) 评论(0) 推荐(0) 编辑
摘要:功能查询起止日期范围内连续的月份列表。 参考资料 https://stackoverflow.com/a/25081986 阅读全文
posted @ 2018-01-12 15:48 jinzesudawei 阅读(208) 评论(0) 推荐(0) 编辑
摘要:背景 新建的 Xamarin 项目,编译失败。 Error The "GenerateJavaStubs" task failed unexpectedly.Error The specified path, file name, or both are too long. The fully qu 阅读全文
posted @ 2018-01-08 15:25 jinzesudawei 阅读(543) 评论(0) 推荐(0) 编辑
摘要:背景 WCF + EF + Sql Server 提供服务,包含一个数据上传功能,该方法接收客户端上传的对象列表(多张表单,每个表单包含千余条相关记录)。 瓶颈 WCF 默认有文件大小(4M)和超时限制(1分钟),直接保存对象列表会遇到超时问题,保存失败。上传效率:大概 3分钟 / 千条记录,客户端 阅读全文
posted @ 2017-11-29 16:24 jinzesudawei 阅读(381) 评论(0) 推荐(0) 编辑
摘要:背景 关闭 WinForm 应用出现 "has stopped working" 错误。 Windows 日志 Faulting application name: PcClient.exe, version: 1.0.0.0, time stamp: 0x5a076b99Faulting modu 阅读全文
posted @ 2017-11-12 06:09 jinzesudawei 阅读(7141) 评论(0) 推荐(0) 编辑
摘要:1. 添加 Windows Service 项目 2. 添加 WCF 项目引用 3. 更新 App.config 配置文件(可以从 WCF的 Web.config 拷贝过来),设置服务地址。 4. 配置 ServiceInstaller,ProcessInstaller。 5. 配置 bat 批处理 阅读全文
posted @ 2017-11-10 02:47 jinzesudawei 阅读(436) 评论(0) 推荐(0) 编辑
摘要:问题 访问 WCF 任意方法耗时都很长(15s+) 原因 当执行语句 log4net.Config.XmlConfigurator.Configure(); 时需要连接到 log4net 对应的数据库,如果 connectionString 配置错误会一直等到请求超时。 测试 参考资料 https: 阅读全文
posted @ 2017-11-06 05:11 jinzesudawei 阅读(321) 评论(0) 推荐(0) 编辑
摘要:WCF 数据结构中返回的只读属性 TotalCount 也需要声明 Set 方法。 [DataContract]public class BookShelfDataModel{ public BookShelfDataModel() { BookList = new List<BookDataMod 阅读全文
posted @ 2017-10-23 05:41 jinzesudawei 阅读(734) 评论(0) 推荐(0) 编辑
摘要:操作步骤 1. 在开始菜单中找到 Visual Studio 命令行工具 2. 输入命令 wcftestclient 即可打开 WCF 客户端测试工具 参考资料http://www.cnblogs.com/panchangtao/articles/5465560.html 阅读全文
posted @ 2017-10-23 05:18 jinzesudawei 阅读(1020) 评论(0) 推荐(0) 编辑
摘要:背景 在 VS 2017 的 Xamarin 项目中,配置 Mac Agent 连接到本地虚拟机中的 MacOS 失败。 1. MacOS 已启用远程登陆。2. SSH 可以登陆成功。3. 防火墙已关闭。 解决 在 MacOS 中安装 Visual Studio For Mac。 参考资料 http 阅读全文
posted @ 2017-09-10 10:37 jinzesudawei 阅读(359) 评论(0) 推荐(0) 编辑
摘要:产生字符串(例:49f949d735f5c79e) 产生 Int64 类型(例:4833055965497820814) 参考资料 http://www.cnblogs.com/SUNBOY/archive/2008/07/24/1250797.html 阅读全文
posted @ 2017-09-04 00:56 jinzesudawei 阅读(762) 评论(0) 推荐(0) 编辑
摘要:背景 基于 PDF Template 预填充表单项,生成一份新的 PDF 文件,并保留表单域允许继续修改。 代码段 阅读全文
posted @ 2017-09-01 17:06 jinzesudawei 阅读(768) 评论(0) 推荐(0) 编辑
摘要:错误 解决 在 ConnectionString 中添加 MultipleActiveResultSets=true(适用于SQL 2005以后的版本)。MultipleActiveResultSets的作用是指定多活动的结果集是否与指定的链接相互关联,类型是bool类型:true代表与指定的链接关 阅读全文
posted @ 2017-08-27 13:04 jinzesudawei 阅读(672) 评论(0) 推荐(0) 编辑
摘要:背景 在 Visual Studio 2017 中,使用 Nuget 包管理器安装 EntityFrameworkCore 2.0 失败。切换至程序包控制器管理台,查看 Error Message: Install-Package : 包 Microsoft.EntityFrameworkCore 阅读全文
posted @ 2017-08-18 21:26 jinzesudawei 阅读(1896) 评论(0) 推荐(0) 编辑
摘要:背景 VS 2017 智能感知无法使用,重置 "导入和导出设置..." 后仍无法使用。 解决 我在 VS 上安装了 Resharper 的,猜测可能跟其配置有关,重置 IntelliSense 为 Visual Studio 后,VS 智能感知正常启用。 阅读全文
posted @ 2017-08-17 23:49 jinzesudawei 阅读(994) 评论(0) 推荐(0) 编辑
摘要:背景 VS 2017 升级至 VS 2017 v15.3 后,.Net Core 1.1 应用编译报错: Error: 包含了重复的“Content”项。.NET SDK 默认情况下包括你项目中的“Content”项。可以从项目文件中删除这些项,或者如果希望将其显示包含在项目文件中,则可以将“Ena 阅读全文
posted @ 2017-08-17 01:10 jinzesudawei 阅读(745) 评论(0) 推荐(0) 编辑
摘要:背景 VS + Fiddler 调试 WebAPI,监控请求包含大量 VSHub Request。http://localhost:49161/vshub/bb195f2e0d5c4765b9411f7bf479d012/DataWarehouseModule/dataWarehouse/getRe 阅读全文
posted @ 2017-08-07 14:52 jinzesudawei 阅读(1321) 评论(0) 推荐(0) 编辑
摘要:背景 Visual Studio 2015 在 Debug 模式下调试失败。 错误 解决 删除解决方案下 .vs/config 文件夹,重新运行解决方案可进行调试。 参考资料 https://stackoverflow.com/a/39740867 阅读全文
posted @ 2017-08-01 18:55 jinzesudawei 阅读(826) 评论(0) 推荐(1) 编辑
摘要:背景 请求部署在 IIS7.5 上的 REST 服务的 Put/POST/DELETE 操作发生 HTTP Error 405.0 - Method Not Allowed 错误。 Issue 解决 方法一:从HttpModule中移除 IIS拒绝PUT和DELETE请求是由于IIS为网站默认注册的 阅读全文
posted @ 2017-07-21 00:14 jinzesudawei 阅读(8577) 评论(0) 推荐(0) 编辑
摘要:分页控件(定义分页参数) ~/ViewComponents/PaginationViewComponent.cs ~/Views/Shared/Components/Pagination/Default.cshtml 列表页面(更新分页参数) ~/Controllers/ArticleControl 阅读全文
posted @ 2017-07-16 10:46 jinzesudawei 阅读(2133) 评论(0) 推荐(0) 编辑

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