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

  • Home
  • SEARCH
  • 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 3392484
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:55:35+00:00 2026-05-18T03:55:35+00:00

I have set up an Unity 2.0.414.0 container using app config. My solution structure

  • 0

I have set up an Unity 2.0.414.0 container using app config.
My solution structure looks like this:

Project A: dependency factory using Unity with unity xml config file.
Project B: Several types that are implementations of interfaces used in Unity config. These types reference Microsoft.Sharepoint.dll.
Project C: Other implementation types for Unity. No reference to Sharepoint dlls.

During the unit test execution in Visual Studio 2010 I have problems.
When I try to load my Unity configuration for any of Project B types it fails to load and causes the whole container to fail it’s configuration.
After several attempts to solve the problem setting and checking the references of project B I noticed that Unity works fine if all my assemblies are installed in GAC.
If I remove them from GAC the loading of Unity config fails.

If I try and call the Unity Resolve method from a simple Windows application Unity loads everything fine regardless of whether all my assemblies are in GAC or not.

So what settings of assembly resolver am I missing in my Visual Studio Test configuration so Unity works without need of GAC deployment?

  • 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-18T03:55:36+00:00Added an answer on May 18, 2026 at 3:55 am

    I have found my problem.
    I was missing several output files in the Out folder of the Visual Studio test.
    All I had to do was to add a new deployment folder in the Test settings.
    I went to local.testSettings, then selected Deployment and then added my bin folder as deployment item.
    Now Visual Studio copies all files from the Bin to the Out folder and everything works like charm.
    Hope it will save some time to someone in the same situation like mine 🙂

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

Sidebar

Related Questions

I have problem when asking for default ILogger from Unity container. I have this
Using Unity in an ASP.Net MVC 2 app I have various dependencies on Controllers
I'm using the Unity dependency injection framework. I have two classes, that each take
I have a question concerning how the Unity container I have set up is
I have a httpHandler and using Unity 2 I would like to inject a
I have set up a version control system using TortoiseSVN at my home to
I have setup unity in my project and it is working for objects that
In my project file, I have the following entry: <Reference Include=Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
I have been using Unity for quite a while but I have always used
I have the following code: Unity Container: Settings settings = CreateSettings(); container.RegisterInstance(settings) .RegisterType<MyHttpHandler>(new InjectionProperty[]

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.