06 2011 档案

摘要:發布到服務器後遇到:通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为其处于“出错”状态。 <bindings><wsHttpBinding><bindingname="BindConfig"closeTimeout="00:01:00"openTimeout="00:01:00"receiveTimeout="00:10:00"sendTimeout="00:01:00"bypassProxyOnL 阅读全文
posted @ 2011-06-22 15:09 天际翔龙 阅读(1913) 评论(0) 推荐(0)
摘要:Microsoft Visual C# 2008时不能加载和新建类,并提示:"由于未能创建Microsoft Visual C# 2008 编译器,因此末能打开项目“XXXXXX”。针对“{74946829-37A0-11D2-A273-00C04F8EF4FF}”的QueryService失败。"解决方法: 在visual studio 2008命令提示下运行如下两条指令: devenv /resetsettings devenv /resetskippkgs 注:如果有装多个版本的VS的话,devenv加上路径. 阅读全文
posted @ 2011-06-14 09:37 天际翔龙 阅读(274) 评论(0) 推荐(0)
摘要:WCF标准的配置文件为:<system.serviceModel> <services> <service name="Microsoft.ServiceModel.Samples.CalculatorService" behaviorConfiguration="CalculatorServiceBehavior"> <!-- Service Endpoints --> <!-- This endpoint is exposed at the base address provided by the 阅读全文
posted @ 2011-06-10 15:44 天际翔龙 阅读(1830) 评论(1) 推荐(0)
摘要:概述在应用程序中,可能会遇到一些执行耗时的功能操作,比如数据下载、复杂计算及数据库事务等,一般这样的功能会在单独的线程上实现,执行结束后结果显示到用户界面上,这样可避免造成用户界面长时间无响应情况。在.NET 2.0及以后的版本中,FCL提供了BackgroundWorker组件来方便的实现这些功能要求。组件介绍BackgroundWorker类位于System.ComponentModel 命名空间中,通过该类在单独的线程上执行操作实现基于事件的异步模式。下面对BackgroundWorker类的主要成员进行介绍。BackgroundWorker类的第1个主要方法是RunWorkerAsyn 阅读全文
posted @ 2011-06-03 15:56 天际翔龙 阅读(312) 评论(0) 推荐(0)