![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
你好布布
生活给我泪水,我给生活汗水!
展开
-
使用Entity Data Model 之创建模型(一)
1. 添加实体数据模型的方法:右击 --> Add --> New Item --> ADO.NET Entity Data Model --> Add --> Generate from database --> Next --> New Connection... -->选择 Yes, include... --> Next--> 选table,view, stored proced原创 2013-09-02 18:55:14 · 1132 阅读 · 0 评论 -
System.Xml.XmlException: '=' is an unexpected token. The expected token is ';'
今天碰到的一个问题,把string 解析成xml时,抛出异常,如下:An exception of type'System.Xml.XmlException' occurred and was caught.-----------------------------------------------------------------------Type : System.X原创 2013-05-08 11:23:47 · 5799 阅读 · 2 评论 -
.net4 和 .net3.5 的区别
今天,尝试把现有项目的.net4改成.net3.5时,出现了一些error,这些error大多是方法不兼容。下面分享一下:只在.net4里可用而在.net3.5里不可用的方法:1.string.IsNullOrWhiteSpace(string text)==> .net3.5里可用此方法替换:string.IsNullOrEmpty(string text)2.strin原创 2013-05-06 17:32:15 · 4111 阅读 · 0 评论 -
Web service: The HTTP request is unauthorized with client authentication scheme 'Anonymous'.....
问题:The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.My solution as the picture:plea原创 2013-05-02 18:45:02 · 1993 阅读 · 0 评论 -
Web Service程序的改变对引用这个web service的程序的影响
验证Web Service程序的改变对引用这个web service的程序的影响:1. Web service 增加字段,引用这个web service的程序不变:不会获取新增字段的值,程序不受影响,可以正常跑2. Web Service 删除字段,引用这个web service的程序不变:通过webservice拿数据,该字段值默认就是null, 对于in原创 2013-05-02 17:37:28 · 918 阅读 · 0 评论 -
500 Internal server error 部署ASP.NET项目时出现的错误
500 Internal server error:检查IIS的congfig配置C:\Windows\System32\inetsrv\config 下的applicationHost.configapplicationHost.config 里的内容类似:原创 2013-02-22 12:27:03 · 1059 阅读 · 0 评论 -
ASP.NET 应用程序 的神奇错误一
一个不能用正常逻辑来处理的错误。在一个if条件里,我把条件设为false,程序执行时,不让它进入if。但是执行时,竟然进入if,执行了throw 语句。我尝试运行了好几次,都是一样的行为。最后,果断的关闭VS, 重新打开项目,重新生成,就可以了。原创 2013-03-25 18:35:55 · 593 阅读 · 0 评论 -
C# Windows Schedule task之获取task下次运行时间
最近做了一个需要和Windows Schedule task相关的功能,即通过schedule,计算下次跑task的时间。通过是用第三方的DLL来实现,从下面的网站下载:http://taskscheduler.codeplex.com/1. 在Schedule Task里增加一个task,命名为“testJing”, trigger设置为每五天 增加一个Tri原创 2014-11-19 16:34:00 · 4506 阅读 · 0 评论 -
Web Service 之 Exception: "The HTTP request is unauthorized with client authentication scheme......"
问题:原因:ji原创 2014-04-23 17:40:21 · 1658 阅读 · 0 评论 -
Timeout expired. The timeout period elapsed prior to completion of the operation or the server...
问题:最近程序总会抛出如下异常:An exception of type'System.Data.SqlClient.SqlException' occurred and was caught.----------------------------------------------------------------------------------Type :Syste原创 2015-03-30 16:38:33 · 1817 阅读 · 0 评论