Home


Recent WCF articles

  • This section will list recent teasers of WCF articles in GoNetDotNet.
  • [Article] How to transfer / Upload / Download huge / large file to and from a WCF service using streaming. Introduction In this article we will see how to transfer a huge file to and from WCF services efficiently. WCF supports streaming of data. We will use streaming to transfer huge file efficiently to and from a WCF service. This article is all about transferring file using streaming transfer mode in WCF and it does not enforce you to use streaming always, because of its limitations.  Background To transfer huge files or data, streaming is the effective and efficient method. By default WCF uses buffered transfer mode. Here in this article, to get an efficient system which does not eat up resources, we will use Streaming transfer mode of WCF. But streaming transfer mode of WCF has some limitations. We ...
    Posted Nov 13, 2012, 6:31 AM by Libish Varghese Jacob
  • [Article] How to implement discovery proxy for Managed mode discovery service and How to use discovery proxy from client side. Introduction In this article, we will see how to create a discovery proxy for Managed mode discovery service and how to use it from client side to discover available services. In Managed mode discovery service, there is a centralized server called a discovery proxy that maintains information about available WCF services. The discovery proxy can be populated with information about WCF services in a variety of ways. How the discovery proxy is populated is up to the developer. In our example, we will let the WCF services to send announcement messages during startup to the discovery proxy to determine what services are available. Discovery proxy will hold those information and clients can use the discovery proxy to retrieve information about ...
    Posted Nov 1, 2012, 8:17 AM by Libish Varghese Jacob
  • [Article] How to implement Ad-Hoc Discovery service in WCF both via code and configuration file and How to find WCF Discovery service from client side. Introduction In this article we will see how to set up a WCF service to be discoverable by setting it as Ad-Hoc discovery service. Windows Communication Foundation (WCF) provides support to enable services to be discoverable at runtime in an interoperable way using the WS-Discovery protocol. WCF services can announce their availability to the network using a multicast message or to a discovery proxy server. Client applications can search the network or a discovery proxy server to find services that meet a set of criteria. Discoverable WCF service can be configured via code or by configuration file. This article will explain how to set up discoverable WCF service via code and through configuration file and also how to ...
    Posted Oct 21, 2012, 11:41 PM by Libish Varghese Jacob
  • [Article] How to Create One way WCF service with Callbacks and consume in client using custom proxy. Introduction There are cases when an operation has no return value, and the client does not care about the success or failure of the invocation. To support this sort of fire and forget invocation, WCF offers one-way operations. In this article we will see how to create a one way service which responds to client via callback.Background In this article we will see how to create and call a one way call service which uses callbacks to reply back to client. In this article we will create a simple service with two methods, Sum and Total. Here the logic implemented in these methods will be simple, we will just take the parameter add it and will return. In ...
    Posted Oct 21, 2012, 11:41 PM by Libish Varghese Jacob
  • [Article] Consuming self-hosted WCF service by Creating WCF net.tcp and net.pipe proxy at runtime and by custom proxy, without adding service reference. Introduction In this article we will see how to call a WCF service without adding a service reference. In this article we will see two ways of calling WCF service method. One is to call the WCF service method on the fly and second is by creating a custom proxy without the help of SvcUtil or any other tool. We will be using a two way service in this article.Background This article will be a continuation of [Article][Beginner] Creating WCF Service and Self Hosting in a console application and Creating Proxy of net.tcp and net.pipe endpoint via Visual Studio. Here we will see how to call a WCF service method without adding WCF service reference in ...
    Posted Oct 21, 2012, 11:40 PM by Libish Varghese Jacob
Showing posts 1 - 5 of 6. View more »



