Visual Studio 2003 and SourceSafe6.0 integration

November 29, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I've been using VSS6.0 at my new workplace for the last month and a bit now and at first was very impressed with the integration with Visual Studio with regards to Open from source control for a project which automatically pulled down the files in the solution (and child projects) and created IIS applications for all the web projects and placed everything in the same place as was originally set u more...
Tags:

 

CruiseControl.NET | Nant Task | Nant Process timed out (after 600 seconds)

November 28, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I'm trying to compile a 'ye old VB6 COM Object in a Nant Task in CruiseControl.NET and for some reason I get this error: ThoughtWorks.CruiseControl.Core.Tasks.BuilderException: NAnt process timed out (after 600 seconds) at ThoughtWorks.CruiseControl.Core.Tasks.NAntTask.Run(IIntegrationResult result) at ThoughtWorks.CruiseControl.Core.Project.Run(IIntegrationResult result) at ThoughtWorks.Cruise more...
Tags:

 

.Net CMS's

November 28, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I've been investigating a few .NET CMS applications and Ant dropped me a line about Kentico . I had already had a look at DotNetNuke which is probably the largest open source community development out there in .Net. Background Kentico provides an API to work with and two ASP.NET 1.1 (or 2.0) IIS sites with VS2003 (or VS2005) projects (you can choose either C# or VB.NET). The developer reference more...
Tags:

 

Enterprise Library Registry Error (installservices.bat)

November 27, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I was just testing all my build scripts on our build server and hit the IIS app (created using NantContrib - very handy) and got a Registry Security Error on the web site. I found this solution which means modifying the InstallServices.bat so that Visual Studio is not required to be installed for the Enterprise Libraries to log properly. The .bat file can be found in the src directory and when ru more...
Tags:

 

Regular Expressions

November 27, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I bought a book a while ago on Regular Expressions and just haven't got round to sitting down and reading it. I just came across this article which has a great introduction to pattern matching and also recommends using Expresso which is a great bit of software to show matches on sample text. Great for building up patterns without having to recompile code etc. more...
Tags:

 

Enterprise Library - Configuration Application Block Overhead

November 24, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

After setting this up with a few projects now I do feel that there is some overhead with the Configuration Application Block  ie. having to setup a class to define the configuration information (e.g. EditorFontData in the QuickStart) and then having to use the WriteConfiguration() method to create your first instance of the config setting file mainly because the XML is not something you can type more...
Tags:

 

SELECT TOP @var * FROM table

November 23, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

MS SQL 2000 doesn't allow you to have declared variables in the TOP x statement. Found this nice little way around this, you basically use SET ROWCOUNT command: declare @v1 intset @v1 = 25set rowcount @v1select * from MyTable Order by DateColumnset rowcount 0 MS SQL 2005 actually allows you to do this directly and I remember being at the product demo and all the 'ohhhs' and 'ahhhs' came out for more...
Tags:

 

Congratulations to Shane Palmer!

November 22, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

Congratulations to Shano for coming 3rd in his weight at the 4th Karate-Do Goju-Kai World Championships in Rotterdam this month! Found some cool pictures of him. more...
Tags:

 

Troubleshooting Pre-build event in Visual Studio 2003 error

November 22, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I've got Enterprise Library all wired up now in my Windows Service LDAPContacts Project I've created and also in the UnitTests project. I use a pre-build event found in the 'Project properties | Common Properties | Build Events' section. So when I rebuild my solution it automatically fires off and copies the main configuration file to my Unit Tests project rather than me keeping two copies. It's more...
Tags:

 

Custom environment instance settings

November 21, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

From reading into the documentation for Enterprise Library v1.0 I can't see anyway of having custom settings like you would do for different enironment instances in one config file e.g. System.Configuration.ConfigurationSettings.AppSettings["DebugFlagDev"] System.Configuration.ConfigurationSettings.AppSettings["DebugFlagLive"] I'd like to be able to just grab "DebugFlag more...
Tags:

 

Death to tables

November 21, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

Found this site and thought it was worth a link to make sure tables do die! It's a great example of how CSS layouts actually encourage clean layouts and fast loading pages. more...
Tags:

 

Enterprise Library - Logging

November 21, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I've been using log4net for the last year but thought it would be worth trialing the Logging Application block that comes with Enterprise Library. I found this article which basically trashes it compared to log4net...but we'll see. As usual, found a nice article by David Hayden (again) which emulates log4net's Debug, Info, Fatal type approach. He's wrapped up the types of LogEntry for each Catego more...
Tags:

 

Microsoft Enterprise Library

November 20, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I couldn't believe how hard it was to find the download for the Enterprise Library on the Microsoft web site! I ended up using Google to search for it. The Microsoft site is all over the place it's crazy! Anyway, the Enterprise Library project can be found on the GotDotNet.com portal. Also found this great Wiki that lists all of the tutorials out there for it. more...
Tags:

 

Visual Studio Debugger error trap

November 17, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

Had a nasty problem yesterday with my debugger. The error I was getting was: Auto-attach to process '[3172] aspnet_wp.exe' on machine 'JTHAKE' failed. Error code 0x8013134b I was looking at permissions, restarting IIS changing the user in the machine.config with no joy. Then by off chance looking at a blog post I found out that for some reason my app had changed from running 1.1 to 2.0! I wasn' more...
Tags:

 

