Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  152 Posts | 0 Stories | 2310 Comments | 653 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

February 2006 Entries

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...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

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"...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati