Monday, 15 August 2011

c# - Native images generated against multiple versions of assembly System.Net.Http -



c# - Native images generated against multiple versions of assembly System.Net.Http -

i have windows phone silverlight 8.1 application using backgroundtask project wns , timer tasks. i`m getting next error on calling method backgroundtask project:

error: native images generated against multiple versions of assembly system.net.http.

does have thought can problem?

i found problem:

i have windows phone silverlight 8.1 main project (converted wp8 ibackgroundtask support) referenced dal project (wp silverlight 8.1). have background task project (wp8.1) referenced dal project (wp 8.1). both dal projects (linking classes) using system.http classes.

error occurs when main wp silverlight 8.1 project calls method of background task wp8.1 using features of dal wp8.1 project. @ moment environment loads dal wp8.1 dll reference different version of system.http library.

solution: moved functionality background task project dal project , not phone call methods of background task project in main wp silverlight 8.1 application.

c# .net windows-phone-8.1 background-task

No comments:

Post a Comment