摘要: 最近操作员反馈系统在导出Excel时失败,有抛出如下异常:系统错误信息:检索 COM 类工厂中 CLSID 为 {00024500-0000-0000-C000-000000000046} 的组件时失败,原因是出现以下错误: 80040154。 在网上搜相关解决方案,都是说在CMD中打开 dcomc 阅读全文
posted @ 2019-01-10 11:19 千年海岩 阅读(865) 评论(0) 推荐(1) 编辑
摘要: 导入格式为xls的excel文件,发生了错误 未处理System.Data.OleDb.OleDbException HResult=-2147467259 Message=外部数据库驱动程序 (1) 中的意外错误。 Source=Microsoft JET Database Engine Erro 阅读全文
posted @ 2018-09-13 17:27 千年海岩 阅读(645) 评论(0) 推荐(0) 编辑
摘要: 今天在项目内一个Winform增加控件后,无法打开,抛如下异常。 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. > System.NullR 阅读全文
posted @ 2017-11-03 09:50 千年海岩 阅读(217) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-08-27 16:17 千年海岩 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 初次使用Android Studio,发现其智能提示不能像Visual Studio一样显示系统方法等的详细用途描述。经查找资料,问题原因是未安装SDK Document. 解决办法如下: 1、打开如下菜单(图一): (图一) 2、在下图二中选中Documentation for android S 阅读全文
posted @ 2017-08-25 21:36 千年海岩 阅读(2015) 评论(0) 推荐(0) 编辑
摘要: 所引用的程序集没有强命名 1.打开SDK 命令提示窗口; 也就是VS2012 开发人员命令提示,一般所在目录C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012\Visual Studio 阅读全文
posted @ 2017-07-21 16:03 千年海岩 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 在使用Razor时,有时想要在页面内知道对象的完整信息,或服务器的详细信息,可以通过HtmlHelper。 具体使用示例如下: <div>测试一: @ServerInfo.GetHtml(); //以html格式显示服务器信息; @ObjectInfo.Print(ViewBag); //显示Vie 阅读全文
posted @ 2017-07-13 21:38 千年海岩 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 在练习Mvc项目时,提示如下数据库错误: The model backing the 'EFDbContext' context has changed since the database was created. Consider using Code First Migrations to u 阅读全文
posted @ 2017-07-13 12:12 千年海岩 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 本文的方法来自 <精通asp.net Mvc5>。 一、添加视图模型 为了支持Html辅助器方法,可以把可用页面数,当前面,以及存储库中产品数等信息传递给视图。在Model文件夹内增加一个类文件,名称PagingInfo. using System; namespace SportsStore.We 阅读全文
posted @ 2017-07-11 14:23 千年海岩 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 今天在调试Mvc程序时,提示GAC与Temporary ASP.NET Files目录内引用文件版本不一致。 [A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to [B]System.Web.WebPages 阅读全文
posted @ 2017-07-11 14:14 千年海岩 阅读(256) 评论(0) 推荐(0) 编辑