Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of the Assemblies node in Web.Config?

When creating a new ASP.NET AJAX Web Application in Visual Studio 2005, the default web.config contains the following section (inside the compilation node):

<assemblies>     <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </assemblies> 

Whether or not the assemblies node exists doesn't seem to affect the AJAX functionality. Update panels, etc work fine regardless of whether or not the reference to System.Web.Extensions is included in Web.Config.

What's the purpose of this section, and can it be safely removed?

like image 811
Mun Avatar asked Feb 10 '09 00:02

Mun


People also ask

What is the purpose of Web config file?

A web. config file is a Windows file that lets you customize the way your site or a specific directory on your site behaves. For example, if you place a web. config file in your root directory, it will affect your entire site (www.coolexample.com).

Where is the web config file used?

The Web. Config file is used to configure Oracle Web Application functionality. This file is typically installed in the c:\Inetput\wwwroot\WebApp directory.

What is Web config in C#?

A configuration file (web. config) is used to manage various settings that define a website. The settings are stored in XML files that are separate from your application code. In this way you can configure settings independently from your code. Generally a website contains a single Web.


1 Answers

It may or may not be safely removed. The Assemblies node is for configuration-based reference addition. It's used by ASP.NET websites that deploy uncompiled .cs code files to their website, rather than (as sensible people do) compiled assemblies.

If you are deploying code-behind files to your website rather than assemblies, then keep it in. If you are deploying assemblies, remove it.

like image 111
Randolpho Avatar answered Oct 02 '22 13:10

Randolpho