Microsoft Office Tutorials and References
In Depth Information
“BUT WHAT ABOUT THE STUFF IN THE PROGRAM FILES FOLDER?”
Earlier in the chapter, to see what was added during the prerequisites install, I identified that .NET 3.5,
Chart Controls, and the like were located in one of the Program Files folders, not in the SharePoint root.
Those files are used by the free-standing products SharePoint uses. The files in the SharePoint root are
ones that SharePoint alone uses specifically day to day.
The physical path to the SharePoint root is %Program Files%\Common Files\Microsoft
Shared\Web Server Extensions\14. As you can see in Figure 2.36, there are a number of
folders located within the root, each with a particular use. This is where many of the virtual
directories listed in IIS for SharePoint are physically located. You’ll see proof of this in a moment. This
structure is important enough to make a point of backing up regularly—particularly since most
customizations, such as new templates, solutions, and so on, are stored here and nowhere else.
ODD MAN OUT
The wpresources folder, which can be considered SharePoint-related, is actually located within the
same root folder that contains 14; it is not contained by 14. The wpresource folder is used
specifically for added or customized web parts that are to be applied globally using the global assembly
cache, as opposed to a particular web application. I am not a developer of web parts, but I do know
you should never mess with the web.config file in the wpresources folder just for the fun of it.
The wpresources folder, like many used by SharePoint, is actually the physical location of a virtual
directory used in IIS. This is useful to know when trying to restore lost files in a virtual directory
(or trying to figure out what folders to back up).