'전체 글'에 해당되는 글 227건

  1. 2008.09.06 SearchServer 관련
  2. 2008.09.04 Java examples
  3. 2008.09.01 .Net Framework 2.0 설치 안될때...
posted by 준치 2008. 9. 6. 17:22
 

You can add a web reference to each SharePoint web service through your Visual Studio .NET IDE. In your Solution Explorer right click on your project and select "Add Web Reference" from your popup menu. The table below shows the URLs to use for each web service provided by WSS. Enter the URL to the web service and click the Go button. This will show you in the dialog box a summary of all available web methods. Next enter the name of the web reference and then click Add Reference.


WSS Web Services Web Reference

Administration Service http:///_vti_adm/admin.asmx

Alerts Service http:///_vti_bin/alerts.asmx>

Document Workspace Service http:///_vti_bin/dws.asmx>

Forms Service http:///_vti_bin/forms.asmx>

Imaging Service http:///_vti_bin/imaging.asmx>

List Data Retrieval Service http:// /_vti_bin/dspsts.asmx>

Lists Service  http:///_ vti_bin/lists.asmx>

Meetings Service http:/// _vti_bin/meetings.asmx>

Permissions Service http:// /_vti_bin/permissions.asmx>

Site Data Service http:///_vti_bin/sitedata.asmx>

Site Service http:///_vti_bin/sites.asmx>

Users and Groups Service http:///_vti_bin/usergroup.asmx>

Versions Service http:///_vti_bin/versions.asmx>

Views Service http:///_vti_bin/views.asmx>

Web Part Pages Service http:// /_vti_bin/webpartpages.asmx>

Webs Service http:///_vti_bin/webs.asmx>



Setting the web service user credentials


The SharePoint web services only accept calls from existing SharePoint users and do also enforce access security. Import the System.Net namespace into your project and then use the NetworkCredential class to set the user credential to use for the web service call. Here is a code snippet:


public static XmlNode VersionsGetVersions(string SharePointHost, string UserName, string Password, string Domain, string FileName)

{

// proxy object to call the Versions web service

Versions.Versions VersionsService = new Versions.Versions();

// the user credentials to use

VersionsService.Credentials = new NetworkCredential(UserName, Password, Domain);

VersionsService.Url = SharePointHost + "_vti_bin/Versions.asmx";

// gets the file versions

XmlNode Result = VersionsService.GetVersions(FileName);

// dispose the web service object

VersionsService.Dispose();

return Result;

}


For example, first you create an instance of the Versions web service. Then you assign a new instance of the NetworkCredential class to the Credentials property on the created web service object. We pass along the user name, password and the user's domain name to the NetworkCredential object. Next you set the web service URL, which might very well be different from the one used when you created the web reference. Finally you invoke the desired web method, in the code snippet above the GetVersions() web method. The web method takes a file name and returns a XML document with all available versions of this file (Document libraries can have versioning enabled and then keep a history for each version). At the end you call Dispose() on the web service object to free up any underlying unmanaged resources.


If the user does not exist in SharePoint or does not have the permission to perform the operation then a WebException is thrown by SharePoint. The returned HTTP status is 401, which means unauthorized request. There are some inconsistencies across all web services. For example some web methods take a XML string as input while others take an XmlNode as input. Most web methods return the result as XmlNode while others return a XML string and while others again return complex data structures. But after you get used to these inconsistencies it is very easy to use these web services and integrate SharePoint capabilities right into your application.


A summary of the "Windows SharePoint Services" web services


The following table provides an overview what capabilities are exposed through the "Windows SharePoint Services" web services. Each web service is targeted towards a specific area although there is some overlap. You for example can use the Lists web service and the Site Data web service to work with SharePoint lists, or you can use the Site Data web service and the Webs web service to work with sites meta-data and sub-sites. Please refer to the attached "SharePoint web service browser" sample application which provides a windows form interface to browse all web services and all its web methods. It enables you to play with each web method or web service and better understand its usage. It also displays to each web service and web method the detailed SDK help page.



WSS Web Services Description

Administration Service This web service provides administrative capabilities like creating a new top-level site, deleting a top-level site and getting the list of available languages.

Alerts Service Provides access to the list of active alerts and allows to delete active alerts.

Document Workspace Service This web service is used to manage Document Workspace sites. It allows to create new document workspaces, delete document workspaces, create new sub-folders, delete sub-folders, etc.

Forms Service Each list has forms associated which are used to display list items, create new list items and update or delete existing list items. This web service allows to get the collection of forms associated with a list and then get detailed information about each form.

Imaging Service SharePoint has picture libraries which users can use to manage pictures. This web service allows to upload pictures, download pictures, create new folders, delete folders and pictures, etc.

List Data Retrieval Service Allows to run XPath like queries against a list.

Lists Service This web service is used to work with lists and list data. You can obtain the collection of lists, add new lists, remove lists, add new list attachments, remove attachments, etc.

Meetings Service This web service is used to work with Meeting Workspaces. You can create a new Meeting workspace, remove an existing Meeting workspace, add new meetings, add new meetings using ICal files, etc.

Permissions Service Sites and lists have permissions assigned to them. This web service is used to obtain the permissions assigned to a list or site, add new permissions and update or removing existing permissions.

Site Data Service The Site Data web service can be used to return meta-data about a site or list, get the collection of lists, get the attachments for a list item, get the collection of items in a list, etc.

Site Service This web service can be used to return the list of site templates. When you create a new site using the Administration web service you need to specify the site template name to use which you can obtain through this web service.

Users and Groups Service This web service is used to work with users, site-groups and cross-site groups. You can add, update or remove users, site-groups and cross-site groups. You can also add users or cross-site-groups to a site-group.

Versions Service Document Libraries and Picture Libraries can have versioning enabled, which stores a copy of every single file version. This web service can be used to get the list of available versions, delete versions and also restore a file version.

Views Service Lists have views associated which define what fields are shown, what filtering and sorting is applied, what grouping is applied, etc. This web service is used to work with list views. You can get the collection of views, add new views, remove views, update the Html code used to display a view, etc.

Web Part Pages Service Web Parts are objects which you can place on web part pages. This web service is used to work with web parts and web part pages. You can get the list of web parts on a page, you can add or remove web parts, etc.

Webs Service This web service is used to work with sites and sub-sites. You can get the list of list-templates, get meta-data about a sub-site, get the list of sub-sites, etc.

 



A summary of the SharePoint Portal Server web services


SharePoint Portal Server provides the same web services as Windows SharePoint Services. It also provides the following five additional web services.


WSS Web Services Description

Area Service Areas are sections used in SharePoint Portal Server to group content. This web service allows to manage areas. You can create new areas, update areas, remove areas, get the list of sub-areas, etc.

Query Service The Query web service is used by clients to search SharePoint. You can send in complex search XML requests and get a result-set of matches.

User Profile Service Users in SPS have user profiles that are used to target content to audiences (users). This web service allows to obtain user profile information. It does not allow to create or modify user profiles.

SPS Crawl Service This web service is undocumented and is used by SharePoint itself for site crawling purposes.

Outlook Adapter Service Provides the same capabilities as the Alerts web service of WSS.

 


The table below shows the URLs to use for each web service provided by SharePoint Portal Server. You can add them the same way as the WSS web services described above.


WSS Web Services Web Reference

Area Service http:///_vti_bin/areaservice.asmx>

Query Service http:///_vti_bin/search.asmx> 

User Profile Service http:// /_vti_bin/userprofileservice.asmx

SPS Crawl Service http:///_vti_bin/spscrawl.asmx>

Outlook Adapter Service http:// /_vti_bin/outlookadapter.asmxd>



Namespaces used in the returned SharePoint XML documents


Many of the web methods return its result in form of an XML document. Most root nodes have a namespace URI associated with it. Here is an example XML document returned by the GetListCollection() web method (on the Lists web service). Please note that this is just a partial XML snippet for demonstration purpose:


