Category Archives: Development

Dotnet development

No Default Instance defined solved by doing less

StructureMap threw an exception after some refactoring StructureMap Exception Code: 202 No Default Instance defined for PluginFamily IDoSomething Solved by removing duplicates from assembly scan: Turned out the IDoSomething was mapped to 2 implementations (of the same type) and StructureMap … Continue reading

Posted in Development | Tagged | Leave a comment

Strange characters after reading and writing a textfile

This week I helped out my Business Intelligence colleagues again. After tackling another problem with a regular expression, the end result contained strange characters. In the output below there is a question mark icon where the Pound (£) sign used … Continue reading

Posted in Development | Tagged , | Leave a comment

LINQ to Entities does not recognize the method

After my unit tests showed all green, there was still a bug in my code. System.NotSupportedException: LINQ to Entities does not recognize the method ‘System.Collections.Generic.IList`1[iCal.ISchedulerEvent] ProcessItem(iCal.ISchedulerEvent)’ method, and this method cannot be translated into a store expression. Solution is to … Continue reading

Posted in Development | Tagged , , | Leave a comment

Reproduce unit test failures from Hosted Build Controller

Our builds succeed with warnings. After investigation of the output we noticed failing unit tests. But local they run fine. Here’s what we did to troubleshoot and fix the issue. First we downloaded the build output from the drop location. … Continue reading

Posted in Development | Tagged , , , , | 1 Comment

Integration Test with Entity Framework Codefirst

Our database is developed using Entity Framework Codefirst. Everything in code. Enabled migrations to update existing environments as we roll out. The code passed all the unittests, but it didn’t feel right. Time for an integration test. This brought me … Continue reading

Posted in Development | Tagged , , , , , , | Leave a comment