Friday, November 5, 2010

Goddamn Object not set to an instance...

"Object reference not set to an instance of an object."

I love non-descriptive error messages.
Perhaps a mention of which object is returning the error would be great. It certainly would help.

k'thnx bye

Tuesday, July 13, 2010

CruiseControl and WatiN

Running CruiseControl as a service and wanting to run WatiN web tests?
Ensure ccService is running as a local user who has used IE before.

The other gotcha I found so far was more to do with setting up IIS to run multiple websites on the same port (specifically 80). Ensure that each site has differing Host header values.

Tuesday, June 15, 2010

Linq-To-Sql Sproc Return Type is None

For when the design is being especially useless.

Tuesday, May 25, 2010

Humans fail at being software components

Key from this:

"I presented several characteristics of people that have recognizable effects on methodology design.

The first is that we are sensitive to communication timing and modalities. The prediction is that physical proximity and ease of communication has dominant effect.

The second is that people tend to inconsistency. The prediction is that methodologies requiring disciplined consistency are fragile in practice.

The third is that people vary, not just daily, but from group to group. Methodologies don’t currently, but do need to deal with this cultural variation.

The fourth is that people like to be good citizens, are good at looking around and taking initiative. These combine to form that common success factor, “a few good people stepped in at key moments.”

"

Wednesday, April 21, 2010

ASP .Net Generic Handlers and Session

For session state to be available to a handler, the handler has to implement IReadOnlySessionState (for read-only access) or IRequiresSessionState (for read-write access). For example:

public class MyHandler : IHttpHandler, IRequiresSessionState
{
// ...
}

There are no actual methods to implement for IRequiresSessionState - it is just a "marker" interface that ASP.NET will look for at runtime. If it find the interface it goes to the trouble of making session state available.