Wednesday, September 30, 2009

TFS VS.NET 2008 Testing Fails Corrupt Installer

I recently tried to install vs.net 2008 for testers and was not able to run testing projects succesfully.
I was getting the this error:




I tried re-installing vs.net 2008 for testers ( I already had vs.net Team Foundation 2008 installed) but I had error with the installer.

These are the errors in the Application Event Logs:

Error in Template (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\VisualBasic\1033\AdoNetEntityDataModelVB_ASPNET.zip), file (ModelObjectItemVB_ASPNET.vstemplate). Invalid template element (TemplateID) value (Microsoft.Data.Entity.Design.VSTemplate.ModelObjectItemVB_ASPNET).

Finally I tried to re-install Visual Studio .NET 2008 SP1 and that fixed the problems with the test projects.

My setup was in this order:

1) VS.net 2008 Team Foundation Server
2) Vs.net 2008 SP1
3) Vs.net 2008 for Testers (Didn't work)
So I went back and Re-install SP1 and fixed all my vs.net issues.


Monday, September 28, 2009

Microsoft Enterprise Library Logging Vs Log4NET

I have doing some research about the available logging services out there and found this interesting article. I have used both logging services MS and Log4NET and great thing about both is that configuration is simple and straigth forward. The problem that I had most of the time with Microsoft Enterprise Library Logging Block is that I had to create a wrapper on top so that I can log messages for different categories and handle them little bit different + formatting without having to do a lot of configuration via the configuration files.

Here is the article I am referring.

http://weblogs.asp.net/lorenh/archive/2005/02/18/376191.aspx
Here is part two:
http://weblogs.asp.net/lorenh/archive/2005/03/20/395289.aspx

Whats interesting are his stats.

See below.


Avg Requests
per Sec
% Slower
Than baseline
No Logging (baseline) 470.54
Log4net empty appender 470.46 0%
EntLib empty sink 328.19 30%
Log4net to file 441.05 6%
EntLib to file 260.75 45%