Giter Site home page Giter Site logo

Comments (7)

kdajani avatar kdajani commented on June 29, 2024

Anyone or any suggestions on how to fix this? How can I ensure DataReaderMapper gets loaded?

Thanks!

from automapper.data.

jbogard avatar jbogard commented on June 29, 2024

When you deploy the app, is AutoMapper.Net4.dll deployed as well?

from automapper.data.

kdajani avatar kdajani commented on June 29, 2024

I just created a deployment package and that dll is not in there. Only AutoMapper.dll. The project is targeting .NET Framework 4.5, Any CPU and Release mode.

When I look at the both dll's properties in the project they appear the same: Aliases: Global, Copy Local: True, Embed Enterop Types: False.

When I look at their path [ProjectPath]packages\AutoMapper.3.3.1\lib\net40\ Both dll's are in that folder.

from automapper.data.

jbogard avatar jbogard commented on June 29, 2024

You need to make sure the AutoMapper.Net4.dll is included in the deployment
package.

On Tue, Jun 2, 2015 at 9:26 AM, kdajani [email protected] wrote:

I just created a deployment package and that dll is not in there. Only
AutoMapper.dll. The project is targeting .NET Framework 4.5, Any CPU and
Release mode.

When I look at the both dll's properties in the project they appear the
same: Aliases: Global, Copy Local: True, Embed Enterop Types: False.

When I look at their path
[ProjectPath]packages\AutoMapper.3.3.1\lib\net40\ Both dll's are in that
folder.


Reply to this email directly or view it on GitHub
#11 (comment)
.

from automapper.data.

kdajani avatar kdajani commented on June 29, 2024

OK. I'm all about that. I don't have any project settings that would exclude that from happening. I installed AutoMapper using NuGet. Why would it not just include that dll automatically?

By the way, great tool! Thank you for it!

from automapper.data.

jbogard avatar jbogard commented on June 29, 2024

It doesn't because MSBuild doesn't recognize the DLL being used.

Try doing something stupid like "var type = typeof(DataReaderMapper)"
somewhere, that forces the DLL to be used and copied.

On Tue, Jun 2, 2015 at 9:32 AM, kdajani [email protected] wrote:

OK. I'm all about that. I don't have any project settings that would
exclude that from happening. I installed AutoMapper using NuGet. Why would
it not just include that dll automatically?

By the way, great tool! Thank you for it!


Reply to this email directly or view it on GitHub
#11 (comment)
.

from automapper.data.

kdajani avatar kdajani commented on June 29, 2024

Finally got it to work on the server followed this recommendation:

  1. Add the missing DLL to the project as a Linked File.
  2. On the file properties, Copy To Output Directory, select If Newer.

All works fine now. Thanks again!

from automapper.data.

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.