It’s easy to test a service if you create it in a Windows Communication Foundation (WCF) Service Library — just press F5 to bring up Visual Studio’s Test Client. Testing isn’t as easy if you create your service in an ASP.NET project — you have to write your own test client. However, . . . → Read More: WCF Hosting :: Simplify WCF Development by Hosting a WCF Service Library in an ASP.NET Project
In order to understand WCF Bindings in details, it’s important to understand the Channel Stack as part of the WCF runtime.
WCF binding is composed of binding elements and each binding element is corresponds to a specific channel in the Channel Stack. The Channel Stack can be categorized into two major areas i.e. Protocol Channels and Transport . . . → Read More: WCF Hosting :: Understanding WCF Bindings and Channel Stack
This post discusses the new features in WCF 4.5. There have been significant improvements in WCF 4.5 on configuration.
Simplifying the generated configuration file in client
A client configuration file is generated when you add a service reference in Visual Studio 2010. The configuration files in earlier version of WCF contained the value of every binding property even . . . → Read More: WCF 4.5 Hosting :: New Features in WCF 4.5
In this example I’ll use WCF RIA services because it can wire the example up quickly, it automatically projects the data annotations, and because I get a lot of people who ask me for examples using WCF RIA. The example here will work just as well if you use your own POCO classes with annotations in . . . → Read More: WCF RIA Hosting :: Using Attribute Validation in Silverlight with WCF RIA Services Example
This is another installment in the WCF vs. WTF article series. I mentioned before that I am quite a fan of WCF but having said that, feel that there are a few areas for improvement like sending method comments with the service contract discovery and more streamlined debugging, to name a couple.
The truth is that WCF . . . → Read More: WCF Hosting :: How to Fix Error -The underlying connection was closed: An unexpected error occurred on a receive.
Why to use net.tcp binding ?
A key benefit of net.tcp binding is the performance. If you want fast Silverlight applications that communicate with your WCF service in your secure intranet environment you will probably use this binding.
This net.tcp binding for now is intended to be used in intranet environments. Because this protocol is build on top . . . → Read More: Silverlight 4 Hosting :: WCF NET.TCP Protocol in Silverlight 4
Out of the box Silverlight provides two message encoding types for sending SOAP messages over the wire. These are TextEncoding and BinaryEncoding. MTOM encoding is still not available within Silverlight.
Binary encoded messages produce a payload that is about half the size of a message encoded with standard text encoding. Please note that binary encoding is a . . . → Read More: WCF Services Hosting :: Optimize Data Contracts for better WCF Performance
If it’s the first time that you want to host a WCF web site under IIS7, then you probably got this error:
HTTP Error 404.17 – Not Found
1. Check if ASP.NET installed correctly on Machine:
open(Windows VISTA) : Control Panel->Programs and Features->Turn windows features on or off
check is asp.net selected like below:
2. go to command prompt ( Remember . . . → Read More: WCF Hosting :: HTTP Error 404.17 – Not Found When Hosting WCF in IIS7
The PathListBox control is a cool new addition to the Blend 4 SDK, and allows the elements inside a ListBox to lay out along any Path control shape. You’ll need to install the Blend 4 SDK to get access to the PathListBox control, but note that this is available outside of Expression Blend 4 (you don’t . . . → Read More: Silverlight 4 Hosting :: PathListBox for Motion Path Animation in Silverlight 4
1. Start a new Silverlight solution, name it DataFormExample, and add a reference to System.Windows.Controls.Data.DataForm.Toolkit (from the Silverlight Toolkit). Alternatively, you can drag the DataForm from the Toolbox to the design surface.
2. Open MainPage.xaml and add a namespace import statement at the top of this fi le (in the tag) as shown in the following code. . . . → Read More: Silverlight 4 Hosting :: Working with DataForm in Microsoft Silverlight 4