I have developed an ASP.NET Website in Visual Studio 2008. Now I want to deploy that in some other machine. How can I do that?? Like we make an installation package for Windows application what can we do for ASP.NET Websites?
-
You can create an MSI (Microsoft Installer) file which will create the structure on another machine. I've covered this in a very similar question a few days ago.
Edit: See this link http://stackoverflow.com/questions/761725/asp-net-application-deployment-question/761727
-
Basically you upload the files to the server, making sure that:
The destination folder is configured as an ASP.Net application folder The web.config file is not configured to work with debugging anymore The database is uploaded as well, and/or reachable by the application
(Anyways that's how I do it. Might exist a better solution, but it works.)
-
Xcopy
"Xcopy-style file transfer simplifies the deployment and the maintenance of ASP.NET sites because you make no registry entries and because you register no components. The Microsoft .NET applications are self-describing, typically with no dependencies. With assembly versioning, you can even copy a new copy of a DLL that the application uses without stopping the Web server."
The above option of creating MSI is also good if you have a hand-over to operations to deploy on multiple machines.
-
Consider using the Web Deployment Tool from Microsoft. It was specifically designed to help deploy web applications and updates to those web applications to production IIS 6 and 7 web servers and it does a better job of the task than MSI (Windows Installer), IMHO.
-
You should precompile it first.
http://msdn.microsoft.com/en-us/library/ms227972.aspx
I use the web deployment projects, precompile and upload.
-
You can use Web Deployment Projects. How to is explained here.
0 comments:
Post a Comment