Naturally we would think of running an XPath query like "//List" using the SelectNodes() method on the XmlDocument or XmlNode object. We expect it to return all the List nodes of this XML document. But the result returned is empty. The reason being that you need to query within the namespace associated with the root node. But how do you do that if there is no namespace qualifier (or prefix) associated with the namespace URI. We need to use the XmlNamespaceManager class to associate a namespace prefix to the namespace URI. Here is the code snippet:


private XmlNodeList RunXPathQuery(XmlNode XmlNodeToQuery, string XPathQuery) {

// load the complete XML node and all its child nodes into a XML document XmlDocument Document = new XmlDocument();

Document.LoadXml(XmlNodeToQuery.OuterXml);

// all the possible namespaces used by SharePoint and a randomly choosen prefix

const string SharePointNamespacePrefix = "sp";

const string SharePointNamespaceURI = http://schemas.microsoft.com/sharepoint/soap/";

const string ListItemsNamespacePrefix = "z";

const string ListItemsNamespaceURI = "#RowsetSchema";

const string PictureLibrariesNamespacePrefix = "y";

const string PictureLibrariesNamespaceURI = http://schemas.microsoft.com/sharepoint/soap/ois/";

const string WebPartsNamespacePrefix = "w";

const string WebPartsNamespaceURI = http://schemas.microsoft.com/WebPart/v2;

const string DirectoryNamespacePrefix = "d";

const string DirectoryNamespaceURI = http://schemas.microsoft.com/sharepoint/soap/directory/;

// now associate with the xmlns namespaces (part of all XML nodes returned

// from SharePoint) a namespace prefix which we can then use in the queries

XmlNamespaceManager NamespaceMngr = new XmlNamespaceManager(Document.NameTable); NamespaceMngr.AddNamespace(SharePointNamespacePrefix, SharePointNamespaceURI); NamespaceMngr.AddNamespace(ListItemsNamespacePrefix, ListItemsNamespaceURI); NamespaceMngr.AddNamespace(PictureLibrariesNamespacePrefix, PictureLibrariesNamespaceURI); NamespaceMngr.AddNamespace(WebPartsNamespacePrefix, WebPartsNamespaceURI); NamespaceMngr.AddNamespace(DirectoryNamespacePrefix, DirectoryNamespaceURI);

// run the XPath query and return the result nodes

return Document.SelectNodes(XPathQuery, NamespaceMngr);

}


First we create a new XmlDocument object and load the XML string of the passed along XmlNode into it. This way we can manipulate the XML document as needed without affecting the original XmlNode object itself. Then we create an XmlNamespaceManger object and assign it to the XmlDocument object. This we do by passing along the NameTable property of the XmlDocument. Next we add all the namespace URI's with its namespace prefixes. There are five different namespaces you will run into frequently (see declared constants). Finally we run the XPath query and return the collection of matching XML nodes. The namespace shown in our sample XML snippet gets the "sp" namespace prefix associated so our XPath query would change to "//sp:List". This will now return all matching XML nodes.


Some real life examples of using the SharePoint web services


The following examples demonstrate how you can leverage the SharePoint web services to interact tightly with SharePoint from within your application. The detailed code for each example can be found in the attached "SharePoint explorer" sample application. The description below explains which web service and web method to use to obtain the desired SharePoint information.


Example 1 - Get the collection of SharePoint lists, fields and views


In the first example we want to get the collection of SharePoint lists. For each list we want to get all the defined list fields (fields you can use to store information) and finally all views associated with the list. Here are the web methods to call:


On the Lists web service call the GetListCollection() web method to get the collection of all SharePoint lists. This returns an XML document with all SharePoint lists.

Next you run the "//sp:List" XPath query to get all matching List nodes. The Title attribute of each matching node contains the name of the SharePoint list.

For each SharePoint list we call the GetList() web method on the Lists web service, passing along the list name. This returns a XML document with detailed information about the list including the list of fields.

