Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T. February 2006 Entries
Serialization: How to serialize and deserialize using C# .NET
Serialize (convert an object instance to an XML document): // Assuming obj is an instance of an objectXmlSerializer ser = new XmlSerializer(obj.GetType()... sb = new System.Text.StringBuilder()... writer = new System.IO.StringWriter(sb);... obj);XmlDocument doc = new XmlDocument();doc.LoadXml(s... Deserialize (convert an XML document into an object instance): //Assuming doc is an XML document containing a serialized object and ......

Posted On Thursday, February 9, 2006 2:59 PM

Error: The underlying connection was closed: The remote name could not be resolved. When doing HttpRequest from ASP.NET.
The following error occured when trying to open a web page (ASP.NET) that was doing an HttpRequest. "The underlying connection was closed: The remote name could not be resolved." This is usually caused because the ASP.NET app is on a network that is using a proxy server - and as ASP.NET does not run as a user account, it does not have access to the proxy settings in the registry. To resolve add the following section to your web.config file. <defaultProxy> <proxy usesystemdefault = "false" ......

Posted On Thursday, February 9, 2006 9:20 AM

Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net