default website

J

js

Does anyone know how to create a web project with Visual Studio.Net 2003
on IIS6 running on Windows Server 2003? The IIS has the default website
disabled, and a new website is created. I have been developing ASP
applications on this new website by editing individual file in Visual
Studio, because I could not get VS to create a project with default
website disabled. I chose this approach so I don't have to use virtual
directory under the default website, and users just type \\mywebserver
to access the default page. Just a test, I renamed several ASP page
with ASPX file extension. They all worked. Now I want to add true ASPX
pages with CodeBehind in C# into the mix, but I am not sure how to
compile the new files without an web project. Should I create a bin
folder for each folder that has ASPX files, or just create a bin folder
under the applicaiton root? I would like to create a new ASPX web
project on the IIS, but it throws an error:

The default web access mode for this project is set to file share, but
the project folder at 'http://myserver/myapplication' can not be opened
with the path '\\myserver\wwwroot$\myapplication'.

I tried to open it with FrontPage Server Extensions option, it did not
work either. In the Management Console, the IIS look like this.

Internet Information Services
- MyServerName
+ Application Pools
- Web Sites
+ Default Web Site (Stopped)
- MyApplication
 
G

Guest

change the home directory under the default web site option in the IIS
console manager to the folder were your web site resides.
 
J

js

Mike,

Thanks for the reply. As I mentioned that the IIS6 has the Default
Website (stoped). I'd rather not enabled it to create a new virtual
directory under it. However, I did tried enabling it and changed the
home directory to a folder under d:\inetpub\wwwroot\ as you suggested.
VS still could not create the web project. I still got the same error
message as I mentioned in my previous message. Any idea?

By the way, when I right clicked the Default Website and selected the
All Tasks option, there is only "Save Configuration to a file" option.
There is no "Check Server Extensions 2002". Could it be the Server
Extension missing on the server? Thanks.
 

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

Top