-
Continue reading →: Exclude namespaces from XML using Jscript
In one of my requirement I had to parse XML and find node values. My XML looks as below <NS1:Envelope xmlns:NS1=“http://schemas.xmlsoap.org/soap/envelope/“> <QueryBalanceResult> <NS1:AvailableCredit>17400</NS1:AvailableCredit> </QueryBalanceResult> </NS1:Envelope> Since the XML has got namespaces I need to exclude namespaces before I find the node. Below is the logic to exclude namespaces var xmlWithNamespaces={Your…
-
Continue reading →: Stack overflow error while disposing object – C#
I have a class “ABC” which implements “IDisposable” interface and having below Dispose method. Public Class ABC : IDisposable { public void Dispose() { this.Dispose(true); } } When I run the application I was getting “Stack Overflow” error because the Dispose() method getting called recursively and went in to an infinite loop.…
-
Continue reading →: Make your WCF service’s Operation/Method Fire and Forget
There are cases when an operation has no returned values 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. It’s simple to implement. We just need to add “IsOneWay” property to ‘true’ to the…
-
Continue reading →: HTTP Error 404.17 – hosting Service in IIS
Recently when I hosted a web service project in IIS and browse that, I got below error. HTTP Error 404.17 – Not Found The requested content appears to be script and will not be served by the static file handler. Fix : In my case I missed a simple step,…
-
Continue reading →: Expecting element from namespace encountered with name namespace – Error DataContractSerializer
I have a REST enabled WCF service with Method GetFruits() which return list of Fruit objects serialized in XML format. My ‘Fruit’ class defined as below [DataContract] public class Fruit { string name = string.Empty; [DataMember] public string Name { get { return name; } set { name =…
-
Continue reading →: Check Entities attribute type – CRM Late Binding
Recently somebody posted a question in my blog, whether there is a way to determine the entities ‘Attribute Type’ instead of making Organization service call and read the metadata. Assume you have a Plug-in you made a ‘Retrieve’ call using Late Binding and, you got Entity object. Below is easy way…
-
Continue reading →: Execute Custom Action using Late Binding – CRM 2013
Custom Actions provide the ability to write reusable modules of logic that can be triggered through client-side or server-side code. Custom actions run synchronously and can take in parameters as well as return values. In this article I will walk you through creation of a Custom Action with Input Parameters…
-
Continue reading →: Teams vs Access Teams vs Access Team Templates – CRM 2013
As we know “Access Teams” are one of the new feature in CRM 2013. Let’s see how this is different from Legacy Owner Team and finally how is it different from “Access Team Templates”. Consider a scenario, Where we need to change the Accessibility of ‘Account’ records frequently I have…