Next you run the "//sp:Field" XPath query to get all the matching Field nodes. The Name attribute contains the field name.

For each SharePoint list we call the GetViewCollction() web method on the Views web service, passing along again the list name. This returns a XML document listing all views for the list.

Finally you run the "//sp:View" XPath query to get all the matching View nodes. The Name attribute contains the name of the view.

Example 2 - Get the list of users and site-groups


In this example we want to get the list of site users and to which site group each user belongs. We also want to get the list of site groups and which users belong to each site group.


On the Users-and-Groups web service we call the GetUserCollectionFromWeb() web method. This returns an XML document with all the site users.

Next you run the "//d:User" XPath query to get all the matching User nodes. The Name attribute contains the user name and the LoginName attribute the user's login name.

For each user we call the GetRoleCollectionFromUser() web method on the Users-and-Groups web service passing along the user's login name. This returns a XML document with all the site groups the user belongs to.

Next you run the "//d:Role" XPath query to get all the matching Role nodes. The Name attribute contains the site group name.

To get the list of site groups call the GetRoleCollectionFromWeb() web method on the Users-and-Groups web service. This returns an XML document with all site groups.

Next you run again the "//d:Role" XPath query to get all the matching Role nodes. The Name attribute contains the site group name.

Finally call for each site group the GetUserCollectionFromRole() web method on the Users-and-Groups web service passing along the site group name. This returns an XML document with all the users belonging to this site group.

Next you run again the "//d:User" XPath query to get all the matching User nodes. The Name attribute contains the user name and the LoginName attribute the user's login name.

Example 3 - Get the list of sites, site-templates and list-templates


With the last example we want to get a list of all sites in the site collection. We want to get for the site collection the list of site templates. Additionally we want for each site the list of list templates.


First we call the GetAllSubWebCollection() web method on the Webs web service. This returns an XML document with all sites in the site collection.

Next run the "//sp:Web" XPath query to return all matching Web nodes. The Url attribute contains the absolute URL for the site.

Then we call the GetSiteTemplates() web method on the Sites web service. This returns an array of available site templates in the site collection, which is an array of the type Sites.Templates. The attached sample application converts all structures to an XML document using reflection, so you can run XPath queries against it (see the method SharePoint.SitesGetSiteTemplates()).

Next run the "//SharePointServices.Sites.Templates" XPath query which returns all matching template nodes. The Title attribute contains the template title and the Name attribute the SharePoint template name.

For each site we call the GetListTemplates() web method on the Webs web service. Before calling the web service object you need to set the URL to the site URL (returned by GetAllSubWebCollection()). This way we make sure that t he call is to the site itself and returns the list templates of that site. This returns an XML document with all list templates.

To finish run the "//sp:SiteTemplate" XPath query to return all matching SiteTemplate nodes. The DisplayName attribute contains the name of the list template.

Summary


SharePoint comes with a vast number of web services and web methods which enable you to tightly integrate SharePoint capabilities into your application. It is very easy to learn and use these web services and web methods. Please refer to the attached "SharePoint web service browser" example which provides a complete wrapper class for all existing (about 150) web methods. This removes the burden of adding all the web references and worrying about the details how to instantiate each web method, etc. The sample application provides a user interface to explore all web methods. You can browse the web services and web methods, display the SDK help page, enter the input values, execute the web method and look at the displayed output values.


The second example - "SharePoint explorer" provides a much more comprehensive sample of how to use and work with the SharePoint web services and web methods. It retrieves as much information and displays the data in lists and tree nodes (always running simple XPath queries against the result-set). The user interface allows you to traverse through the related data. You can also write your own web services using the managed SharePoint server API. Here is a sample application which provides a document check-in and check-out capability through a new web service.


posted by 알 수 없는 사용자 2008. 9. 4. 15:01

Java examples

이름은 자바지만 거의 모든 개발언어에 대한 샘플코드가 풍부하게 들어있습니다.

SharePoint만 없군요... -_-


posted by 준치 2008. 9. 1. 19:30

