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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:56:32+00:00 2026-05-12T14:56:32+00:00

I have a assembly made in another project (projA). Now I want to import

  • 0

I have a assembly made in another project (projA). Now I want to import this dll in another project (projB). How can I achieve this? This is what I’ve tried (in projB).

1 Put dll in same dir as my project. (the bin dir)

2 In web.config:

<assemblies>
  <add assembly="projA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>

This is the error I get:

Could not load file or assembly ‘projA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

EDIT:

The point is that eventually the assembly reference must me added dynamically

EDIT 2:

The name of the assembly (and namespace) are stored in the database. The physical assembly (dll) is added (by installation) in projB. Now the code in projB must read the assembly name from the database and then add a reference to the dll which is added by installation.

  • 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-12T14:56:32+00:00Added an answer on May 12, 2026 at 2:56 pm

    Are all of projA’s dependencies in projB? Usually I’d just add a reference from one project to another if they are in the same solution.

    Edit:

    If you want to add an assembly dynamically then maybe a service reference maybe something to consider. By dumping in projA’s DLL into the bin that doesn’t really give all the DLLs that it may require, thus there are ways to tie things together so that objects can be understood across systems, like web services using XML to give a common example.

    My question back about adding an assembly dynamically is where would you get it from and can that part be automated to be part of projB as that is really the general solution to this kind of problem.

    Edit 2:

    How could you get all of projA’s dependencies? Is it possible to get it so that it doesn’t depend on a bunch of other DLLs that may or may not be on the system that this is to run. That is what the error is telling you, that there exists some assembly projC that is also required. Note that this adding of assemblies can continue for a long time if there are many levels of dependencies used.

    Summarizing the answer: What would you need to reference in order to load projA into some new project? That’s your problem which without knowing what the dependencies look like is rather hard to answer directly.

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

Sidebar

Related Questions

This is the first dll I have made. It's purpose is to grab territory
Say I have assembly A. It was modified with Mono.Cecil a little bit. Now
I have an assembly that contains an embedded resource. However, when this assembly is
I have an assembly containing a number of classes. This is a class library
I have a .NET application that uses an assembly (.dll) that defines some method:
I have made a C# COM object by following the tutorial. http://www.codeproject.com/Articles/18939/C-Com Now I
I have a class/library project I made in Visual Studio, a Spreadsheet in the
I have a website project. It has assembly references to external DLLs that we
I am still getting my head around x86 assembly, and so I have made
There is a WCF service in my project. It's referencing another assembly with service

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.