随笔分类 -  SOAP_WCF

摘要:Reason 1:In your web.configbut your class is:namespace A.B{ ..... public class D : E {Those names need to match! Thename=attribute on thetag ... 阅读全文
posted @ 2014-09-12 17:41 Vincent.Dr 阅读(739) 评论(0) 推荐(0)
摘要:1. maxBufferSize一个正整数,指定内存中用于存储消息的缓冲区的最大大小(字节)。如果transferMode属性等于Buffered,则此属性应等于maxReceivedMessageSize属性值。如果transferMode属性等于Streamed,则此属性不能大于maxReceivedMessageSize属性值,应当至少为标头的大小。More info :http://msdn.microsoft.com/en-gb/library/system.servicemodel.configuration.netnamedpipebindingelement.maxbuffer 阅读全文
posted @ 2013-08-05 14:54 Vincent.Dr 阅读(271) 评论(0) 推荐(0)
摘要:There are many reason caused configuration error was caught.But I got the stupid one.I checked the Web.config file and found that I configured two duplicate configuration item as below: <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> 阅读全文
posted @ 2013-05-06 16:35 Vincent.Dr 阅读(313) 评论(0) 推荐(0)
摘要:Exception details:System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. ServiceDebugBehavior has a IncludeExceptionDetailInFaults property transfer can be used to open 阅读全文
posted @ 2013-03-01 14:41 Vincent.Dr 阅读(1223) 评论(0) 推荐(0)
摘要:There are some ways to hosting WCF service as below:1. IIS; 2. Console App; 3. Window ServiceUsing Console Application to host WCF service:Step 1:Step 2: Add a Class Library project : 'Contract'Step 3: Add a Interface : 'IHelloWorld'using System.ServiceModel;namespace Contract{ [Serv 阅读全文
posted @ 2013-02-16 19:09 Vincent.Dr 阅读(185) 评论(0) 推荐(0)
摘要:Step 1:Step 2:Step 3:Step 4:Step 5:Step 6:Step 7:Step 8:Step 9:Step 10:Step 11:Step 12:Step 13:Step 14:Step 15:Step 16:Step 17:Step 18:Step 19:Step 20:Step 21:Ctrl + S, save the config.<?xml version="1.0" encoding="utf-8"?><configuration> <system.serviceModel> & 阅读全文
posted @ 2013-02-16 18:27 Vincent.Dr 阅读(182) 评论(0) 推荐(0)
摘要:Win7环境下,写了下学习WCF的示例,出现错误:HTTP 无法注册 URL http://+:xxxxx/ServicesName/。进程不具有此命名空间的访问权限。--solution--以管理员身份运行VS。 阅读全文
posted @ 2013-02-16 14:44 Vincent.Dr 阅读(509) 评论(0) 推荐(0)