Geeks With Blogs
Mike Nichols - SonOfNun Technology If I were the captain on a big steamboat... May 2006 Entries
ASP.NET architecture Session pattern anyone?
Say I have a Facade layer which sits just beneath my UI (in this case ASP.NET) layer. This, of course, provides the API for my controller (code-behind) classes to interact with my domain as well as encapsulating my Application Logic. I understand it is good to do some kind of Session management in this layer too, but I just don't get the best way to do this without directly referencing the Session object from HttpContext. This limits my Facade to being a Web-facing service layer, though, so that ......

Posted On Thursday, May 25, 2006 6:57 PM

Composite Controls and the Missing View State
Along with (apparently) many .NET developers, I was having difficulty understanding why my ViewState wasn't being stored for my controls within a composite control I was building that had an internal Table. For example, in the overridden CreateChildControls() method, I'd do something like this: protected override CreateChildControls() { bool useDataSource = true; if(ViewState["UseDataSource... { useDataSource = (bool)ViewState["UseDataSou... } Table table = new Table(); Controls.Add(table); ......

Posted On Monday, May 22, 2006 3:41 PM

Peter's Date Package & VAM
Just installed Peter's Date Package at and have been enjoying working with all the gadgets he has obviuosly spent so much time improving. Great job Peter! The price is definitely right, especially considering how much thought he put into the accompanying documentation. I built some of my own date controls similar to these, but I canned 'em for his package [after arguing with my pride]. A slight bug (may be something I haven't done right since I am still new to them) is in Firefox ......

Posted On Thursday, May 18, 2006 4:40 PM

ASP.NET 2.0 Master Pages and Invalid Cast Exception
After installing Visual Studio 2005 I would intermittently get this error: Unable to cast object of type 'ASP.type' to type 'ASP.type' It was only intermittent and though I knew it had something to do with the compilation model I was going crazy until i found the post for the pre-release KB hotfix. I just noticed it has been released officially now at:

Posted On Wednesday, May 17, 2006 7:47 PM

NHibernate and Nullables and the Knight who say "Nee"
Good post for incorporating Nullables into current (1.0.2) version of NHibernate at http://frazzleddad.blogspot... James Avery at has graciously offered a workaround to the current lack of support to .Net2.0 Nullables. Be sure to stick the current build of NHibernate into the VS solution James offers and then rebuild before sticking the Nullables2.dll into your projects. Otherwise, NHibernate won't ......

Posted On Wednesday, May 17, 2006 6:13 AM

Network File Access, IIS 6.0 and ASP.NET apps
So I needed to read/write .pdf's to a network share (other than the Web server). There seem to be two options: a>Enable impersonation in the .config and b>Understand Application Pools and identity (IIS 6.0 only). Impersonation worked but I don't like the security implications of doing that so I read about changing the identity ASP.NET runs under from NetworkService to a user who has an account on the network. This TechNet article - ......

Posted On Tuesday, May 16, 2006 2:30 PM

Copyright © Mike Nichols | Powered by: