473,327 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How to create web site in IIS using C#?

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!!
Nov 15 '05 #1
4 7640
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

"Webdiyer" <yh****@21cn.com> wrote in message
news:e8*************@TK2MSFTNGP09.phx.gbl...
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!!

Nov 15 '05 #2
Here's a site that might help:

http://www.4guysfromrolla.com/webtech/021199-1.shtml

-JG
Nov 15 '05 #3
Thanks,I've figured it out myself!!

"Juan Gabriel Del Cid" <jd*****@atrevido.nospam.net> дÈëÓʼþ
news:O%****************@tk2msftngp13.phx.gbl...
Here's a site that might help:

http://www.4guysfromrolla.com/webtech/021199-1.shtml

-JG

Nov 15 '05 #4
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.
"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> дÈëÓʼþ
news:Ow*************@tk2msftngp13.phx.gbl...
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

"Webdiyer" <yh****@21cn.com> wrote in message
news:e8*************@TK2MSFTNGP09.phx.gbl...
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!!


Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
0
by: No Spam | last post by:
After looking all the ways to progrrammatically create a new FTP Server & Virtual Directory, I have come to see that the code below is the cleanest. Here is my basic issue. When I run this code, I...
2
by: mike kim | last post by:
I am in the middle of developing a web application using asp.net. I have used IIS default web site for the development, creating a virtual directory and so. My laptop is also my webserver. ...
12
by: David Berman | last post by:
Whenever I want to create a C# / asp.net based web site, Visual Studio always requires a subdirectory for the project. So when I make my site, for example abcinc.com, the web site ends up at...
3
by: purkka | last post by:
Hi I replaced a Win 2000 Adv server to the Win 2003 Std with Front Page Server Extension and .Net Framework 2.0. FPSE is extended to Default Web Site. Visual Studio 2005: If I create a new web...
2
by: db55 | last post by:
I have multiple locations that I want to create views for each individual location. I am using a cursor to create the views for each location. So, the cursor grabs site #1 then <should> create...
2
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
4
by: John Straumann | last post by:
Hello all: Most of my development for websites has been on test VPC images where VS is installed on the server image. I now have a setup where I have a test server joined to my domain, and a...
1
by: jags | last post by:
HI All I was trying to create Document librray programatically in a Sharepoint Site and is not working for me.I was trying to implement this as an Event Handler. The aim of the code is to create...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.