Giter Site home page Giter Site logo

Comments (11)

penfold avatar penfold commented on June 30, 2024

When I comment out AM.Coll, the SO does not occur.

services.AddAutoMapper(configurationExpression =>
{
//configurationExpression.AddCollectionMappers();
},
typeof(MapperFactoryExtensions).Assembly);

from automapper.collection.

penfold avatar penfold commented on June 30, 2024

Upgrading from AM 9.0.0 to 10.1.1 and AM.Coll 6.0.0 to 7.0.0. (And .net core 3.1 to .net 5)

from automapper.collection.

penfold avatar penfold commented on June 30, 2024

Is it possible have some exception handling in that stack to get feedback on which types are causing the issue?

from automapper.collection.

penfold avatar penfold commented on June 30, 2024

I've grabbed all of the source code to help debug. It seems to be stumbling (in a recursive way) when calling EquivalentExpressionAddRemoveCollectionMapper.MapExpression(...) for

.ForMember(d => d.Errors, o => o.MapFrom((s, d) => s.Errors?.Split(';')));

This is string[] to IList<string> .

from automapper.collection.

penfold avatar penfold commented on June 30, 2024

I've tested my .net core 3.1 branch with the latest versions of AM and AM.Coll. This looks to be working correctly.

I then updated AutoMapper.Extensions.Microsoft.DependencyInjection and the SO is now seen.

from automapper.collection.

TylerCarlson1 avatar TylerCarlson1 commented on June 30, 2024

Seems very similar to #151. Preserve References is not getting used and goes into SO loop.

You can try updating to 7.0.1-ci-00105 from nuget feed AM-prerelease and see if that fixes your problem

from automapper.collection.

gokhanabatay avatar gokhanabatay commented on June 30, 2024

Same issue with .net 5.0 AutoMapper 10.1.1, AutoMapper.Collection 7.0.0, AutoMapper.Extensions.Microsoft.DependencyInjection 8.1.0

from automapper.collection.

esabah avatar esabah commented on June 30, 2024

I am getting error with
.net 5.0 , AutoMapper 10.1.1, AutoMapper.Collection 7.0.0, AutoMapper.Extensions.Microsoft.DependencyInjection 8.1.0.

I tried AutoMapperCollection 7.0.1-ci-00105 and worked without errors.
When do you plan to release this fix? Thanks.

from automapper.collection.

TylerCarlson1 avatar TylerCarlson1 commented on June 30, 2024

When I fix the deployment pipeline to nuget which has changed to GitHub Actions from AppVoyer

from automapper.collection.

TylerCarlson1 avatar TylerCarlson1 commented on June 30, 2024

Got it pushed fix is in 7.0.1

from automapper.collection.

rcdailey avatar rcdailey commented on June 30, 2024

I'd just like to point out that I'm getting this exact same issue. I'm running AutoMapper v12.0.1 and AutoMapper.Collection v9.0.0.

from automapper.collection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.