Comments (7)
Anyone or any suggestions on how to fix this? How can I ensure DataReaderMapper gets loaded?
Thanks!
from automapper.data.
When you deploy the app, is AutoMapper.Net4.dll deployed as well?
from automapper.data.
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.
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.
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.
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.
Finally got it to work on the server followed this recommendation:
- Add the missing DLL to the project as a Linked File.
- On the file properties, Copy To Output Directory, select If Newer.
All works fine now. Thanks again!
from automapper.data.
Related Issues (20)
- AutoMapper v9.0 vs AutoMapper.Data v4.0 HOT 2
- Please provide PDBs HOT 1
- When_mapping_a_data_reader_to_a_dto_with_nullable_enum HOT 2
- Crash when using AddDataReaderMapping HOT 2
- .Map is not working with IDataReader HOT 1
- Mapping data field of DateTimeOffset HOT 3
- IDataReader mapper not applying Custom Type Converter
- [ASP.NET CORE] IDataRecord mapping does not map properties having same name as columns in DataReader HOT 4
- The AutoMapper.Data 4.1.0 is incompatible with AutoMapper 10.0.0. HOT 2
- Opcodes using a short-form index cannot address a local position over 255 HOT 3
- Cannot map an integer DataTable Column in a long Dto property HOT 1
- Not mapping records HOT 1
- AddDataReaderMapping not ignoring recursive class property HOT 1
- how to take DataAnnotations into account? HOT 1
- Error when running in Azure Function, Method not found: AddMemberConfiguration() HOT 1
- AutoMapper 12.0.0 support? HOT 1
- Readme incorrect for initialization HOT 1
- Define generic Type Converter HOT 3
- IDataReader/IDataRecord (snake case) mapped to .NET (Pascal case) via AddDataReaderProfile() not working HOT 2
- AutoMapper 13 Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automapper.data.