Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8909325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:24:07+00:00 2026-06-15T03:24:07+00:00

I need to reference both Autofac.Integration.Mvc and Autofac.Integration.Web dll’s in my MVC3 project and

  • 0

I need to reference both Autofac.Integration.Mvc and Autofac.Integration.Web dll’s in my MVC3 project and am encountering the following naming conflict with the InstancePerHttpRequest() method:

This call is ambiguous between Autofac.Integration.Mvc and Autofac.Integration.Web

I need both dll’s to be referenced as my project is MVC3 but elements are integrating SQL SSRS reports which demand the use of ASPX pages because of the ReportViewer control is required. I need to resolve my my service classes to call functionality from my APSX code behind. Any ideas how I can resolve this naming conflict please or is this totally incompatible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:24:08+00:00Added an answer on June 15, 2026 at 3:24 am

    InstancePerHttpRequest is an extension method and as such it is declared as a normal static method in the classes Autofac.Integration.Web.RegistrationExtensions and Autofac.Integration.Mvc.RegistrationExtensions.

    The solution is to call the method explicitly:

    Autofac.Integration.Web.RegistrationExtensions
             .InstancePerHttpRequest(yourBuilder.Register(c => ...)
    

    Or to include just one of these two namespaces (its not the reference that makes the ambiguity):

    using Autofac.Integration.Web;
    using Autofac.Integration.Mvc;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to reference FSharp.Core to a Visual Web Developer Express project (C#), but
Say I have some 10 categories that I need to reference in a web
given the following $(#identifier div:first, #idetifier2).fadeOut(300,function() { // I need to reference just the
I need the reference system32/shell32.dll as I use some shell functions to read out
I have a need to reference two different versions of the Sharepoint API dll.
I need a reference counter for an object not allocated on the heap. I
I am building a common function library but the functions inside need to reference
I'm building a Windows Phone 7 app, and I need a reference to my
Somebody ask me this question today . What is the need of reference in
I am writing a resume script and I need the heading Reference to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.