제가 삽질한거는 sharepoint를 설치하는 도중에 .Net Framework 2.0이 설치가 안됐다는 경고 창이 열려서
확인했는데 있더라구여 그래서 고생을 했습니다.
만약 이런 상황에 처하신다면
시작 -> 실행 (cmd)해서 -> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 경로이동 ->aspnet_regiis.exe -i 실행시키시면 설치가 됩니다.
관련 내용을 받은 적이 있어서 밑에 같이 적겠습니다..ㅎㅎㅎ

 

여러 버전의 .NET Framework가 한 대의 컴퓨터에서 side-by-side 방식으로 실행되는 경우 ASP.NET 응용 프로그램에 매핑된 ASP.NET ISAPI 버전에 따라 응용 프로그램에 사용되는 공용 언어 런타임 버전이 결정됩니다. 관리자 또는 설치 프로그램은 ASP.NET IIS 등록 도구(Aspnet_regiis.exe)를 사용하여 해당 도구와 관련된 ASP.NET ISAPI 버전을 가리키도록 ASP.NET 응용 프로그램의 스크립트 맵을 쉽게 업데이트할 수 있습니다. 또한 이 도구를 사용하면 설치된 모든 ASP.NET 버전의 상태를 표시하고, 도구와 연관된 ASP.NET 버전을 등록하고, 클라이언트 스크립트 디렉터리를 만들고, 기타 구성 작업을 수행할 수 있습니다.

Aspnet_regiis [options]

다음 옵션 중에서 옵션을 하나 이상 지정할 수 있습니다.

옵션

설명

-c

클라이언트 측 유효성 검사 스크립트와 같은 ASP.NET의 클라이언트 측 스크립트를 각 IIS 사이트 디렉터리의 aspnet_client 하위 디렉터리에 설치합니다.

참고   Aspnet_regiis.exe 연관된 ASP.NET 버전의 클라이언트 스크립트만 설치됩니다.

-e

각 IIS 사이트 디렉터리의 aspnet_client 하위 디렉터리에서 ASP.NET의 클라이언트 측 스크립트를 제거합니다.

참고   Aspnet_regiis.exe 연관된 ASP.NET 버전의 클라이언트 스크립트만 제거됩니다.

-ea

각 IIS 사이트 디렉터리의 Aspnet_client 하위 디렉터리에서 모든 ASP.NET 버전의 클라이언트 측 스크립트를 제거합니다.

-i

Aspnet_regiis.exe와 연관된 ASP.NET 버전을 설치하고 IIS 메타베이스 루트 및 그 아래 수준에 있는 스크립트 맵을 업데이트합니다.

참고   이전 ASP.NET 버전을 사용하는 응용 프로그램의 스크립트 맵만 업데이트됩니다. 이후 버전을 사용하는 응용 프로그램은 영향을 받지 않습니다.

-ir

Aspnet_regiis.exe와 연관된 ASP.NET 버전을 설치하고 IIS에 ASP.NET을 등록하기만 합니다.

참고   이 옵션은 스크립트 맵을 업데이트하지 않습니다. ASP.NET 설치하고 스크립트 맵을 업데이트하려면 -i 옵션을 사용하십시오.

-k path

지정된 응용 프로그램 루트 경로 및 해당 하위 디렉터리의 모든 ASP.NET 응용 프로그램에서 모든 ASP.NET 버전에 대한 스크립트 맵을 제거합니다.

-kn path

지정된 응용 프로그램 루트 경로에서만 ASP.NET 응용 프로그램에서 모든 ASP.NET 버전에 대한 스크립트 맵을 제거합니다.

참고   이 옵션은 path의 하위 디렉터리에 있는 응용 프로그램에는 영향을 주지 않습니다.

-lk

ASP.NET이 매핑된 모든 IIS 메타베이스 키의 경로 및 버전을 표시합니다.

참고   부모 키에서 ASP.NET 스크립트 맵을 상속하는 키는 표시되지 않습니다.

-lv

