AutoMapper 10.0 failing with message "Instance property 'Current' is not defined for type 'System.Collections.IDictionaryEnumerator'" - asp.net-core

I'm using AutoMapper in a project, and it was using version 9.0.0 along with version 7.0.0 of AutoMapper.Extensions.Microsoft.DependencyInjection, and everything was working.
I have a call to GetService on my IServiceProvider to resolve a service, and after upgrading to version 10.0.0 (and version 8.0.1 of the DI project), the call is failing with the following message:
'Instance property 'Current' is not defined for type 'System.Collections.IDictionaryEnumerator'
I tried to look into the code to see if I can find out why it's happening, but I wasn't successful.
Although I did find that this line in the source code is failing for me
Any help is greatly appreciated.
Thank you

Related

I just cloned an official karate project and get an error message about the missing "karate parser", which package am i missing?

I just cloned https://github.com/intuit/karate.git project and getting error message about missing "karate parser" package.
I tried to pull latest version of the katare which is 0.9.5 but still getting errors.
what am i missing?
here is the screenshot of error messages.
That code depends on generated code, so you have to do a Maven compile.
Why don't you follow the developer guide: https://github.com/intuit/karate/wiki/Developer-Guide

Icinga2 object ApiUser is unknown

I need help understanding an error why I'm seeing an error.
The feature api is already enabled with the correct ApiListener object, and Api logs are being updated in /var/lib/icinga2/api/log/current .
But I'm getting this error when I restart icinga2:
Error: Error while evaluating expression: The type 'ApiUser' is unknown: in /etc/icinga2/conf.d/api-users.conf: 1:0-1:20
I'm running version r2.3.10-1 of Icinga2 on Ubuntu.
Can someone explain what the problem is?
You are probably mixing the current snapshot packages with the released stable versions. The 'ApiUser' object is part of the upcoming Icinga 2 v2.4 release and only available in git master (and therefore snapshot packages as well as docs). The stable 2.3.x tree does not have that kind of configuration object type and therefore bails out with an error.
Remove that file or its content, you don't need it for 2.3.x.

Field not found: 'Nancy.Bootstrapper.NancyBootstrapperLocator.Bootstrapper'

i recently have been using Nancy fx and i'm in love with it, but when i try to make a structuremap ioc like the documentation page suggested i get the error
Field not found: 'Nancy.Bootstrapper.NancyBootstrapperLocator.Bootstrapper'.
i have override the getApplicationContainer function like shown in the file
https://github.com/CarlosBolanos/apadrina/blob/master/Application/Bootstrapper.cs
but still get the same error, i look on the code on the rnancy repository
https://github.com/NancyFx/Nancy.Bootstrappers.StructureMap/blob/master/src/Nancy.Bootstrappers.StructureMap/StructureMapNancyBootstrapper.cs
and i cant see the bootstrapper property
does any1 else have this error too i've been trying to set this up for hours,
if i remove the nancystructuremap in nugget the error goes away.
or do i need to set something else on the bootstrap class.
I ran into this scenario after installing Nancy.Bootstrappers.Ninject from Nuget. My Nancy project was created using the Nancy Visual Studio templates, and were referencing Nancy 0.21.1.
What I found was installing the bootstrapper package caused the base Nancy package to get upgraded from 0.21.1 to 0.23.2. This is fine, except that the Nancy.Hosting.Aspnet and the Razor engine packages were NOT upgraded from 0.21.1.
To fix the error, I had to update all of the Nancy-related packages I was using to match the 0.23.2 package.

Getting PInvokeStackImbalance when using webdriver 2.5.1

Im getting a PInvokeStackImbalance error when running debug in VS2010 using selenium webdriver 2.5.1 dlls.
If i do exactly the same but switch the dlls to the old 2.4 version there's no problems
Am i missing something??
Error message:
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'WebDriver!OpenQA.Selenium.IE.InternetExplorerDriverServer+StartServerFunction::Invoke' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Calling code:
_driver = new InternetExplorerDriver();
Thx for the help.
This is a known issue. It's already been fixed in the trunk of the project. If you are able to build from source, you can pick up the fix now. If you are unable to do so, the fix should be available in the next binary release.

Team Build sends error when trying to compile a Structuremap method

I'm getting a strange error when trying to compile a solution that is using StructureMap on Team Build.
When I try to compile the solution locally on Visual Studio it works fine, but when trying to queue a new build in Team Build I get the following error:
Overload resolution failed because no accessible 'Use' can be called with these arguments:
The line of code that gets this error is the second one:
ForSingletonOf(Of ISessionFactory)().Use(NHibernateSessionFactory.SessionFactory)
Me.For(Of ISession)().lifecycleIs(New HybridLifecycle()).Use(Function(x) x.GetInstance(Of ISessionFactory)().OpenSession())
It's a standard registration for the NHibernate session, so I don't really get why this error pops up.
Thanks in advance for the clues.
Make sure you have the correct version of NHibernate on the build server, and that your hint paths are all appropriately set in your project file. We haven't had this specific issue (as we're not using NHibernate), but we've had weird issues like that being related to version mismatches of "infrastructure" DLLs between local and build.