worksonmymachine_logo_small If you are keen on earning your “It works on my machine certification” I have a tip for you. When using SQL express to develop a starter kit for www.asp.net., ensure that you hard code your connection string to a value that is specific to your machine. For example instead of doing it correctly like this:

connectionString=”Data Source=.\SQLExpress;Integrated Security=true;AttachDBFileName=|DataDirectory|GreatAppData.mdf;User Instance=True”

You should use one like this:

connectionString=”Data Source=.\SQLExpress;Integrated Security=true;AttachDBFileName=c:\users\bruce\projects\greatapp\data\GreatAppData.mdf;User Instance=True”

That way you can ensure that it won’t work for anyone that downloads the source code. Thanks again to Joseph for the certification.

I have been trying out Dotnetnuke over the last few weeks with the view to launching a new web site on it. Well I am about to uninstall it, never to use it again. Despite all the promise I am finding myself in the land of raw HTML, and content being lost when I save it. If I have to work in raw HTML, I’d rather do it on the desktop and use Microsoft Expression using dynamic web templates, or Dasblog.