随笔分类 - .NET 相关
摘要:场景 WinForm 应用,使用了 DevExpress.XtraEditors.TextEdit 控件的 KeyPress 和 Leave 事件。期望在 TextEdit 上按下回车键或者当 TextEdit 失去焦点时进行相关验证并弹窗提示。 问题 弹窗显示并关闭后,TextEdit 默认是 F
阅读全文
摘要:环境 项目中使用了 System.Web.WebPages.Razor, Version=3.0.0.0,Nuget 还原缺失包后自动更新至 Version=3.2.5.0,编译成功,运行失败。 错误 “/”应用程序中的服务器错误。未能加载文件或程序集“System.Web.WebPages.Raz
阅读全文
摘要:背景 在 WinForm 解决方案中,更新 DataSet 应用程序集对象失败,Visual Studio 自动重启。 试一试 1. 更新 .xsd 时打开对应的 .Designer.cs。2. 如果更新 TableB 失败,但是更新 TableA 没问题,试着同时更新AB两张表,TableB 可能
阅读全文
摘要:背景 使用 Syncfusion / RichTextEditor 对录入后的信息进行展示:1. 希望内容高度自适应。2. 希望禁用原文中的超链接。 实现 录入页面 浏览页面 参考资料 https://help.syncfusion.com/aspnet-core/richtexteditor/wo
阅读全文
摘要:Issue Windows 10 管理员模式下,点击 ClickOnce 安装程序无反应。 解决 1. 按 WIN+R 键打开“运行”窗口,输入 “gpedit.msc" 打开组策略。2. 在 “计算机配置”-“Windows设置”-“安全设置”-“本地策略”-“安全选项” 中禁用掉 “用户帐户控制
阅读全文
摘要:Issue 解决 为 Data Service 配置属性如下:[System.ServiceModel.ServiceBehavior(IncludeExceptionDetailInFaults = true)] 参考 http://salvoz.com/blog/2011/02/18/where
阅读全文
摘要:场景: 使用 Oracle.DataAccess.dll 访问数据库时,OracleDataAdapter 执行失败。 异常: System.AccessViolationException was unhandled HResult=-2147467261 Message=Attempted to
阅读全文