How to Web Deploy ASP.NET 5 to AWS IIS using VS2015? - asp.net

The Publish Web wizard in Visual Studio 2015 no longer allows you to create a new profile and specify the connection parameters. You can see what it looks like in the official docs here.
As such there appears to be no way to use the Web Deploy to publish to AWS other than publishing to the file system and manually copying that across yourself.
How can I publish a ASP.NET 5 MVC 6 website directly to an EC2 AWS instace using Web Deploy now?

Looks like you need to import the publish profile until they make improvements in the next preview version:
We are working on simplifying the experience for the next version.
I haven't tried but I assume you could create the profile file yourself using the specification:
Generate a Profile XML File

Related

Visual Studios Web Setup Project

I'm trying to create an installer for an ASP.NET MVC Application. The installer will deploy the site to a user's local IIS and set up connection to database and create database and tables if it doesn't exist.
I'm using the Web Setup Project for this. So far I was able to create the installer that will deploy the site to the IIS. Now I'm looking for a way to set the connections and create database. Are there any sources or recommendations on how to do this?
I also looked at the WiX Toolset for this and couldn't really figure out how to do it. Sources for either one would help

ASP.Net Core - Applying updates to an already published Azure Web App

I published my first ASP.Net Core project as an Azure Web App using Visual Studio 2015. It has a SQL database component.
I then modified the web app locally and tried to publish again and was given an error about a database not being able to be created. It seems that publishing changes with the same settings was attempting to recreate the existing database.
I followed the publishing instructions from the official docs here:
https://docs.asp.net/en/latest/tutorials/publish-to-azure-webapp-using-vs.html
The above instructions don't include what to do when one wants to push an update to an already published web app. However I was successfully able to publish an update by going into settings in the publish window and unchecking "Apply Migration on Publish".
What do I need to do if I make changes to the database structure itself (tables/columns/etc). How can I successfully publish this? The documentation seems sparse regarding this.
Thanks for any assistance.

Can we retrieve asp.net project from azure?

I am working on a asp.net test project. I were deploy the project to windows azure. After that I add some code and the project stop working, but the project on azure is still working. Is there any way that can make me retrieve the project from azure ?
In visual studio, I can connect to windows azure and displaying the projects that I deployed to it. I can see some of the files but not all. The important files for me which is the controller files doesn't appear.
Azure isn't source control. What you would have published to azure (I'm hoping) will not be the whole code but a 'published' version of it.
Short answer would be no
When you publish a Web dev project to Azure Visual Studio compiles all the source code (.net) you have. Then the compilation results are binary files (.dll) and some other website assets like css,js and html files.
So there are no .Net source files from your project published into the website, because of that you can't get your source files again.
I strongly recommend you to check these links
Continuous deployment using GIT in Azure App Service
Using Git
in Visual Studio
spanish demo - Repositorios Git privados y
gratuitos
Besides of that you can try to use any source code repository or ALM suite, As you're using azure you can also use Visual Studio Online to host your projects for free and also be able to publish directly to azure repositories.
more info Visual Studio Online
You can not get code from this method. use FTp tool, like Core FTP, FileZilla for that.
These are steps get ftp of your web application.
Go to azure (https://portal.azure.com).
Select web app from browser all option.
Select you app from list an then click on settings option.
Then click on properties, then enable you ftp and create password for that.
FTP/Deployment User , FTP HOST Name , Password
Note: You will not get your code fils( .cs).

How to publish Asp.net Web Application from a Web Service or Windows Form App(Not from Vs editor)

I am working on a project and we need to deploy our web projects to server but these web projects are creating dynamically by end users. so we gather all files of web project in a file. finally we need to push these files to server with publish. but how can i do without VS editor's manual publish option. do u have any website or any source that example to my aim, or if you know sth about it can you help me?
You can use Visual Studio in command line mode to do the same but assuming that you probably do not have access to VS on, your next bet would be MSBuild.
See these links that tells how to use MSBuild to publish a web project:
http://blog.m.jedynak.pl/2008/03/publishing-web-application-with-msbuild.html
How do I publish a Asp.NET web application using MSBuild?

ASP.NET MVC 4 and Web API in Azure - No HTTP resource was found

Using Visual Studio 2012, I created a simple Windows Azure Project (Cloud project) for which contains a ASP.NET MVC 4 website. I didn't change anything to the template and I simply try to deploy it using Azure Website. I imported the "publishing profile" from Windows Azure Dashboard into my project and deployed (using Visual Studio).
At the very end of the deployment process I am getting the following message: "failed to open 'http://mysite.azurewebsite.net'. Exception:Class not registered". I can only click "Ok" on that dialog. Any idea why I am seeing this message?
When I look at the Output Window, I see that the deployment succedded. I go the a Web API url and I am getting "No HTTP resource was found that matches the request URI 'http://mysite.azurewebsites.net/api/values'". What puzzle me is that I can access that same url on my local environment.
What am I missing? Thanks!
I could access using my Azure website using ASP.NET Web API. If you use default MVC4 Web API template, please access "http://[yoursite].azurewebsites.net/api/Values/".
My Environment is below.
- Visual Studio 2012
- ASP.NET MVC4
You don't need to create a cloud project to use Azure Websites. You can simply create an MVC app and then use git deploy or even FTP to push the site to Azure
Make sure that you referenced the latest version of WindowsAzure related assemblies in your project.
Microsoft.WindowsAzure.Diagnostics 2.0 (and not 1.8)
Microsoft.WindowsAzure.ServiceRuntime 2.0 (and not 1.8)

Resources