asp.net deployment

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
 
R

Rick Strahl [MVP]

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/
 
P

popman

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
 
S

Scott Allen

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,
 

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