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 7641969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:04:10+00:00 2026-05-31T09:04:10+00:00

I have a project called InversionOfControl . That project has a class called IOC

  • 0

I have a project called InversionOfControl. That project has a class called IOC. It looks like this:

/// <summary>
/// This class is used to expose the unity container to the application.
/// </summary>
public class IOC
{
    /// <summary>
    /// The actual unity container for the app.
    /// </summary>
    public static IUnityContainer Container { get; set; }
}

All my projects that need to resolve unity injections have a reference to this class. Lately I have started getting this error:

Value cannot be null.
Parameter name: container

on normal resolves:

ITransmitModel transmitModel = IOC.Container.Resolve<ITransmitModel>();

When I try to inspect IOC.Container, the value in the watch window is:

The type ‘InversionOfControl.IOC’ exists in both ‘InversionOfControl.dll’ and ‘InversionOfControl.dll’

I have looked in my output folder and there is only one InversionOfControl.dll file. (I even cleaned my solution and double checked the folder was empty. I then rebuilt and checked again that there is only one.)

Why does it think there are two dlls called InversionOfControl.dll?

  • 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-05-31T09:04:12+00:00Added an answer on May 31, 2026 at 9:04 am

    A way to check what module is loaded at run-time is “Debug->Windows->Modules” and check out where the DLL in question is loaded from. Make sure you are not loading 2 assemblies with different versions.

    As a next step I would do search for all files with this name to see if there are suspicious copies (“cd /d c:\ & dir /s /b InversionOfControl.dll”).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a model class called Project, but instead of this: class
This is homework, just so that's mentioned. I have project called AdventCalendar, which is
I have a project called Data which is a data layer. In this project,
say that i have a project which lies in a folder called 'bin', and
I have a WinForm project that contains a form called MainUI. You can see
I have a solution called StoreExample It has one web project - StoreExample.Web It
I have a project called WebResources where I have all the JS files that
We have a web project that contain its business methods in a class library
I have a Maven project called Utils that i'm working on. I also have
I have created a project called class , and an application called students when

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.