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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:55:06+00:00 2026-05-11T02:55:06+00:00

I have an ASP.NET page A that uses a data layer assembly DAL .

  • 0

I have an ASP.NET page A that uses a data layer assembly DAL. I reference the DAL assembly with a
<%@ Assembly Name='NGC.DAL' %> tag since there is no project to add the reference to. The assembly itself I copied to the pages’ bin folder.

The assembly DAL is a project that references System and System.Data.

Now when A calls a method in DAL, the compiler gives the error

BC30652: Reference required to assembly ‘System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac, Retargetable=Yes’ containing the type ‘System.Data.IDbConnection’. Add one to your project.

I tried referencing the assembly System.Data with a <%@Import Namespace='System.Data' %> tag and I tried copying it to the bin folder and referencing it with a
<%@ Assembly Name='System.Data' %> tag, both in A directly. Nothing worked.

Why would a project A that uses project B which uses project C require a reference to B and C rather than just B and why does the way above not work?

This MSDN thread covers the problem but shows no solution that works.

EDIT: As Robert Wagner suggested I added the reference to the web.config. Now I get another error message. BC30560: ‘CommandBehavior’ is ambiguous in the namespace ‘System.Data’. which is odd because the one in the web.config is the only one I reference inside the page.

Maybe it’s worth mentioning that the System.Data referenced and used in the DAL assembly is from the compact framework. But since it’s the only one I use, where does the ambiguity come from?

  • 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. 2026-05-11T02:55:06+00:00Added an answer on May 11, 2026 at 2:55 am

    Most likely you have inherited from a System.Data class in your DAL dll and are using that class in your website. It requires a reference to be able to resolve the references those classes otherwise the compiler would not know what the class contract is.

    You should not need to copy in System.Data as it is in the GAC.

    A better way would be to add the reference in your web.config file:

     <system.web>     <compilation debug='true'>       <assemblies>          <add assembly='System.Data, Version=2.0.0.0, Culture=neutral,               PublicKeyToken=B77A5C561934E089' />       </assemblies>     </compilation>   </system.web> 

    When you say ‘there is no project to add references to’ are you using Visual Studio? If so, why not use the Web Application or Web Site projects?

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

Sidebar

Ask A Question

Stats

  • Questions 108k
  • Answers 108k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can't do it - once you've overloaded the operator… May 11, 2026 at 9:12 pm
  • Editorial Team
    Editorial Team added an answer Some items (buttons, input boxes) are using the system visual… May 11, 2026 at 9:12 pm
  • Editorial Team
    Editorial Team added an answer Probably the easiest thing to do is to look over… May 11, 2026 at 9:12 pm

Related Questions

I have an ASP.NET page that uses a repeater nested within another repeater to
I have an application where it was requested that a friendly url be made
I have an ASP.NET application that uses Session.SessionID to prevent multiple users viewing the
I have an Oracle DB, and an ASP Page that has many ListBoxes and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.