vendredi 8 janvier 2016

Jenkins needs to run in Full Trust mode, how to do it?

I use EntityFramework.BulkInsert library to perform very fast insert into my database.

The library try to access private fields of the framework via reflection (_connectionString of DBConnection). You can see the issue here : http://ift.tt/1OTEBi7.

It's working on my local machine, but not on my remote server.

Jenkins is the one responsible to run the code. And this is failing, because it's not running on a Full Trust environment. It seems that the application must be run in a Full Trust mode to be able to use reflection and access private fields.

And here I'm confuse, I don't know what to configure, and how to configure it.

Should I configure something on Jenkins? On my remote server? On my application?

I try to add Full Trust on my application, but that doesn't do much, private fields still can't be access.





Aucun commentaire:

Enregistrer un commentaire