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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:39:42+00:00 2026-05-25T17:39:42+00:00

Hello I have an ASP web application runs on C# as its backend that

  • 0

Hello I have an ASP web application runs on C# as its backend that I’m trying to get running but the webpage (ran locally on my box) gives me the error message. Now the namespace the webapp is trying to reference is “using LAD.CDD.NSJ;” which are located in the App_Code folder.

The name of the files are Common.cs, Email.cs, Data.cs, and User.cs.

They all have a namespace call LAD.CDD.NSJ within the code. The previous programmers didn’t make those files into a dll and just kept it as a .cs file. I’m trying to use these files for another project but keep getting that error message.

  • 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-25T17:39:42+00:00Added an answer on May 25, 2026 at 5:39 pm

    The App_Code folder is a special folder in ASP.NET. ASP.NET will compile the types App_Code into an assembly which is actually separate from your web application assembly. This means, when you try and use those types from your backend code (e.g. an MVC controller), it is unable to resolve the type because those types will have a Build Action set to Content. With that build action, the file will not be included in the compilation of your main application.

    What I would recommend doing, is ditch using App_Code because simply changing the build action to Compile won’t stop ASP.NET dynamically compiling an App_Code assembly, so you end up with ambiguous types (i.e., the runtime doesn’t know whether to use the type compiled into your main application assembly, or the dynamic App_Code assembly.

    Move those files to another location, and set the Build Action (in Properties) to Compile.

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

Sidebar

Related Questions

I have a ASP.NET Web Forms application that internally makes many SOAP and REST
Hello we have an SQL server application running over a low bandwith connection. We
I have a Hello World c# ASP .NET web service which is automatically generated
Hello I have a page in an ASP.NET (website) project that writes a file
I have a callback function within an ASP.NET Web Forms application which I am
Hello i am currently developing a ASP.NET MVC 3 application that uses the new
I am trying to create a Hello world application in Silverlight 3.0, but when
I have an ASP.NET web application. It has a web service, with several web
I have an old .net 2005 web site that has some asp pages and
I have a ASP.NET program that works just fine but takes 10 seconds to

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.