
WCF
文章平均质量分 51
王之誉
对微软的CodeFlow有一定研究可以独立开发架设此系统
展开
-
... or one of its dependencies. The system cannot find the file specified... 加载指定dll失败
我们在写代码的时候偶尔会遇到下面的问题。... or one of its dependencies. The system cannot find the file specified... 这类问题主要是告诉用户当前的dll找不到或者是缺少相应的引用。大家不妨加上下面的catch语句试下。我们看下errorMessage后就知道问题出在哪里了。using System.IO;原创 2012-11-26 18:14:03 · 5989 阅读 · 0 评论 -
The remote server returned an error (415) Cannot process the message
I Created my WCF Service and it was working properly when i was making its service reference in my local machine. Also it can work well with tool WPF Test Client.But the problem came when I invoked原创 2012-12-06 18:33:17 · 4283 阅读 · 1 评论 -
An attempt was made to load a program with an incorrect format” even when the platforms are the same
下面我说下这个错误的几种解决办法。如果前2个方法还不能解决你的问题。那么请试下第三条。1.If you try to run 32-bit applications on IIS7 (and/or 64-bit OS machine) you will get the same error. So, from the IIS7 right click on the applications'原创 2012-12-10 16:40:40 · 3939 阅读 · 0 评论 -
获得用户身份C#
关于如何获得用户身份的问题,我做了一些简单的调查如下。如果你是在编写服务器端代码并且想获得用户信息那么1是最好的选择。如果就是简单的想获得当前用户的配置信息3是不错的选择。 1. System.ServiceModel.ServiceSecurityContext.Current.WindowsIdentityRepresents the security context原创 2012-12-18 18:59:25 · 1229 阅读 · 0 评论 -
Error 0x80040154 Retrieving COM class factory forcomponent with CLSID failed [PS interop]
You might notice the following error often you do mix with COM/PS DLLin C#.Retrieving the COM class factory for component with CLSID {Guid} failed due tothe following error: 0x80040154.It is e原创 2013-04-08 19:39:37 · 1749 阅读 · 0 评论 -
WCF Debug 调试
关于WCF的调试,MSDN给出如下说明,可能是由于我的水平问题,个人无法完全看懂,所以自己总结了一点WCF的调试技巧。仅供参考。如何开始调试 WCF 服务: 通常WCF可以部署成Windows service 和Web service。1.对于WebService通常后缀都是*.svc对于这类我通常有2种方式对其调试a. 新建一个控制台程序,通过Addweb R原创 2013-05-17 14:52:12 · 12213 阅读 · 0 评论 -
关于提高WCF性能的实例方法
背景:由于项目需要,我们需要从PS里提取必要的数据并做成一个service。用户直接调用这个service去获得想要的数据。但是由于PS的查询有点慢,在加上我们需要对查询结果进行必要的转化。所以在获得PS上某个库数据的时候时间长达3分钟。对于这个时间,用户是无法接受的。那么经过同事的讨论,我们采用了一个可行性方案,使得这个时间由3分钟降到3秒。设计思路:由于PS的每个单元的数据原创 2013-11-01 15:07:59 · 1610 阅读 · 0 评论 -
Introduction to WCF
主要内容都在附件中。简单的介绍了一下WCF,以及如何debug一个WCF service。原创 2013-11-18 13:41:42 · 967 阅读 · 1 评论 -
[WCF] Could not find default endpoint element that references contract 'xx' in the ServiceModel
Background:I have a WCF service which is being hosted in IIS. I have a WCF a common library to invoke this service. I have used svcutil to build the proxy class and configuration file and then added原创 2014-05-28 10:31:33 · 4347 阅读 · 0 评论