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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:52:58+00:00 2026-06-05T09:52:58+00:00

I have three projects in my solution: Domain layer GUI MVC application Now my

  • 0

I have three projects in my solution:

  1. Domain layer
  2. GUI
  3. MVC application

Now my Domain layer i have created a *.DBML (SQL to LINQ), and i want to reuse this class in my MVC application. The DBML Class has the namespace CatalogDb and the Domain layer has the namespace Catalog. This is not really a problem at the moment. In my view i have written following on the top:

@model CatalogDb.BookMedia

The autocompleter can also see this namespace and class without problems.

But when i run the project the view gives an error:

Compiler Error Message: CS0246: The type or namespace name 'CatalogDb' could not be found (are you missing a using directive or an assembly?).

Do i need to add the CatalogDb namespace manually in the MVC application project? I dont understand why i cant point it to the namespace which it suggests.

enter image description here
enter image description here

EDIT:

I have Catalog in my references in MVC application.

  • 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-06-05T09:53:01+00:00Added an answer on June 5, 2026 at 9:53 am

    After some hours of struggle i ended up adding af seperate *.dbml file to my MVC application and it solved the problems. I assume the namespaces were the primary cause of problem.

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

Sidebar

Related Questions

I have three projects in my C# 4 solution. MooDB: Has my domain objects
I have an MVC solution setup like this, with three 'projects'. Web (MVC Project,
I have a simple MVC solution with 2 projects, domain and web. There is
I am creating solution and inside I have three projects: A WCF Service Library
I have an ASP.NET MVC 3 Solution(C#) Containing multiple projects. There is a services
Problem domain We have Projects and Milestones Once created, a Milestone has a Project
To facilitate control reuse we created a solution with three separate projects: a control
I have two projects in my solution, an MVC 3 (UI) project and a
I have a Visual Studio solution with two projects: MyApp.MvcUI and MyApp.Domain (class library).
I have an VS2008 solution with 2 projects, WebUI and Domain; WebUI references domain

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.