Code Monkey home page Code Monkey logo

Comments (5)

SergeyKanzhelev avatar SergeyKanzhelev commented on May 18, 2024

NuGet will do it automatically when you have a reference to the other project that in turn using older version of Microsoft.ApplicationInsight assembly. Do you have specific example when it fails to do it?

from applicationinsights-dotnet.

pbolduc avatar pbolduc commented on May 18, 2024

I upgraded one of my web projects yesterday. When I deployed it got a could not load Application.Insights assembly. I was on version 1.x and upgraded to the latest 1.2. The web.config file did not get updated. Let me see if I can find the time later today to go back to the previous version and reproduce the steps.

from applicationinsights-dotnet.

SergeyKanzhelev avatar SergeyKanzhelev commented on May 18, 2024

Make sure you don't have "hidden" references to the older version of SDK. Here is an article explaining how bindingRedirect works

from applicationinsights-dotnet.

pbolduc avatar pbolduc commented on May 18, 2024

I believe the original packages were added using Visual Studio "Add Application Insights" right context menu item. However, since adding is a function of NuGet, not the package itself, I will close this issue.

from applicationinsights-dotnet.

SergeyKanzhelev avatar SergeyKanzhelev commented on May 18, 2024

Thanks @pbolduc. You should definitely let us know even if it is NuGet error.

BTW, "Add Application Insights" would just invoke NuGet installation, register new component and put instrumentation key into ApplicationInsights.config. So from bindingRedirect perspective it is working exactly the same way as if you just call Install-Package Microsoft.ApplicationInsights.Web from package manager console.

from applicationinsights-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.