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

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    There was a discussion about this here #658@13be7083-69b1-4201-b5ce-52032544f208.

    It seems like it is not possible to use DBGeography with effort at the moment.

    Thanks.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)