컴퓨터에 설치되어 있는 모든 ASP.NET 버전의 상태 및 설치 경로를 표시합니다.

-r

IIS 메타베이스 및 그 아래 수준에 있는 모든 스크립트 맵을 Aspnet_regiis.exe와 연관된 ASP.NET ISAPI 버전을 가리키도록 업데이트합니다.

참고   기존의 모든 스크립트 맵이 현재 버전에 관계없이 Aspnet_regiis.exe와 연관된 ASP.NET ISAPI 버전을 가리키도록 업데이트됩니다.

-s path

Aspnet_regiis.exe와 연관된 ASP.NET ISAPI 버전을 가리키는 스크립트 맵을 지정된 응용 프로그램 루트 경로 및 해당 하위 디렉터리의 모든 ASP.NET 응용 프로그램에 설치합니다. 지정된 경로 및 그 아래 수준에 있으면서 이전 ASP.NET ISAPI 버전을 사용하는 기존의 모든 스크립트 맵이 업데이트됩니다.

-sn path

Aspnet_regiis.exe와 연관된 ASP.NET ISAPI 버전을 가리키는 스크립트 맵을 지정된 응용 프로그램 루트 경로의 ASP.NET 응용 프로그램에 설치합니다. 지정된 경로에 있으면서 이전 ASP.NET ISAPI 버전을 사용하는 기존의 모든 스크립트 맵이 업데이트됩니다.

참고   이 옵션은 path의 하위 디렉터리에 있는 응용 프로그램에는 영향을 주지 않습니다.

-u

Aspnet_regiis.exe와 연관된 ASP.NET 버전을 컴퓨터에서 제거합니다. 이 버전의 ASP.NET ISAPI에 대한 기존의 스크립트 맵은 설치된 나머지 ASP.NET ISAPI 버전 중 가장 최신 버전으로 자동으로 다시 매핑됩니다.

-ua

모든 ASP.NET 버전을 컴퓨터에서 제거합니다.

-?

이 도구의 명령 구문 및 옵션을 표시합니다.

설명

한 대의 컴퓨터에 여러 ASP.NET 버전이 설치되어 있을 경우 ASP.NET이 side-by-side 방식으로 실행된다고 말합니다. 이러한 설치에서 IIS(인터넷 정보 서비스)는 어떤 버전의 ASP.NET ISAPI(aspnet_isapi.dll)가 ASP.NET 응용 프로그램의 페이지를 처리할지 알아야 합니다. ASP.NET 응용 프로그램과 연관된 ASP.NET ISAPI 버전에 따라 응용 프로그램에 사용되는 공용 언어 런타임 버전이 결정됩니다. ASP.NET 응용 프로그램은 IIS의 스크립트 맵을 통해 ASP.NET ISAPI 버전과 연관됩니다. ASP.NET 응용 프로그램의 구성 프로세스를 단순화하기 위해 각 ASP.NET 버전에는 링크된 Aspnet_regiis.exe 버전이 제공되어 있습니다.

참고   각 .NET Framework 버전에는 고유한 Aspnet_regiis.exe 버전이 포함되어 있습니다. 도구의 각 버전은 연관된 .NET Framework 버전에만 적용할 수 있으므로 적절한 버전의 도구를 사용하여 ASP.NET 응용 프로그램을 구성해야 합니다.

Aspnet_regiis.exe는 해당 도구와 연관된 .NET Framework 버전에 ASP.NET 응용 프로그램을 다시 매핑할 때 주로 -s 또는 -sn 옵션과 함께 사용됩니다. 지정된 루트 경로 및 해당 하위 디렉터리 전체에서 응용 프로그램을 업데이트하려면 -s 옵션을 사용합니다. 하위 디렉터리의 응용 프로그램을 업데이트하지 않으려면 -sn 옵션을 사용합니다. 컴퓨터에 있는 기존의 모든 ASP.NET 응용 프로그램의 스크립트 맵을 한 번에 모두 업데이트하려면 -r 옵션을 사용합니다.

