asp.net deployment

  • Thread starter Thread starter popman
  • Start date Start date
P

popman

Vs.net's setup project always installs the project's files under wwwroot.If
I would like to install the project's files(aspx,js,html files) into program
files.How should I do?


Thanks
 
You'll have to manually configure things if you do this, but it's not
difficult.

The main thing for this is that you have to set the rights etc manually
because most likely Program Files will not be set up correctly to allow the
Web access.

The thing to do is:

Make sure that your path allows access to the IUSR_ account and NETWORK
SERVICE (IIS6) or ASPNET (IIS5)
Create a new Virtual Directory (using the IIS Admin console) in your custom
path
Enable Script Execution in the virtual
Make sure that this path has a BIN sub directory
Make sure that you create web.config and global.asax files if not in your
files
Copy the rest of your files

Hope this helps,

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
 
Hi Rick,
Thank you for your reply.
Perhaps I was misunderstood.I want a asp.net application to be setup by a
MSI file.
The MSI file is created by vs.net setup project.
But such setup project can only let me set virtual directory name which
usually install the asp.net application under wwwroot root,if a virtual
directory isn't be set in IIS admin Console before install.

So my question is whether I can change the destination to "program file".

Neo
 
Not without making some change in IIS first.

If I create a virtual directory in IIS pointing under Program Files,
and then run an ASP.NET setup MSI pointing to the new virutal
directory, it will use the path of the virtual directory and setup all
the correct authorization rights, etc.

HTH,
 
Back
Top