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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:12:00+00:00 2026-05-25T20:12:00+00:00

As an example of a build time assembly load issue, consider the following class

  • 0

As an example of a build time assembly load issue, consider the following class library code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

namespace ClassLibrary1
{
    public class Class1
    {
        SqlDatabase database;
    }
}

And the following class code in a wpf user control library:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassLibrary1;

namespace WpfControlLibrary1
{
    class Class1
    {
    }
}

The WpfControlLibrary1 has a project reference to ClassLibrary1, but using ClassLibrary1; reference fails. A different project type can load ClassLibrary1 just fine, and if the Enterprise Library 5.0 SqlDatabase declaration is commented out, the wpf library can load ClassLibrary1.

Any ideas on what this issue is or how to track it down?

Thanks!

  • 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-25T20:12:01+00:00Added an answer on May 25, 2026 at 8:12 pm

    One possible cause is that WpfControlLibrary1 is targeting .NET Client Profile, but one of the other libraries (e.g. Enterprise Library) is targeting the full profile. You can check the “Target framework” setting in the project properties dialog, in the “Application” tab.

    You can see more details about the .NET Client Profile at http://msdn.microsoft.com/en-us/library/cc656912.aspx, or about changing the target at http://msdn.microsoft.com/en-us/library/bb398202.aspx.

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

Sidebar

Related Questions

I want to use the Html Helper class to build, for example, an Html.ActionLink
I have a problem. I wrote example code and I want to build it
I've put off using generated code as part of the build process for fear
What is the best python framework to create distributed applications? For example to build
My 10.5.3 install on a MacBook doesn't seem to want to build an example
I'm trying to build the qtestlib/tutorial1 example , but the testqstring.moc file isn't being
For example, let's say I have a Maven build file that has dependencies located
How do I build an escape sequence string in hexadecimal notation. Example: string s
I need to build a sitemap for my website. The url will be www.example.com/mysitemap.html.
How would you manually trigger additional team builds from a team build? For example,

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.