Saturday, 11 February 2017

AWS console

http://www.tothenew.com/blog/deploy-asp-net-application-on-amazon-ec2/



Step 1: Launch Instance

Once you have logged in to AWS console, Go to EC2 -> Instances, then launch instances and select Microsoft Windows Server 2012 Base and follow the steps.


asp_net1
Before Launching Instances, AWS console prompts you to create a key pair file (.pem file). Once you created the .pem file, download the file to your local machine as this file will be used to obtain passwords for Windows Machine.

Once the instance is in running state, click Connect (It takes around 5-10 min to retrieve the password). It prompts you to upload the .pem file that you have created above. Once you have uploaded the file it will decrypt the file and delivers you a random Password  which will be used to connect to Instances using RDP (Remote Desktop Client).
Note: Make sure to open Port 3389 for RDP connections in the security group.

Step 2: Connect to Instances using RDP

You can use Remmina RDP in Ubuntu to connect to Windows Instance with Username: Administrator and Password: (that console delivers after decryption process)
asp_net2

Step 3: Install Web Platform on Windows Server Instance

Web Platform Installer is a free tool used to automate the installation of the Microsoft Web Platform (e.g IIS/Visual Studio) and some third party softwares like WordPress/Drupal/Joomla
Once this is installed, Open Web Platform and search web deploy

Step 4: Install web deploy for Hosting Servers

asp_net5

Step 5: Set up IIS Server with  .NET FRAMEWORK features

Press Window + Q, Open Server Manager, it will look like this
server_manager
Click on Add Roles and Enable following features:
Web Server (IIS) +  Application Development and all features listed in below figure.
server_role

Step 6: Add website to IIS

  1. ->Create a directory c:\inetpub\wwwroot\deploy
  2. ->Start IIS and add a website.
Make sure to choose Application pool same as your application .NET version.
website

Step 7: Publish Website from Visual Studio

On your local machine, open up Visual Studio.
Create a new ASP.NET web application (.NET framework 4.0) with name “deploy”.
Once the application is set up, click on Build on the navigation bar and select Publish deploy.
You will get the following dialogue box.
image
Add the credentials and hit the Publish button. If everything goes well you will get your application page.
home
- See more at: http://www.tothenew.com/blog/deploy-asp-net-application-on-amazon-ec2/#sthash.Oe5JAubL.dpuf

No comments:

Post a Comment