views:

420

answers:

4

I would like to know how to deploy or what are the steps that are involved to deploy a classic asp website in IIS 6/7

Can we create an installer for the existing project?

+1  A: 

Copy the files to the virtual folder. If you have any depending dll's or exe's make sure to install them too.

As you said you may have to create an installer that will do this works to you. There is a lot of installers out there, like Inno Setup and Windows Installer.

Mendy
Thanks mendy, is there anything that i need to do to make run that application. Like, do i need to activate anything on my machine to work. another question is Can we create an installer for the existing project? i want my application to work on any systems.what is the best practive in deploying classic asp website?Please let me know this. What does xCopy deployment do?
Nimesh
or is there any other tool which does the deployment like xCopy???
Nimesh
Nimesh, are you making this harder than it has to be? Classic ASP is really simple. It's almost like a pure HTML web site. There is no installation, just files. You can drag and drop the .asp files in windows; xcopy is just a (good) command line utility for doing the same thing. As others said, if you're using custom DLLs you have to register them, but for simple sites this isn't commonly needed. If you try the steps Kyle listed, what is the behavior you get?
pluckyglen
Yeah but i am checking all the possible ways. I could copy all the files and placed into the virtual dirctory and the web site is up and running. But my intention is to give an installer to the client, where they can install, instead of creating the Virtual Directory and copy the files manually...
Nimesh
+2  A: 

If its just ASP and you have no DLL's or COM Components then you would just have to copy all the files to a Virtual Directory under approot or wwwroot. XCopy copies all directories, subdirectories and files. As for an installer, you wouldn't really need it but it would be useful if you make one that sets up the virtual directory, copies the files and configures any host headers if needed.

cory.m.smith
Could u please give me some links where i can make some installer??
Nimesh
Is there any option to create an installer for classic asp???
Nimesh
Finally i got the idea how to create setup for classic asp.Create new website in Visual Studio, then delete all the files in that folder. Say default.aspx,aspx.cs and we.config.Then right click on the solution explorer, web site and click on add existing item. select the asp files in the project and after that add websetup project, rest of the steps is same as creating setup for asp.net application.
Nimesh
+4  A: 
  1. Make sure a virtual directory has been set up in IIS.
  2. Copy all files into the virtual directory
  3. If applicable, register required DLLs with regsvr32.exe
  4. Run.

Hope this helps.


EDIT: I see you want to make an installer for the application. Have a look here for a guide on how to do it. To my knowledge there isn't anything that is "plug and play" for installing your project; you will have to make it.

Kyle Rozendo
+1  A: 

You should consider using Web Deploy http://www.iis.net/download/WebDeploy, it can deploy your ASP applications, setup the IIS application and other settings (like APplication Pool, etc), and even include COM objects, Registry keys and more. Even better you can parameterize content like Connection Strings, Title, settings, so that at install time you can pass those paramters either through the command line or the User Interface. It can deploy between IIS 6 and IIS 7 and even help you compare existing deployed versions with packaged versions (zip files), or other servers.

CarlosAg