Deploying applications via MSI to IIS Servers
I recently received from a IIS administrator a message which posed a very good question. He asked, I develop a ASP.Net application that I “zip” into a single .msi to deploy to a web application server. I have 2 websites defined, each using a unique host header.
The users issues though was related to where the MSI is installed to as it always defaults to the “Default Web Site” on IIS 6.0. This includes even if he stops all other sites. In IIS 5, he could effectively stop all sites except the one he is interested in and then run the .msi and it would work like a champ. This isn't the case on IIS 6.0 ...
This was a really interesting question for which I pose to any or all listeners out there - ideas? I would love to hear them.
To simplify, I am going to insert parts of this customers email for you to validate information against -
Email with more details
Thanks for the response. Let me clarify. This is not an Asp.Net deployment issue, but rather deploying a web app written in asp.net, deployment issue. Also, it's really not an IIS issue (probably msi or vs
studio) but I have been unsuccessful in getting feedback.
I packaged a asp.net application into a .msi file for deployment to the prod web server. This is a Win2k3 (IIS 6.0) box. We've created two separate websites on this machine using dns entries, 1 IP address. We removed the default website. When we run the installer file, it always installs to the first web site.
In IIS 5.0, the behavior was to "shut down" all active websites except for the one you want to install too. This does not seem to work in IIS 6.0.
Do you have any suggestions or idea for targeting a specific website for a asp.net application using an installer file? I really can't use xcopy or manual techniques because it's a locked down server.
Original Email:
I'm having trouble finding support with an deployment issue I'm having
with asp.net and IIS 6.0. We have setup multiple websites on a server.
However, asp.net installer always installs to the first website it
finds. What technique can i use to have application install to a
specific website? I know this may be a windows installer issue, but I
figured, why not?
Look forward to hearing from everyone!
~Chris