csharpaspnet.blogspot.com
My old .Net blog...: August 2009
http://csharpaspnet.blogspot.com/2009_08_01_archive.html
My old .Net blog. Wednesday, August 26, 2009. A quick tip for error "Cross-thread operation not valid.". I was helping to diagnose a threading error that goes like Cross-thread operation not valid. This typically happens when the UI thread is being accessed by another thread. Well, there might be solutions like to use Invoke delegation, here I would like to give a tip built on the background worker helper. I wrote few weeks ago. Links to this post. Tuesday, August 11, 2009. Lesson 1 - don't install certi...
csharpaspnet.blogspot.com
My old .Net blog...: Serialize using DataContractSerializer
http://csharpaspnet.blogspot.com/2009/01/serialize-using-datacontractserializer.html
My old .Net blog. Tuesday, January 20, 2009. In the past I had couple of posts about serialization - this. Recently, came across a need that required to serialize an object that is not public - wanted to serialize an internal class. This could be done using good old reflection techniques but thanks to 3.0/3.5 framework, the solution lies in using DataContractSerializer. Let's get to the code - quite simple:. System.Runtime.Serialization;. StringBuilder serialXML = new. April 13, 2009 at 11:29 AM. The con...
csharpaspnet.blogspot.com
My old .Net blog...: A quick tip for error "Cross-thread operation not valid..."
http://csharpaspnet.blogspot.com/2009/08/quick-tip-for-error-cross-thread.html
My old .Net blog. Wednesday, August 26, 2009. A quick tip for error "Cross-thread operation not valid.". I was helping to diagnose a threading error that goes like Cross-thread operation not valid. This typically happens when the UI thread is being accessed by another thread. Well, there might be solutions like to use Invoke delegation, here I would like to give a tip built on the background worker helper. I wrote few weeks ago. Subscribe to: Post Comments (Atom). IIS 7 and Exceptions. Ask Tom - Oracle.
csharpaspnet.blogspot.com
My old .Net blog...: Cryptography - AesManaged
http://csharpaspnet.blogspot.com/2009/02/cryptography-aesmanaged.html
My old .Net blog. Tuesday, February 10, 2009. I wrote a cryptography class for one my projects in the past and it was built using RijndaelManaged Class. Few months back, revisited to upgrade it to a simpler yet better code block and that's when I looked into AesManaged Class. Just as I was getting ready to post my sample to this blog, I searched and found that Steve Sheldon had a wonderful blog about a simple example to implement AesManaged class in a blog titled Simple Cryptography Block.
csharpaspnet.blogspot.com
My old .Net blog...: January 2010
http://csharpaspnet.blogspot.com/2010_01_01_archive.html
My old .Net blog. Tuesday, January 12, 2010. Virtual applications under Ektron hosted sites - virtual folders. This is a quick tip for those who are wondering on why they get errors with httpHandlers and httpModules when they create virtual applications under a site hosting Ektron based root. You just need to remove the references to get rid of Ektron handlers. A simple config settings (Web.config) would look like (for your virtual hosted application):. Remove verb= "GET,POST". Remove verb= "GET,POST".
csharpaspnet.blogspot.com
My old .Net blog...: Virtual applications under Ektron hosted sites - virtual folders
http://csharpaspnet.blogspot.com/2010/01/virtual-applications-under-ektron.html
My old .Net blog. Tuesday, January 12, 2010. Virtual applications under Ektron hosted sites - virtual folders. This is a quick tip for those who are wondering on why they get errors with httpHandlers and httpModules when they create virtual applications under a site hosting Ektron based root. You just need to remove the references to get rid of Ektron handlers. A simple config settings (Web.config) would look like (for your virtual hosted application):. Remove verb= "GET,POST". Remove verb= "GET,POST".
csharpaspnet.blogspot.com
My old .Net blog...: Mutex - A manager class to support both local and global scope
http://csharpaspnet.blogspot.com/2009/02/mutex-manager-class-to-support-both.html
My old .Net blog. Thursday, February 19, 2009. Mutex - A manager class to support both local and global scope. I think Mutex is one such object that I've seen few of us having difficulty or second opinions in usage. After all it does what it's supposed to do and as always I recommend everybody to read documentation. To get a good understanding. MutexManager to support safe Mutex implementation. Be sure to check for IsMutexCreated. IsMutexCreated { get; private. ExceptionText.Length 0); }. MutexManager( "...
csharpaspnet.blogspot.com
My old .Net blog...: Serialize objects using SoapFormatter
http://csharpaspnet.blogspot.com/2008/01/serialize-objects-using-soapformatter.html
My old .Net blog. Friday, January 4, 2008. Serialize objects using SoapFormatter. A while ago we’ve seen how to serialize and deserialize objects. Using XMLSerializer. Somebody asked recently so thought of showing how to do it as SoapFormatter. Here’s the code and you get the idea. One thing to remember is to add reference to. System.Runtime.Serialization.Formatters.Soap. SoapFormatter.Serialize(mStream, objToSerialize);. Buffer = mStream.GetBuffer();. SerialXML = encoding.GetString(buffer);.
csharpaspnet.blogspot.com
My old .Net blog...: March 2010
http://csharpaspnet.blogspot.com/2010_03_01_archive.html
My old .Net blog. Monday, March 8, 2010. NHibernate - Ad Hoc SQL GetDate. Lately I have been focusing on designing a web project to serve as a platform (call it white label) and I will blog more about my experiences on that. Here, I'm going to give a tip using NHibernate. We were building a health check page for our monitors and all it has to do is make a simple database call. What is more appropriate than getting current date. ISQLQuery sqlQuery = session.CreateSQLQuery( "select getdate()". Links to thi...
csharpaspnet.blogspot.com
My old .Net blog...: Oracle 10g client upgrade error - Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
http://csharpaspnet.blogspot.com/2009/02/oracle-10g-client-upgrade-error.html
My old .Net blog. Tuesday, February 10, 2009. Oracle 10g client upgrade error - Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Turns out in the end all we had to do is to apply 10g Release 2 (10.2.0.4) Patch Set 3 for Microsoft Windows (32-Bit). And things have been stable since that patch. Subscribe to: Post Comments (Atom). Mutex - A manager class to support both local and . Wizard Control in WinForms? A Trick by hiding Tabs. When to Reorganize/Re...