Recent WPF Articles

  • This section will list recent teasers of WPF articles in  GoNetDotNet .
  • [ Article ] WPF data validation for error and display error message as tooltip using IDataErrorInfo and error templates IntroductionIn this article, we will see how to do validation in WPF and how to display it in the UI. Specifically we will discuss the IDataErrorInfo (System.ComponentModel) to validate error and when to display errors. We will be using control template to create the error template. Later in this article we will see how to show error using error template and displaying error in tooltip of the error template control.BackgroundIn this article, we will first create a simple WPF application with a textbox and a button. We will validate the text in the textbox when the button is pressed using mechanism provided by IDataErrorInfo. We will then show an error text in an already defined error ...
    Posted Nov 8, 2012, 9:19 PM by Libish Varghese Jacob
  • [ Article ] Wpf Xaml type converters with MarkupExtension to obtaining value that is neither primitive nor specific XAML type IntroductionIn this article, we will see how to do type conversion in WPF from a string in XAML markup into particular objects. A XAML parser can either interpret an attribute value as a literal string that can be converted to a primitive, or convert it to an object by some means. One such means is by referencing a type converter; However, there are scenarios where different behavior is required. We will be using Markup Extensions to achieve this string to particular object conversion in WPF. Markup extensions return objects to callers, based on the input of string attribute values or markup elements in XAML. This article will explain how to assign a string value to an element in xaml ...
    Posted Oct 21, 2012, 11:53 PM by Libish Varghese Jacob
  • [ Article ] Communications between loosely coupled components or modules in WPF application Using publish - subscribe design pattern with PRISM Event Aggregator service IntroductionIn this article, we will see how a composite loosely coupled component or module in an enterprise application communicates with each other by passing messages. Loosely coupled components are intended to evolve independently and ideally have no dependency to other components. When it comes to communication between these modules, we need to have some strategy to pass messages between these components or modules. We have a lot of integration patterns to achieve this, which include Message Broker, Message Bus, Publish/Subscribe patterns etc. In this article we will adopt Publish/Subscribe pattern. This article will show you the implementation of Publish/Subscribe patterns in a WPF application by which you can communicate between Composite modules which have no idea ...
    Posted Oct 21, 2012, 11:51 PM by Libish Varghese Jacob
  • [ Article ] Type conversion between source and target binding value WPF IValueConverter IntroductionIn this article, we will see how to do type conversion between source and target binding value in WPF. This article will help you to hook into WPF’s binding action. You will be able to hook into the binding action and can modify the binding value before it is binded to an element in WPF window.  We will be using Binding Converters in WPF to achieve this.Background When we use MVVM design pattern to do coding in WPF, we normally bind a window element in WPF with a property in the model view. WPF while binding the element to the property will do some default conversion to the property value and will bind that value to the ...
    Posted Oct 21, 2012, 11:56 PM by Libish Varghese Jacob
  • [ Article ] [ Beginner ] Create composite modular UI application in WPF using MEF and PRISM Composite modular UI application in WPF using MEF and PRISM Introduction This article is all about creating a composite modular UI application in WPF using PRISM and MEF. In this article we will see how to split a component in an UI to different modules and how to inject those components to regions in main UI of the application. This article will explain you how to inject view form a module to a region in a shell of a WPF UI application using PRISM and Managed Extensibility Framework (MEF). MEF is a component of .NET Framework 4.0 for creating extensible modular composite applications. PRISM provides guidance to help you design and build rich, flexible, and easy to maintain applications ...
    Posted Oct 21, 2012, 11:50 PM by Libish Varghese Jacob
Showing posts 1 - 5 of 5. View more »

Recent Post on Enterprise Library

  • [ Solved ] Activation error occurred while trying to get instance of type ICacheManager Enterprise Library 5.0 exception Activation error occurred while trying to get instance of type ICacheManagerIntroductionIn this post we will see how to fix the exception which occurs ...
    Posted Nov 6, 2012, 11:14 AM by Libish Varghese Jacob
  • [ Solved ] Microsoft.Practices.EnterpriseLibrary.Caching.Database.DataBackingStore cannot be resolved. Please verify the spelling is correct or that the full type name is provided EnterpriseLibrary Caching DataBackingStore cannot be resolved. Please verify the spelling is correct or that the full type name is provided.I was trying to use SQlite Backing Store for my ...
    Posted Oct 4, 2012, 10:53 PM by Libish Varghese Jacob
Showing posts 1 - 2 of 2. View more »

Recent Post on Console Applicatiopn

  • [ Solved ] How to hide a console application from showing up How to hide a console of a console application from showing up while the program still is in execution.While I was working with WCF service application, I came across ...
    Posted Nov 3, 2012, 11:58 AM by Libish Varghese Jacob
