How to create web site in IIS using C#?

  • Thread starter Thread starter Webdiyer
  • Start date Start date
W

Webdiyer

Hi,all:

I want to create a web site in IIS from within my setup project,but I
don't know how can I accomplish this?I can create a virtual directory but my
manager asked me to create web site,not virtual directory!Anyone have any
ideas?Thanks in advance!!
 
Have you found the ADSI reference for IIS? In the MSDN Library, you should
find what objects / methods are available. Also note that only the server
editions of Windows allow multiple sites.
-mike
MVP
 
Thanks for your suggestion.I've figured it out myself!!It's not too
difficult to create a web site in iis within an asp.net web application by
using the methods of class System.DirectoryServices.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top