Giter VIP home page Giter VIP logo

Comments (4)

tillig avatar tillig commented on July 25, 2024 3

Sorry it's taken so long to get back to you. I don't generally work on Azure apps so I had to set up an environment. I think I figured out the issue while I was working through the demo mobile services app.

Try using the Autofac.WebApi2 package instead of Autofac.WebApi. There were some breaking changes when MS revised Web API so we had to issue a corresponding package, the latest version of which (right now) is 3.4.0. I was able to successfully register the HttpRequestMessage in the demo app without issue using that package.

I'm going to close this since I'm pretty sure that's the answer. If it is still not working, let me know and maybe post a repro so I can see it in action and we can re-open.

from autofac.webapi.

tillig avatar tillig commented on July 25, 2024

Three questions:

  1. What framework are you targeting? .NET 4.5? DNX? .NET 4.6?
  2. I see the Autofac.Integration.WebApi assembly version number is 3.0.0.0 in the error. 3.1.0.0 came out in July 2013. Have you tried updating? (Not promising that will fix it, just curious if running the latest bits will help.)
  3. What other packages do you have installed? Can we see your packages.config?

from autofac.webapi.

LoulG avatar LoulG commented on July 25, 2024

Thanks for your reply.

  1. .NET framework 4.5
  2. Actually the Autofac.Integration.WebApi is labeled 3.1.0 in packages.config, and it's the latest available in NuGet manager The solution is rather new, I created it 1 week ago.
    3.packages.config
    image
    image

from autofac.webapi.

LoulG avatar LoulG commented on July 25, 2024

In my project, in the references, i just realized that the version of Autofac.Integration.WebApi in the properties panel is 3.0.0.0.
In the nuget package that was installed, in the lib folder, there is only one folder "net40". Is it normal ?

from autofac.webapi.

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.