随笔分类 -  ASP.NET

摘要:将Repeater单页显示的2000条数据一次性提交的时候出现这个错误: Operation is not valid due to the current state of the object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Operation is not valid due to the current state of the object. Source Error: An unhandled exception was generated during th 阅读全文
posted @ 2014-04-19 14:37 Kenyep 阅读(922) 评论(0) 推荐(0)
摘要:启动web项目发现未能加载文件或程序集“System.Web.DataVisualization...” 阅读全文
posted @ 2013-12-23 00:22 Kenyep 阅读(6237) 评论(0) 推荐(1)
摘要:IIS启动网站后报错:   configuration error Could not load file or assembly 'crystaldecisions.reportappserver.clientdoc,...' 阅读全文
posted @ 2013-12-17 15:56 Kenyep 阅读(798) 评论(0) 推荐(0)
摘要:服务器系统:Windows server 2008 R2 IIS版本:7.5 IIS中部署一个dotnet framework 3.5的网站应用程序,设置"默认文档"为:index.aspx 问题来了,域名绑定好后,打开“http://www.xxx.com”,却无法显示默认的主页,显示“http 400”错误,使用IP访问也不行,非要输入“http://www.xxx.com/index.aspx”才能打开默认首页,其它所有页面访问都很正常,但是非要输入文件的完整路径才能访问,通常都会被认为未设置“默认主页”,但这次却不是。 阅读全文
posted @ 2013-12-17 11:25 Kenyep 阅读(16407) 评论(0) 推荐(1)
摘要:Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 阅读全文
posted @ 2013-12-10 22:44 Kenyep 阅读(2269) 评论(0) 推荐(0)
摘要:项目部署到服务器后出现如下错误信息:   Parser Error Message: Could not load file or assembly 'System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.系统找不到指定的文件。 阅读全文
posted @ 2013-12-03 11:59 Kenyep 阅读(1574) 评论(1) 推荐(0)
摘要:asp.net提示“没有为扩展名“.html”注册的生成提供程序...”解决办法,修改web.config文件: 阅读全文
posted @ 2013-09-08 17:12 Kenyep 阅读(422) 评论(0) 推荐(0)
摘要:操作系统:Windows 7 IIS:7.5 ajax.dll现在用的比较少,但是以前的项目有这个,使用的时候很容易出现这个错误,因为总是会遗漏配置。 使用ajax.dll时,js脚本错误,无法调用后台方法-XXX未定义 使用ajax.dll,首先项目引用ajax.dll,然后在customer类中定义方法 阅读全文
posted @ 2013-08-23 22:56 Kenyep 阅读(607) 评论(0) 推荐(0)
摘要:打开服务器的asp.net页面时出现这个错误: HTTP 错误 500.19 - Internal Server Error 无法访问请求的页面,因为该页的相关配置数据无效。 阅读全文
posted @ 2013-06-27 23:41 Kenyep 阅读(1562) 评论(0) 推荐(1)
摘要:在VS2010中新建一个“Windows 窗体应用程序”项目,在该项目中添加一个水晶报表“CrystalReport1.rpt”,然后在项目上点击鼠标右键属性,将“目标框架”改为“.Net Framework 4” 阅读全文
posted @ 2013-06-20 00:50 Kenyep 阅读(2044) 评论(0) 推荐(0)
摘要:Visual Studio 2010默认不带水晶报表,需要安装一个水晶报表插件,首先下载此插件: 阅读全文
posted @ 2013-06-19 23:45 Kenyep 阅读(3390) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-03-16 10:39 Kenyep 阅读(12000) 评论(1) 推荐(0)
摘要:Winform界面设计:放置一个TextBox控件(命名为:txtPath),两个按钮控件(一个btnSelect,一个btnStart),一个显示文件列表Label控件(lblFileList),还有一个重要的folderBrowserDialog1控件。 阅读全文
posted @ 2013-03-16 10:12 Kenyep 阅读(458) 评论(0) 推荐(0)
摘要:1 //获取内网IP 2 private string GetInternalIP() 3 { 4 IPHostEntry host; 5 string localIP = "?"; 6 host = Dns.GetHostEntry(Dns.GetHostName()); 7 foreach (IPAddress ip in host.AddressList) 8 { 9 if (ip.AddressFamily.ToString() == "InterNetwork")10 {11 local... 阅读全文
posted @ 2013-03-16 09:47 Kenyep 阅读(17155) 评论(3) 推荐(2)
摘要:以前在XP上开发的一个程序,今天在Win7上发现无法运行,调试时提示“找不到MSXML2命名空间”,添加引用时找不到“MSXML2”,后来发现原来是这样,下面是别人写的: 解析XML文件使用到了微软的msxml ,在xp下使用的时候,只要#import 编译就可以顺利通过, 当把工程移植到Vista上的时候就会遇到找不到 msxml.dll的错误。 原来在Vista上msxml.dll升级为msxml6.dll, 只要把#import 改成#import 相应using namespace MSXML改成using namespace MSXML2编译即可通过 那么Vista下编译后的可执行文件是不是不可以在XP下使用呢? 阅读全文
posted @ 2013-02-18 13:05 Kenyep 阅读(4243) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-02-17 17:30 Kenyep 阅读(6364) 评论(0) 推荐(0)
摘要:Excel导出功能中添加了“icrosoft.Office.Interop.Excel”引用,但是却提示”类型“Microsoft.Office.Interop.Excel.ApplicationClass”未定义构造函数“: 错误 128 无法嵌入互操作类型“Microsoft.Office.Interop.Excel.ApplicationClass”。请改用适用的接口。 阅读全文
posted @ 2013-01-08 22:26 Kenyep 阅读(802) 评论(0) 推荐(0)
摘要:在Visual Studio中创建网站项目,然后按F5使用VS自带的ASP.NET Development Server来运行站点时,我们在浏览器的地址栏看到的URL路径一般是这样的:http://localhost:10177/WebSite/index.aspx 我们发现这里实际上自动添加了一个虚拟路径WebSite,那么当我们访问网站中其它页面或者链接到其它资源时也必须带上这个讨厌的虚拟目录,有没有办法去掉它呢??? 阅读全文
posted @ 2012-11-28 16:28 Kenyep 阅读(652) 评论(0) 推荐(0)
摘要:最近要修改一个以前开发的项目,项目中并没有运用Linq,但是我在VS2008中添加新项都会自动添加Linq命名空间,每次都要手动去删除很麻烦,就想想有没有办法可以修改这个“添加新项”后自动生成的模版呢? Visual Studio 2008 CS页面“添加新项”默认引用的命名空间: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; 现在假设我的项目是“ASP.NET WEB应用程序”,现在我想去掉添加新的窗体后CS页面中的System.Linq命名空间,方法如下: 阅读全文
posted @ 2012-11-28 15:21 Kenyep 阅读(3900) 评论(1) 推荐(1)