Microsoft Atlas sample project

November 17, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

Microsoft have released a WIKI project which is to "show off" the features of Atlas. I've downloaded the .vsi project which "should" automatically get me setup in the new Visual Studio 2005 IDE. I'll report back with my findings soon... more...
Tags:

 

CommunityServer v2.0

November 17, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I'm now running Community Server v2.0 beta on this web site. So far so good. Had to upgrade my hosting to .Net Framework 2.0 as this is a major upgrade and also my new GlobalInlineHockey.com web site is coming this weekend too. more...
Tags:

 

RemoveRow() and Rows[x].Delete()

November 16, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I was having a problem deleting rows from a DataSet and calling the Update() method because although the Rows.Count was saying that there was less after a RemoveRow() when it called the Update() HasChanges() was false. A little bit of reading on the web and I found that you have to use the Delete() function in the Rows[x] object. To find the index of the row you have found (using FindById() etc.) more...
Tags:

 

Regular Expressions

November 16, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I bought a book a while ago on Regular Expressions but haven't got around to reading it. Graeme at work gave me this nice little expression to grab the file name from a http path. string path = “http://www.google.com/test.asp“; Regex regex = new Regex(@"[^/]*?/([^/]*?\.\w+)$"); Match fileNameMatch = regex.Match(path); string fileName = fileNameMatch.Result("$1"); I really need more...
Tags:

 

Dynamic Web Controls, Postbacks, and View State

November 16, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

A great article explaining how to use dynamic loading of controls. I found it helped to run in debug mode to see what code was fired first etc. too.  http://aspnet.4guysfromrolla.com/articles/092904-1.aspx more...
Tags:

 

DotNetNuke

November 16, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I downloaded the basic install of DotNetNuke to see what it was like in .Net Framework 2.0. I had to fiddle a bit and the documentation is only for the previous version. A few things were a problem: 1. I needed to copy the SiteUrls.config file from the /config/ directory to the root. I need to rename release.config to web.config I needed to edit the web.config to use SQL Server 2000- I had to more...
Tags:

 

CommunityServer.org

November 16, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I've just downloaded and installed CommunityServer.org 1.1 . There was a simple readme file with a few simple steps and then you hit a web page and a install wizard walks you through the rest which is very impressive. CommunityServer allows you to have Blogs, Galleries, Forums and will soon have v2.0 out which will start to incorporate a new CMS which the organisation has purchased. I'm going to more...
Tags:

 

.Net Strongly Typed DataSet's

November 15, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I've been doing some work using the xsd's and Xml just recently. I've just been populating the Strongly Typed DataSet's created from the xsd generated by my sample Xml with database content. Found a nice link (http://www.xamlon.com/kb/Article.aspx?id=10180) which shows you how simple it is to populate it from the database. The MSDN link is: http://msdn.microsoft.com/library/default.asp?url=/libra more...
Tags:

 

ASP Session State to ASP.Net

November 14, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I found myself needing a way to read Session State from ASP to ASP.Net (1.1) to save writing some new components in Classic ASP and without migrating all the outstanding code to ASP.Net. Not sure if this is the most efficient way, but works fine some I'm running with it: http://www.eggheadcafe.com/articles/20021207.asp   more...
Tags:

 

SQL DIFF App

November 7, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

Got recommened a great SQL database comparison tool by a friend of my (Antony Day). It's called SQL Delta and a demo can be found at http://sqldelta.com/index.html. It's a very powerful DIFF app that compares every single difference you could think of! As always, thanks Ant! more...
Tags:

 

CruiseControl.NET v1.0 RC2

November 7, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

Just started looking to implement CruiseControl.Net with our projects at work.These guys have more documentation than Draco.Net and the community looks a bit more active. It's very easy to configure and the install is really quick without having to do any tweaks at all! It uses XSL to transform log files created by various other apps you can call e.g. Nant and VSS. I've already got 3 projects run more...
Tags:

 

SmartFTP

November 7, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I needed a better tool for FTP as I was getting problems with a few others...as usual Ant Day came to the rescue with SmartFTP . So far, so good. Very good with Global Queue etc, can just leave it to do it's business! The interface is very user friendly too. more...
Tags:

 

Draco.net and Nant Buildfile

November 2, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

I have been setting up a build server for our development environment at work and was setting up Draco.Net to work with Source Safe and Nant to implement Continuous Integration. I was having some problems with errors related to: Failed to process build 'TestProject'.  The following exception occurred:System.ComponentModel.Win32Exception: The system cannot find the file specified   at System.Diag more...
Tags:

 

SQL Error catching

November 2, 2005 · Posted by Jeremy Thake
0 Comments· 0 Links to this post

Found a great article on CodeProject...as always...which discusses how to handle TRANSACTION ROLLBACK when you have errors during your script. For example:BEGIN TRANSACTION UPGRADE INSERT titles(title_id, title, type) VALUES (@title_id, @title, @title_type) IF (@@ERROR <> 0) GOTO ERR_HANDLER INSERT titleauthor(au_id, title_id) VALUES (@au_id, @title_id) IF (@@ERRO more...
Tags: