Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the prerequisites for installing an ASP.NET application?

We have an ASP.NET 2.0 application that is available as a trial download. As such, we have no control over the environment into which it will be installed. Despite all our efforts to produce a reliable installer, we still get a lot of users reporting problems.

We generate compiled .net files using a web deploy project. We then take the output and run it through a VS 2010 Deployment Project to generate an msi installer.

Here are just a couple of the issues we encounter:

  • It appears that the msi installer does not work well with IIS7. In order for it to install correctly, IIS6 compatibility needs to be installed otherwise it just fails with no error.
  • Even though "RemovePreviousVersions" is set to true, the installer almost never uninstalls the provious version and just throws an error saying that the application is already installed.

We have previously tried using an InnoSetup installer. It worked to a certain extent, but we had problems with the installed application connecting to the wrong app pool and never found a way to define the app pool via the InnoSetup script.

Can somebody give me a definitive list of what you need to get an ASP.NET application up and running on a Windows XP or later machine that has an unknown configuration? e.g. check .NET 2.0 is installed, check II6 is installed, copy files to x, create virtual directory etc.

Even better, does anybody know of an installer (or InnoSetup extension) that does most of the setup for you?

like image 922
norgepaul Avatar asked Aug 29 '11 09:08

norgepaul


1 Answers

In order to deploy the release on the development or production server, please follow the following steps.

  1. Install Web Deployment MSI.
  2. Right Click on the your project under the solution explorer and add the web deployment project( Here I am not using convert to web application or publishing)
  3. Then compile the files. This will create a folder in your project directory which will contain the required files to be deploy on the server.
  4. Take the back up of your virtual directory and remove the virtual directory as well as files from inetpub.
  5. Goto Inet mgr , type inetmgr in run hit enter.
  6. Under the default website, create a virtual directory, keep the deployed files in the inetpub and browser the files.
  7. Allow appropriate access such as read, run script and browse. That's all

Flag it as your answer if you have find it useful else let me know ...

like image 149
AnandMohanAwasthi Avatar answered Sep 19 '22 21:09

AnandMohanAwasthi