Ask a Question related to ASP.NET General, Design and Development.
-
Michael Porcelli #1
programmatic IISconfiguration via ASP.NET application
Hello,
I am using ASP.NET to create a web-based application that allows users
to create their own web-site on our server. A requirement is that the
users have their own domain and particular IP address. A key to
getting this to work is to allow the web application to create a new
web root on the web server.
1. Is there some API provided to configure IIS in the required fashion?
2. Is this API available in .NET?
3. If not, is there a readily availably .NET wrapper for it?
For maximum generality, the web application should be able to create a
new web root on some web server other than the one the application
resides on. However, at the moment solving this problem for the
single server is more urgent.
Thanks,
-Michael.
Michael Porcelli Guest
-
programmatic usercontrol woes
hello, i have a user control that works great, when its used as a design-time controls. however, when i try to use it as a programmtic control,... -
Programmatic Admin Access
I'm looking into ways to access the MX 7 administrator through a programming API. So far all I've come up with is the... -
Programmatic Flash Video Encoding
I?ve been looking for a Flash 8 encoder SDK, is there one? I can?t find a reference to it anyplace. I am trying to encode to Flash video... -
Programmatic link buttons
Javatopia wrote: Event handlers for a dynamic control are called only if the control is recreated on postback. What you should do on... -
Datagrid programmatic
Hi everyone I have to generate a bunch of datagrids. The # number of datagrids needed will be told by a method. That's why I have to build an... -
»OÆW·L³n§Þ³N¤ä´©³¡ #2
RE: programmatic IISconfiguration via ASP.NET application
In VS.NET, you can maintenan your web site with classes in
System.DirectoryServices, for example, to add a web site (Be careful that
your ASPNET account has enough permission to do this):
DirectoryEntry oWebService = new DirectoryEntry("IIS://LocalHost/W3SVC");
DirectoryEntry oWebServer = oWebService.Children.Add("Test
Site","IISWebServer");
For more information about System.DirectoryServices, you can refer to MSDN
or this article:
HOW TO: Use the System.DirectoryServices Namespace in ASP.NET
[url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q329986[/url]
Luke
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
»OÆW·L³n§Þ³N¤ä´©³¡ Guest



Reply With Quote

