Hello,
- I have an ASP.NET Core Web Application running on the .NET Framework (not running on .NET Core).
- I have a class library running on the full .NET Framework (not .NET Core). This library has a reference to a Nuget package for Azure's Document Db (full .NET Framework, not Document DB Core).
- My .NET Core Web Application references this full .NET Framework class library.
Everything compiles correctly and runs fine but then when my application that attempts to call out to the Document DB's library, I get an:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Azure.Documents.Client, Version=1.17.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'Microsoft.Azure.Documents.Client, Version=1.17.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at MyApp.DataAccess.Core.InsertObject(Object ObjectToInsert)
at MyApp.DataAccess.CancelationRequests.<InsertCancelationRequest>d__0.MoveNext()
If I change my library to a .NET Core library then it all works correctly but I need this library in the full .NET Framework.
Has anyone else had this issue or know how to resolve this?
Thanks