导航

2015年6月1日

摘要: 错误提示:Resource handler for the 'web' protocol is not defined.解决方案:修改web.config如下: ...如果是IIS7+ Win Server 2008,还得修改如下... 阅读全文

posted @ 2015-06-01 15:04 理工.net 阅读(742) 评论(0) 推荐(0) 编辑

2015年1月15日

摘要: 背景:将自己用VS2010开发的一个项目中的JS、CSS文件按顺序进行打包(bundle)、压缩(compress)。前置工作:安装java、下载yuicompressor-2.4.6.jar已js进行举例,CSS类推:第一步:根据项目中使用js的顺序,将文件列表写入release.bundle,内... 阅读全文

posted @ 2015-01-15 16:45 理工.net 阅读(1113) 评论(0) 推荐(0) 编辑

2014年6月30日

摘要: Nhibernate多线程之间Session的问题背景:系统针对业务逻辑层提供了AOP的NHibernate Session,会话对象是通过Spring.net管理的。但在业务逻辑层里面有些方法实行了异步线程池调用数据访问接口,抛出异常提示:No Hibernate Session bound to thread, and configuration does not allow creatio... 阅读全文

posted @ 2014-06-30 17:40 理工.net 阅读(545) 评论(0) 推荐(0) 编辑

2014年5月5日

摘要: C# driver Releases notesC# driver 指南(博客园友翻译)Mongodb Connection Stringmongodb的write concern各版本驱动解决的问题(JIRA) 阅读全文

posted @ 2014-05-05 14:33 理工.net 阅读(230) 评论(0) 推荐(0) 编辑

2014年4月29日

摘要: WCF Extensibility – IErrorHandlerException Handling in WCF Web ServiceCreating Custom WCF Endpoint BehaviorWCF Extensibility - IServiceBehavior 阅读全文

posted @ 2014-04-29 14:34 理工.net 阅读(135) 评论(0) 推荐(0) 编辑

2014年3月25日

摘要: 使用 Microsoft Monitoring Agent 监视部署中的应用程序 网址:http://msdn.microsoft.com/zh-cn/library/hh398365.aspx 使用 IntelliTrace 调试应用程序 网址:http://msdn.microsoft.com/zh-cn/magazine/ee336126.aspx 阅读全文

posted @ 2014-03-25 17:53 理工.net 阅读(172) 评论(0) 推荐(0) 编辑

2013年11月24日

摘要: 今天用Spring.net在BLL层注入DAL访问的对象发现,在调用BLL层方法是使用的DAL对象,总是为null。在就是用Spring.net统一管理NHibernate的事务时,发现在BLL使用申明式事务,始终不起作用;在DAL层使用申明式事务又起作用。最终发现原因:BLL层需要定义对应的接口IBLL,在表现层依赖IBLL注入具体的BLL,所有问题都解决了。 阅读全文

posted @ 2013-11-24 22:59 理工.net 阅读(350) 评论(1) 推荐(0) 编辑

2013年8月1日

摘要: 背景:在Win 7+IIS7的环境下,开发基于basicHttpBinding ,netTcpBinding的Username认证的WCF服务。 basicHttpBinding, netTcpBinding的认证方式使用UserName时,WCF限制不能传输明文的username/password,wcf限制请使用ssl、x.509加密解密2中途径。 下面是使用Use... 阅读全文

posted @ 2013-08-01 16:40 理工.net 阅读(366) 评论(0) 推荐(0) 编辑

2013年7月31日

摘要: 参考博文:使用 WAS 扩展 HTTP 之外的 WCF 服务如何进行基于非HTTP的IIS服务寄宿HowTo: netTcpBinding on IIS and things to remember将使用netTcp绑定的WCF服务寄宿到IIS7上全记录在上面这些参考的博文中,都有提到如何部署,下面再结合个人实践重复一遍:目标服务器:IIS7,Windows 71. 安装WAS (Windows Process Activation Service)服务和WCF的HTTP 和Non-Http的激活组件,默认情况是都没有安装的。1.1:WAS: Win+R——输入: OptionalFeatur 阅读全文

posted @ 2013-07-31 16:13 理工.net 阅读(1141) 评论(2) 推荐(1) 编辑

2013年7月26日

摘要: 参考资料:https://blogs.msdn.com/b/wenlong/archive/2007/10/26/best-practice-always-open-wcf-client-proxy-explicitly-when-it-is-shared.aspx?Redirected=truewcf客户端代理打开可分为:显示打开和自动打开。自动打开(auto open):MyHelloServiceClientproxy =newMyHelloServiceClient();// Make a call with the proxyproxy.Hello("Hello world 阅读全文

posted @ 2013-07-26 12:37 理工.net 阅读(139) 评论(0) 推荐(0) 编辑