다음을 통해 공유


Determining Where to Build a Custom Application

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

You may want to create custom .aspx pages and Web applications and store them in a location that is accessible from all Web sites in your Windows SharePoint Services deployment. You may also want to create Web applications that contain custom code that works with the global settings for your deployment.

Location for Custom ASPX Pages and Web Applications

You can build and store custom .aspx pages and Web applications in the following directory, which supports the _layouts virtual directory:

Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS

Pages in this directory are accessible from all Web sites in the Windows SharePoint Services deployment through a URL in the following form:

http://Server/[sites/][Site]/[SubSite]/[.../]_layouts/File_Name.aspx

Location for Custom Code that Works with Global Settings

For code that involves use of only the Microsoft.SharePoint.Administration namespace for working with global settings in a Windows SharePoint Services deployment, it is recommended that you create the Web application on the administrative port. Build and store .aspx pages and Web applications for the administrative port in the following directory:

Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\ADMIN

Pages in the \ADMIN directory are accessible through a URL in the following form:

http://Server:Port_#/_admin/File_Name.aspx

For information about how to create a Web application in Microsoft Visual Studio 2005 that runs in the context of Windows SharePoint Services, see Getting Started with Programmatically Customizing a SharePoint Web Site in Visual Studio.

Console applications can be created anywhere on the front-end Web server. For information about how to create a console application that runs in the context of Windows SharePoint Services, see How to: Create a Console Application.

See Also

Concepts

Getting References to Sites, Web Applications, and other Key Objects

Forms of URL Strings

Getting Started with Programmatically Customizing a SharePoint Web Site in Visual Studio

How Do I... in Windows SharePoint Services

Working with List Objects and Collections

Other Resources

Sample Object Model Tasks