Showing posts 1 - 1 of 1. View more »

Team Foundation Server

  • [Solved] Solution files bind to TFS but files edited from visual studio are not showing in pending changes. This can happen if you don’t have proper binding files. This can happen if the solution is new in TFS and there are no binding files associated with it ...
    Posted Jan 8, 2013, 2:29 AM by Libish Varghese Jacob
Showing posts 1 - 1 of 1. View more »

Recent Post on .Net

  • [ Solved ] The type or namespace name 'Data' does not exist in the namespace IntroductionIn this post we will see how to fix the exceptions like this which hapens even after adding proper dll(s). Here in this post we will see how ...
    Posted Nov 13, 2012, 12:53 AM by Libish Varghese Jacob
  • [ Solved ] Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information. IntroductionIn this post we will see how to fix the exception due to mixed mode assembly while working with version 4.0 of runtime.BackgroundI was working with ...
    Posted Nov 13, 2012, 12:54 AM by Libish Varghese Jacob
Showing posts 1 - 2 of 2. View more »

Recent Post on WCF

  • [Solved] How to add service reference from visual studio to WCF services which uses net.tcp/tcp binding or net.pipe/PipeBinding. IntroductionIt is not possible to reference a WCF service which does not have an http endpoint exposed. In this post we will see how to add service reference to ...
    Posted Nov 22, 2012, 7:48 AM by Libish Varghese Jacob
  • [Solved] There was an error reading from the pipe: Unrecognized error 109 (0x6d). IntroductionIf you are using netNamedPipeBinding for your communication then you may get an exception like “There was an error reading from the pipe: Unrecognized error 109 (0x6d).”How to ...
    Posted Nov 13, 2012, 6:38 AM by Libish Varghese Jacob
  • [Solved] An endpoint configuration section for contract could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name. IntroductionThis fix is helpful if you are using WCF and when you try to access the service, the client throws an exception likeAn endpoint configuration section for contract ...
    Posted Nov 13, 2012, 12:25 AM by Libish Varghese Jacob
  • [Solved] There was an error while trying to serialize parameter fileStream. The InnerException message was Type System.IO.FileStream with data contract name FileStream: System.IO is not expected. IntroductionThis fix is helpful if you are using WCF streaming and you got this exception while transferring huge file using data contract. If you are using streaming and the ...
    Posted Nov 12, 2012, 11:38 PM by Libish Varghese Jacob
  • [Solved] The .Net Framing mode being used is not supported IntroductionHere we will see how to fix the exception, the .Net Framing mode being used is not supported by 'net.tcp://....' See the server logs for more details.How ...
    Posted Nov 3, 2012, 10:59 AM by Libish Varghese Jacob
Showing posts 1 - 5 of 10. View more »

Recent Post on WPF

  • [ Solved ] How to bind a command to WPF XAML button from Data template. Introduction This post will help you in binding a command to a button, where the button is defined in a template say a data template. With normal command binding it ...
    Posted Mar 18, 2013, 6:45 AM by Libish Varghese Jacob
  • [Solved] How to use Resource Dictionary in WPF and How to call Resource Dictionary from xaml. IntroductionWPF applications support rich media and graphics, this require styles and styles can be reusable across different window or element in WPF. Here we need a mechanism by which ...
    Posted Oct 22, 2012, 4:04 AM by Libish Varghese Jacob
  • [ Solved ] Adding Hot Keys ( HotKey or Shortcut Key ) in WPF window IntroductionIn this post we will see how to add hot keys to WPF window. Hot keys are keyboard shortcuts with which we can easily navigate through the window without ...
    Posted Oct 22, 2012, 4:03 AM by Libish Varghese Jacob
Showing posts 1 - 3 of 4. View more »

Recent Post on Useful tools WPF

  • WPF Spy How to see the xaml code of WPF UI at runtimeIf you want to see the xaml code of WPF UI at runtime, we need some sort of spying ...
    Posted Oct 3, 2012, 11:56 AM by Libish Varghese Jacob
Showing posts 1 - 1 of 1. View more »
Comments