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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:22:12+00:00 2026-06-02T09:22:12+00:00

I´m using LINQ to SQL classes from a database. When i try to create

  • 0

I´m using LINQ to SQL classes from a database. When i try to create a new instance it crashes:

DataLayerDataContext dataLayerDataContext = new DataLayerDataContext();

Stack Trace:

[HttpException (0x80004005): Could not load type 'DataLayerDataContext'.]
System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +8941051
System.Web.UI.WebControls.LinqDataSourceView.get_ContextType() +107

What could be the problem?

  • 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-02T09:22:14+00:00Added an answer on June 2, 2026 at 9:22 am

    If you are keeping your DataContext separate from your working project, then you need to add the connection strings to the database from the DataContext project to the working project’s config file as well for it to work.

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

Sidebar

Related Questions

I'm using LINQ to SQL classes in a project where the database design is
In one of our project we're using Linq-to-SQL to get data from our database.
I'm using Linq to SQL classes in my WCF. Those classes are returned from
Using ASP.NET Dynamic Data with a LINQ to SQL DataContext from the Northwind Database...
When I generate entity classes using LINQ to SQL I get what I want
I'm using LINQ to SQL and C#. I have two LINQ classes: User and
When designing LINQ classes using the LINQ to SQL designer I've sometimes needed to
How to select all columns from tables in join using linq Sql: select CTRL_RUN_JOB.*,
i have my auto-generated linq to sql classes, and i extend this class using
I recently started using LINQ to SQL in my database later for a C#

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.