참고   path 매개 변수는 실제 경로가 아니라 응용 프로그램의 루트 경로를 참조합니다. 예: W3SVC/1/ROOT/SampleApp1

반대로, -k 또는 -kn 옵션을 사용하고 응용 프로그램의 루트 경로를 지정하여 응용 프로그램에서 임의의 ASP.NET 버전에 대한 스크립트 맵을 제거할 수 있습니다.

참고   지정된 루트 경로가 부모 루트 경로에서 해당 스크립트 맵을 상속하면 -k-kn 옵션을 사용해도 효과가 없습니다.

또한 링크된 ASP.NET 버전을 설치 및 제거하는 데에도 이 도구를 사용할 수 있습니다. ASP.NET을 설치하고 기존의 모든 ASP.NET 응용 프로그램의 스크립트 맵을 업데이트하려면 -i 옵션을 사용합니다. 스크립트 맵을 업데이트하지 않고 ASP.NET을 설치하려면 -ir 옵션을 사용합니다. 이 도구와 연관된 ASP.NET 버전을 제거하려면 -u 옵션을 사용합니다. 컴퓨터에서 모든 ASP.NET 버전을 제거하려면 -ua 옵션을 사용합니다.

Aspnet_regiis.exe를 사용하여 ASP.NET에 대한 정보를 볼 수 있습니다. 설치된 모든 ASP.NET 버전의 상태 및 설치 경로를 나타내려면 -lv 옵션을 사용합니다. ASP.NET이 매핑되어 있는 모든 IIS 메타베이스 키의 경로를 보려면 -lk 옵션을 사용합니다.

클라이언트 측 유효성 검사와 같은 클라이언트 측 스크립트는 Aspnet_regiis.exe를 사용하여 설치 및 제거할 수 있습니다. 해당 도구와 연관된 ASP.NET 버전의 클라이언트 측 스크립트를 각 IIS 사이트 디렉터리의 aspnet_client 하위 디렉터리에 설치하려면 -c 옵션을 사용합니다. 해당 도구와 연관된 ASP.NET 버전의 클라이언트 측 스크립트만 제거하려면 -e 옵션을 사용합니다. 설치된 모든 ASP.NET 버전의 클라이언트 측 스크립트를 제거하려면 -ea 옵션을 사용합니다.

ASP.NET의 side-by-side 실행에 대한 자세한 내용은 ASP.NET의 Side-by-Side 지원을 참조하십시오. 스크립트 맵 및 응용 프로그램 루트 경로에 대한 자세한 내용은 IIS 설명서(http://localhost/iishelp)를 참조하십시오. IIS 설명서를 보려면 IIS가 설치되어 있어야 합니다.

예제

다음 명령은 Aspnet_regiis.exe와 연관된 ASP.NET 버전을 가리키는 스크립트 맵을 SampleApp1 응용 프로그램과 해당 하위 응용 프로그램에 설치합니다.

Aspnet_regiis -s W3SVC/1/ROOT/SampleApp1

다음 명령은 SampleApp1 응용 프로그램의 스크립트 맵만 업데이트하며 하위 디렉터리의 응용 프로그램에는 영향을 주지 않습니다.

Aspnet_regiis -sn W3SVC/1/ROOT/SampleApp1

다음 명령은 해당 도구와 연관된 ASP.NET 버전을 설치하고 기존의 모든 ASP.NET 응용 프로그램의 스크립트 맵을 업데이트합니다. 현재 이전 ASP.NET버전에 매핑되어 있는 응용 프로그램만 영향을 받습니다.

Aspnet_regiis -i

다음 명령은 해당 도구와 연관된 ASP.NET 버전을 설치하지만 기존의 ASP.NET 응용 프로그램의 스크립트 맵은 업데이트하지 않습니다.

Aspnet_regiis -ir

다음 명령은 컴퓨터에 설치되어 있는 모든 ASP.NET 버전의 상태 및 설치 경로를 표시합니다.

Aspnet_regiis -lv