We have a WCF application with Silverlight 4.0 client application. The system worked well but just sometimes we got the following error: The HTTP request to http://xxx has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout. We traced the bug using Visual Studio 2010 [Read More ...]

Comparing with WCF 3.x, WCF 4.0 has new features. for example: default endpoints: With WCF 3.x, you have to provide configured endpoints when you host a service, otherwise, you will get an exception. In WCF 4, you will not worried if you forgot to set endpoint, because the runtime automatically adds one or more “default [Read More ...]

The answer is what I am looking for these days. I thought the imporant difference should be like this, but I got the confirmation today: Hosing in IIS. When a request comes in, the ServiceHost is constructed, then the service class being hosted is instantiated, and the request is handled. Nothing needs to be running [Read More ...]

The baseAddress element will be ignored when WCF hosting in IIS. The following is an example of WCF config: <?xml version="1.0" encoding="utf-8" ?> <configuration>   <system.serviceModel>     <services>       <service name="xxx.xxx.xxx">         <host>             <baseAddresses>             <add baseAddress="http://localhost/blah" />             </baseAddresses>         </host>         <endpoint …. />         <endpoint … />       </service>     </services> [Read More ...]

For .NET 4.0, there are 4 options to host a WCF Service: 1: Self Hosting in an Application: Create a regular Application ether of Windows Application or Web Application, and then put WCF services inside of this application; 2: Windows Services: Registering the AppDomain that hosts an WCF service as a managed Windows Service. The [Read More ...]

When you use WCF, you might meet the following error message: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: ‘Server Error [Read More ...]

Mr. Tomasz Janczuk has lots of blog posts about WCF http polling duplex service. The following is part of his blog : Performance of HTTP polling duplex server-side channel in Microsoft Silverlight 3     <serviceThrottling maxConcurrentSessions=”2147483647″/> … The number of session channels that a WCF service can support concurrently is throttled using ServiceThrottlingBehavior.MaxConcurrentSessions service behavior. [Read More ...]

1: Configuring Silverlight 2 Polling Duplex Endpoints in .config file only; 2: WCF Bindings In Depth

When you use WCF binding, you will see different timeout types: OpenTimeoutCloseTimeoutSendTimeoutReceiveTimeoutInactivityTimeout… Brief summary of binding timeout knobs… Client side:     * SendTimeout is used to initialize the OperationTimeout, which governs the whole interaction for sending a message (including receiving a reply message in a request-reply case).  This timeout also applies when sending reply messages [Read More ...]

IIS 7 supports HTTP protocols, sure it is. But you might need to set something so that IIS 7 supports non-HTTP protocols. Fox example, maybe you are building a WCF application which is using net.tcp binding: Visit Kcasada’s article: IIS 7 : Support for non-HTTP Protocols

© 2012 CodeEase.com Suffusion theme by Sayontan Sinha