Summary
The system. directoryservices. directoryentry component provides access to active directory. This article takes two simple applets as an example to illustrate how to use this component to view the information of each node in the
Note: The environment required in this article is 2003 SERVER + iis6.0 + MS SQL2000
I once saw an article on the Internet about for a long time. At that time, I did not care about it. Anyone who has worked on ASP virtual hosts may know that, that
Asp.net| Security | security Vulnerabilities | troubleshooting | Virtual Host Description: The environment required in this article is 2003server+iis6.0+ms sql2000
Once very early on the Internet to see an article on the
Inadvertently found on the
Asp.net| Security | security Vulnerabilities | troubleshooting | Virtual Host Description: The environment required in this article is 2003server+iis6.0+ms sql2000
Once very early on the Internet to see an article on the
Inadvertently found on the
Be sure to save it as an array.String hostname = "localhost ";String newsitenum = "2 ";String Path = string. F "localhost"; ormat ("IIS: // {0}/w3svc/{1}/root", hostname, newsitenum );Directoryentry root = new directoryentry (PATH );
Using ASP. NET to operate IIS allows you to create virtual directories, virtual sites, delete virtual directories, and lists.
Key: ASP. NET users are not authorized to operate IIS, so they must be granted a high level of permissions.
Method 1: add
IIS net has actually done a good job for us in this area. FCL offers a number of classes to help us complete this work, making our development work very simple and enjoyable. Programming to control IIS is actually very simple, like the ASP. NET, you
First, you must reference Microsoft. Web. Administration, which is mainly used to operate IIS7;
Using System. DirectoryServices;Using Microsoft. Web. Administration;
1: configure the current version of IIS:
Copy codeThe Code is as follows:
Net has actually done a good job for us in this regard. FCL provides a lot of classes to help us complete this task, making our development work very simple and happy. Programming to control IIS is actually very simple, just like ASP ,. in net, you
. NET has actually done a good job for us in this area. FCL offers a number of classes to help us complete this work, making our development work very simple and enjoyable. Programming to control IIS is actually very simple, like the ASP. NET, you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.