New RAD tool. Available only here.

31. March 2009

"AppSpice, the cure for that musty code smell."

I got a funny feeling I am going to need this again.

30. March 2009

I am working on a field in a SQL2005 database that stores custom attributes in an xml data type column.  I am pretty sure that I am going to  need this link in the near future.

http://msdn.microsoft.com/en-us/library/ms345117.aspx

.Net, Tips and Tricks, Visual Studio

HttpHandler and Session State

6. March 2009

Its funny when you use a specific solution to solve many problems over and over and then you find out the limitation of your “genius” solution.  Kind of a let down huh?  What if you soon discover that your solution still is “genius” and solves the problem you thought you had.  that is a good feeling if I say so myself. 

I just started to "heavily using HttpHandlers that are dependant on the session state.  The site that I have been working on requires Session so there was no way around it.  The issue that kept coming up is that the context.Session that was getting passed to the ProcessRequest method was always null.  I needed the Session and the link I am including gave me the answer. 

To save you the read, you can use to Interface markers to tell IIS that you need the Session passed to your handler, IRequiresSessionState or IReadOnlySessionState.  Guess what, you know have the current Session being passed to your handler.   Hope it helps.

 

http://bytes.com/groups/net-asp/341797-session-object-null-http-handler

.Net, Visual Studio, Tips and Tricks, Microsoft , , , , ,

System.Object Orientated Programming

6. March 2009

Lesson learned:  Don’t return the type System.Object in your methods or functions.  Use interfaces or classes and mark them Serializable.  You will save all the developers that come after you some headaches. 

Just ran into an issue where someone returned an object type and I needed to pass the object over WCF.  It kept closing my connection unexpectedly.  The fix, wrap the “object” and pass it back as a KnownType.