I used to use discountasp.net and I can use Visual Studio 2008 to "publish" the website directly to the web host. I am using a dedicated server now (well, to be exact, Amazon EC2 Windows), how should I setup the web server so I can deploy the website directly from VS 2008? I tried to setup a FTP server but couldn't get it working.
Thanks!
In Solution Explorer, right-click your project and choose Publish. If you're publishing this web app for the first time, next you see the Publish wizard. Visual Studio filters the list of destinations depending on the type of web app.
Visual Studio also offers built-in tools to facilitate deployment to a web host provider.
To correct this, right click on References and choose Add Service Reference. In the next window, click on the Advanced button in the lower left. In the next window, click Add Web Reference in the lower left. Enter a name, then you can use the WSDL URL.
Open the Visual Studio 2008 IDE and create a new Windows application. Go to "Project" –> "<Application Name> Properties" –> "Publish".
Here is a tutorial from the official Amazon EC2 deverloper site ("Deploy ASP.NET application to Amazon EC2 like a typical remote server. This tutorial shows you how")
If you need to deploy an ASP.NET application directly from Microsoft Visual Studio, you can use the Copy Web Site Wizard available in Microsoft Visual Studio 2005 and later.
The Copy Web Site Wizard allows you to deploy applications using File Transfer Protocol (FTP) or Microsoft Office FrontPage Server Extensions. To use FTP, you must install the FTP component of IIS as well as permit ports 20 and 21 through the firewall using the ec2-authorize command.
[...]
With Amazon EC2, you can deploy ASP.NET applications on dedicated Windows instances running in Amazon’s data centers. To deploy the application, you need to create an instance based on an AMI template. After creating the instance, you access the administrator password, then configure a firewall rule and Remote Desktop to the server. To provide persistent storage, you create an EBS volume, and then set up IIS and the ASP.NET application. You can deploy ASP.NET applications to the server with tools like Visual Studio or through FTP.
From: Deploying ASP.NET Applications on Amazon EC2 (via archive.org)
If you want to run an ASP.NET application on Amazon EC2, you might want to consider using AppHarbor. AppHarbor let's you take advantage of Amazons scalable and stable platform, without having to install, manage and update servers yourself. AppHarbor also makes deployment a snap, using your choice of Git, Mercurial, Subversion or TFS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With