SharePoint Web Application virtual directory folders and files significance

Whenever we create a new “Web Application” in SharePoint few things are created in background. What I mean to say that creation/provisioning of a web application leads to creation of a few things in background

  1. An IIS Site
  2. A content database
  3. A virtual directory

Today, I am going to focus on the “virtual directory” and it’s significance.
“Virtual Directory” is just a container of files. It’s just a logical way to organize your web-site and physical directories . Typically the virtual directory for SharePoint web application is created at the following location
e.g. C:InetpubwwwrootwssVirtualDirectories80
If you have a look at this directory it typically has the following files and folders. Let’s have a look at each of them and their significance

virtual directory
virtual directory
_app_bin The _app_bin folder was designed to hold application assemblies which were previously installed in _layouts/bin. Web Part assemblies are *not* supposed to be installed in this folder. Put your assemblies in GAC or the bin, but not the _app_bin.
_vti_pvt This folder is used by FrontPage Extensions/SharePoint Designer. It contains Legacy FrontPage Server Extensions files/folders. The reason for having these folders is that they provide the underlying infrastructure files for the many features SharePoint Designer provides.
Bin Contains compiled assemblies (.dll files) for controls, components, or other code that you want to reference in your application. Any classes represented by code in the Bin folder are automatically referenced in your application.
App_Browsers Contains browser definitions (.browser files) that ASP.NET uses to identify individual browsers and determine their capabilities.
App_GlobalResources Contains resources (.resx and .resources files) that are compiled into assemblies with global scope. Resources in the App_GlobalResources folder are strongly typed and can be accessed programmatically.
wpresources Contains configuration file for Web Parts
aspnet_client This directory contains JavaScript files that are used by the ASP.NET runtime for client-side validation functionality This directory is created automatically when ASP.NET is enabled on your site. This directory is not required for ASP.NET applications to run. It is only required if you are using client-side validation with ASP.NET server validation controls.
Global.asax The Global.asax file, also known as the ASP.NET application file, is an optional file that contains code for responding to application-level events raised by ASP.NET or by HttpModules.
Web.config The Web.config file is the primary configuration file having all the configuration details for the web application (IIS site)

3 thoughts on “SharePoint Web Application virtual directory folders and files significance”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.