Tag Archives: .NET

Could not find a concrete type mapped to MappingAdded

In a handler I tried to publish an event. But the exception Could not find a concrete type mapped to MappingAdded is thrown.
The problem here is that FakeDbSet uses an older version of EntityFramework. Make sure all project reference the same EntityFramework version or remove your unneeded DbContext. Continue reading

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

Performance optimization with VS2012 profiler

Many systems are not optimized or sub-optimized by tweaking the wrong features. This post describes the use of the Visual Studio 2012 profiler to get insight in what to optimize and monitor the result of these optimizations. For this post … Continue reading

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

AmbiguousMatchException on mock creation

See simple code below of ClassToTest with two public constructors with one parameter. My favorite mocking framework (Rhino Mocks) is unable to determine which constructor to use for mocking. The CreatePartialMock method throws an AmbiguousMatchException. The workaround for this is … Continue reading

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

ILMerge alternative with embedded resources for class library

In my previous post I pointed out how to implement the Jeffrey Richter alternative to ILmerge on WPF applications. Now I want to show you how to do this with class libraries using module initializers tool from Einar Egilsson. Again … Continue reading

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

DataContract weird characters and Mono

My solution will run on dotNET and Mono in a variety of mixes. Connecting the pieces of the Service Oriented Architecture design using WCF. Testing some setups showed me another difference between dotNET and Mono. The returntype of an operation … Continue reading

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