ASP.Net - App_Data & App_Code folders?

aryaxt picture aryaxt · Sep 20, 2011 · Viewed 53.5k times · Source

What is the point of having App_code & App_data folders?

Why doesn't my objectDataSource detect classes unless files are in App_Code?

Please provide as much detail as you can, I'm new to ASP.Net

Answer

tsimbalar picture tsimbalar · Sep 20, 2011

To sum it up :

  • IIS will NEVER serve any file located in those folders (the same way it will not ever serve the Web.config file)
  • files in the App_Code folder will automatically be recompiled when a change occurs in the code.