[CSHARP-1572] Assembly Binding from 1.9.2.235 to 2.2.3.3 Created: 17/Feb/16 Updated: 05/Apr/19 Resolved: 17/Feb/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | BSON |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Critical - P2 |
| Reporter: | Aleksander [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Major Change |
| Description |
|
Hey there. Assemblies build with 1.9.X wont work with 2.2.X redirection (looks like the old one is strongly signed and new its not). The error is usual: Our web.config binding: Any helper appreciated. |
| Comments |
| Comment by Craig Wilson [ 17/Feb/16 ] |
|
You can try, but I'm confident that dropping these libraries in will not work. |
| Comment by Aleksander [X] [ 17/Feb/16 ] |
|
I see. |
| Comment by Craig Wilson [ 17/Feb/16 ] |
|
So, are you adding these assemblies to the GAC? Otherwise, you are just replacing the libraries in the folder. This is a major upgrade. We mostly kept compile-time compatibility with the old API, but I think there is about a 0 percent chance that dropping in a new dll will work with an application that wasn't compiled with the new version. As I'm not familiar with what you are doing or how your product is distributed, I can't suggest anything that might make sense other than to rebuild and redistribute your "assemblies built with 1.9.X". |
| Comment by Aleksander [X] [ 17/Feb/16 ] |
|
Ouch I have already distributed assemblies built with 1.9.X and now we distribute DLL's with new version that finish up in same web apps. Thanks again. |
| Comment by Craig Wilson [ 17/Feb/16 ] |
|
Hi Aleksander, We do not sign the 2.x series of the driver. I suggest you look at this to strong name the assemblies. In addition, I'll be surprised if this works. The functionality that used to be present in MongoDB.Driver is now located in MongoDB.Driver.Legacy. I'd suggest you not do any binding redirects and recompile any existing libraries with the new binaries. Craig |