Base solution for your next web application
Open Closed

Adding an entity with DbGeometry column breaks all tests #3427


User avatar
0
compassinformatics17 created

Hi,

I have extended ASP.NET Zero .NET Framework template with an entity with a DbGeometry field. It was all compilable and working when running the application. However, I noticed that all unit tests are broken with the following error:

Message: Castle.MicroKernel.ComponentActivator.ComponentActivatorException : ComponentActivator: could not instantiate GISWebTech.Recruit.EntityFramework.RecruitDbContext ---- System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. -------- System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.

See attachment for a full stack trace from one of the tests. It seems to be failing on instantiating DbContext. Any ideas how to resolve this? I checked the references and they seem to be fine.

Thanks, Pavel


1 Answer(s)