By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,871 Members | 2,595 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,871 IT Pros & Developers. It's quick & easy.

Installing Web App Into Specific Directory

P: n/a
I'm creating a Web Setup App, and I've been having many
problems with it alongthe way. Some still aren't solved.

This latest problem is that I can't install the
application into the directory I want it to go to. There
is a virtual directory that already exists on the server,
and I want to just add this app to that directory.
However, the installer creates a new virtual directory
inside the existing virtual directory and then installs my
app into the new virtual directory.

I don't know how to force it into the correct directory.

help???
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Angela,

I have tested to install a web application into an existing virtual
directory. It works fine on my testing machine.

Here are the steps I use:

1. Create a empty directory, e.g. d:\TestVD
2. In IIS, create a Virtual Directory (e.g. named "TestVD") and point it to
the physical directory created in 1, accept all the default settings.
3. Create a ASP.Net application, e.g. named "WebApplication1"
4. Add a Web Setup Project to the current solution, e.g. named "WebSetup1"
5. Add WebApplication1's "Primary output" and "Content Files" to
WebSetup1's Web Application folder
6. Build the solution
7. Double click the WebSetup1.msi package located in the "debug" folder.
8. Input "TestVD" for "Virtual Directory" in the "Select Installation
Address" dialog.
9. Finish the setup.

I can access the WebApplication1 by "http://localhost/TestVD/WebForm1.aspx".

I have also tried to install a WebApplication to a virtual directory that
already contains another one. But I still cannot reproduce your situation.
Could you briefly describe your situation, e.g. any existing files, any
non-default settings, any permission issues and so on? Are you using VS.Net
2002 or VS.Net 2003? If possible, please also give me some steps to
reproduce the situation.

Should you have any concerns or new findings regarding this issue, please
feel free to let me know. I look forward to hearing from you.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.