Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object August 2010 Entries
How to: Export A Class to XML
The scenario: Imagine someone asks you to create an XML file with some data structure. The approuch: There are several ways to achieve this, the fastest and less time comsuming is to create a class structure that represents the XML structure you need, fill in with the data and them serialize it to a string and save it to a file. The Implementation: Lets say you need a single node, followed by an array of nodes. Class Definition: public class MyNode { [XmlElementAttribute("code")] public int code; ......

Posted On Tuesday, August 17, 2010 10:54 AM

Linq error: MSDTC on server 'servername' is unavailable
Occasionally an application that I am working on throws the above error... After trying to fix my code for a bit, and not finding the problem I googled a bit and discovered that this error is caused by a windows service that must be running. So, if you ever encounter this error, you must turn on the 'Distributed Transaction Coordinator' in order to solve it. Hope this helps. Original source: ......

Posted On Wednesday, August 11, 2010 6:39 AM

Copyright © Sglima | Powered by: