After installing the Microsoft.Azure.Cosmos package, I am unable to publish my cloud service (extended support) application due to a System.Reflection.ReflectionTypeLoadException
The project builds and runs locally (Using .Net Framework 4.8.1), but when publishing via Visual Studio 2022 (v17.9.4), it looks to get stuck in a loop giving the following error:
Status: RoleStateAbortedFailed to load role entrypoint. System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Updating via a Package in Azure also looks to be stuck in a loop trying to update, but never manages to.
I can publish this project before installing the cosmos package, but as soon as I install it, I'm receiving this error.
When I install the Microsoft.Azure.Cosmos package, it does also install the below packes too:
Has anybody had experience with this and is able to help? I suspect that it may be due to some kind of package conflict or referencing error, but I don't know what to look for.Any help is appreciated.