Giter VIP home page Giter VIP logo

Comments (3)

Architekt909 avatar Architekt909 commented on June 2, 2024

I can 100% repro this using a very tiny function app. The only thing in this project is Newtonsoft.JSON 11.0.2, Microsoft.NET.Sdk.Functions 1.0.24, and Microsoft.Azure.NotificationHubs 3.0.1. Call the function (make sure to use a valid connection string and path, I removed mine for security reasons) and you'll trip the exception with the error I posted above.

I don't know if this is because I'm using Functions runtime v1 or not, but I can't upgrade to v2 due to Microsoft.SqlServer.Management.AlwaysEncrypted.AzureKeyVaultProvider not being compatible yet (an issue raised that's been in progress for a very long time at this point).

TestNotifications.zip

from azure-notificationhubs-dotnet.

brannon avatar brannon commented on June 2, 2024

@Architekt909 thanks for reporting this. Azure Functions v1 does not support binding redirects, and so unfortunately .NET will not automatically load Newtonsoft.Json 11.0.2 instead of 10.0.3. You can read more about the issue in this bug: Azure/azure-functions-host#992

The assembly loading issue should be fixed in Azure Functions v2, but it sounds like you aren't able to use v2 yet.

At this time we don't have a solution for resolving the assembly loading issue with Newtonsoft.Json and Azure Functions v1.

from azure-notificationhubs-dotnet.

Architekt909 avatar Architekt909 commented on June 2, 2024

Is there any problem with me using an older version? 1.0.9 works for me, and I seem to be getting push messages on both Android and iOS.

from azure-notificationhubs-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.