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

The Archive Base Latest Questions

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

Let me try to ask this question from a different angle. I noticed that

  • 0

Let me try to ask this question from a different angle.

I noticed that everytime an aspx page gets rendered in the browser using the ‘web site’ model, a random assembly gets created ‘on-the-fly’ in the Temporary ASP.NET files. Analyzing the assembly in Reflector shows that the class created for any given .aspx file is under the ‘ASP’ namespace.

So, starting with a empty ‘Temporary ASP.NET Files’ directory, I opened my ASP.NET ‘website’ in VS2008, and launched the default page. Immediately I observed that a random directory was generated inside that folder. Working my way down the path, I found 2 DLLs created: App_Code.1lywsqqz.dll, and App_Web_iohekame.dll. I assume that all the .aspx pages in the website get compiled into App_Web dll and everything in App_Code folder gets compiled into App_Code.dll.

So if my App_Code C#/VB.net files are under the ‘ASP’ namespace, and my App_Web files are created under the ‘ASP’ namespace, how come I still get an error ‘Could not load type ‘ASP.NothwindDataContext’?

Somebody said ‘you don’t need namespaces in the App_Code folder’, but I tried it without and still get ‘Could not load type ‘NorthwindDataContext”.

So what’s going on between the App_Code folder, the rest of the site, and namespaces?

EDIT: Here’s my LinqDataSource in my .aspx file:

<asp:LinqDataSource ID='LinqDataSource1' runat='server'      ContextTypeName='NothwindDataContext' EnableUpdate='True'      TableName='Categories'> </asp:LinqDataSource> 

Neither ‘NorthwindDataContext’, nor ‘ASP.NorthwindDataContext’ works.

  • 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-11T10:55:19+00:00Added an answer on May 11, 2026 at 10:55 am

    Types in App_Code C# source files, just like any C# file, will not be put in a specific namespace unless specifically declared by namespace Name {...} around it. So a class MyClass declared in App_Code will have the fully qualified type name MyClass. Just that.

    You can reference it in Web.config as: 'MyClass, App_Code'.

    Side note: When you are using a DBML in App_Code, the namespace of generated classes are defined in that file (look at the properties window when DBML file is open). If you specify a namespace in that file, naturally, your classes will be defined in that namespace. Note that this does not contradict with what I said above. The thing is, the LINQ data context generator processes the file and defines the classes in the specific namespace.

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

Sidebar

Related Questions

I am going to try to ask this question without supplying too much source
This is the second time I ask this question because in my first try
I'm no computer expert, so let me try to put this question a little
Let me try to explain what I need. I have a server that is
There's a lot of conflicting information about this topic. So let's try to agree
Let me try to explain this, I have a string like this: b.c And
That title is quite a mouthful. Let me try to be as clear as
I realize that this is probably a very basic question, but I have spent
Let's say I do something in Java like: RemoteResponse response = null; try {
Let's say I'm writing a PHP (>= 5.0) class that's meant to be a

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.