<extensions>
<behaviorExtensions>
<add name="federatedServiceHostConfiguration" type="Microsoft.IdentityModel.Configuration.ConfigureServiceHostBehaviorExtensionElement, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
</extensions>
</pre></code>
Friday, 31 December 2010
WCF fully qualified type gotcha
Thursday, 21 October 2010
Ruby on Rails : uninitialized constant Test::Unit::TestSuite
/Users/gbarrs/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `rescue in load_missing_constant': uninitialized constant Test::Unit::TestSuite (NameError)
The fix in my case was to add the the following 'require' statement to the rb spec file causing the error.
require 'test/unit/testsuite'
I have no idea why this line was required when the tests had been working perfectly well before the upgrade without it. I suspect some dependency versioning issue but I can't be sure. Anyway, the fix worked for me and it may work for you.
Wednesday, 21 July 2010
HTTP Modules In IIS 7
The entry for adding a HTTP Module in web.config has changed in IIS7.
Prior to IIS 7 a web config entry might look like
<system.web>
<httpModules>
<add name="startupModule" type="My.SuperHttpModule, My" />
</httpModules>
</system.web>
When using IIS 7 the entry moves from system.web
to system.webServer
and its name changes from httpModules
to modules
. A web .config entry might now look like
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="startupModule" type="My.SuperHttpModule, My" />
</modules>
</system.webServer>
Friday, 4 June 2010
The Arrangement Of Tests
Tests should be arranged as follows:
- Unit tests provide close to 100% code coverage. They test independent units. They are written by programmers using the programming language of the system.
- Component tests cover ~50% of the system. They are written by business analysts and QA. They are written in a language like FitNesse, Selenium, Cucumber, etc. They test whole components, not individual units. They test primarily happy path cases and some highly visible unhappy path cases.
- Integration tests cover ~20% of the system. They tests small assemblies of components as opposed to the whole system. Also written in FitNesse/Selenium/Cucumber etc. Written by architects.
- System tests cover ~10% of the system. They test the whole system integrated together. Again they are written in FitNesse/Selenium/Cucumber etc. Written by architects.
- Exploratory manual tests. (See James Bach) These tests are manual but not scripted. They employ human ingenuity and creativity.
Thursday, 25 February 2010
Lessons learned from NHProf
I went to another Skillsmatter event last night where Ayende was taking about some of the lessons learned from building NHProf. The points that stuck in my mind were:
* Every build goes straight to release
* Sometimes Not Invented Here is fine.
This led me to think about some other things:
* Think about the application you are building. If it's not an enterprise application the do you really need to apply enterprise patterns. I'm not saying "don't". I'm just saying think about what is appropriate for your situation.
* Ayende built his own build server. Is it appropriate for you to do the same? It depends :-) The reason that many people use things like Cruise Control, Team City etc is because they are well known tools. In companies where employees come and go the use of these standard tools means that new employees already know how these things work and can concentrate on learning the business stuff rather than the supporting infrastructure.
As an aside, Skillsmatter are doing a special rate of £75 until Sunday 28th Feb for their 3 day tutorials event. I attended this last year and I thought it provided good value for money. See their site for details.
Thursday, 30 July 2009
Report Viewer Fun And Games
1)An object data source may not appear in the Website Data Sources window when you try to set the object data source for a SQL Server 2005 Reporting Services report in Visual Studio 2005. I couldn't understand why the buttons in the Website Data Sources window were greyed out. It turns out to be a known bug and the hot-fix for it is at http://support.microsoft.com/kb/939768
2) The 'XXX' parameter is missing a value : There are loads of posts for this and none of the posts I read supplied the resolution that fixed my particular problem. I was trying to set the parameter of a local report in the page load handler. When I views the page I kept getting the error message. When I tried to set a breakpoint, the code was not being hit, which lead me to believe that something fundamental was happening way earlier in the process. I reasoned that there was a null check being carried out and failing the code before my code to set the parameter was being called. I wondered if there was any way to allow nulls, and there was (is).
In the Report Parameters dialogue box there is a Check box labelled Allow null value. Selecting this solved my problem.
Tuesday, 19 May 2009
ASP.NET Unit Testing and TypeMock
Unit Testing ASP.NET? ASP.NET unit testing has never been this easy.
Typemock is launching a new product for ASP.NET developers – the ASP.NET Bundle - and for the launch will be giving out FREE licenses to bloggers and their readers.
The ASP.NET Bundle is the ultimate ASP.NET unit testing solution, and offers both Typemock Isolator, a unit test tool and Ivonna, the Isolator add-on for ASP.NET unit testing, for a bargain price.
Typemock Isolator is a leading .NET unit testing tool (C# and VB.NET) for many ‘hard to test’ technologies such as SharePoint, ASP.NET, MVC, WCF, WPF, Silverlight and more. Note that for unit testing Silverlight there is an open source Isolator add-on called SilverUnit.
The first 60 bloggers who will blog this text in their blog and tell us about it, will get a Free Isolator ASP.NET Bundle license (Typemock Isolator + Ivonna). If you post this in an ASP.NET dedicated blog, you'll get a license automatically (even if more than 60 submit) during the first week of this announcement.
Also 8 bloggers will get an additional 2 licenses (each) to give away to their readers / friends.
Go ahead, click the following link for more information on how to get your free license.