I published my ASP .NET Web API 2 project to Azure as an API app. I used Visual Studio 2013 and got this lovely screen after publishing.
But the API app is no where to be found in my Azure portal.
I looked in my Visual Studio Server Explorer and it is there.
I got the same result as yours after publishing the API app, it's just not listed when clicking Browse > API Apps. Although it says "Web, Mobile and API apps are now in one list", it obviously doesn't work as it says.
Anyway, you can alternatively find your API app in the resource group which you specified in the publishing profile:
Or, just right click the API app in Server Explorer and select "Open in Management Portal" option to open it in the portal:
Related
I want to publish my single page app to Azure. I have created the App Service, App Service Plan and downloaded the publish profile settings on my local. Now I can use FTP to publish it to Azure. But I am wondering if there is a way I can configure this in the my Visual Studio similar to what we do when publishing a .Net application (MVC or Web API) as shown below in the snapshot.
My single page application is not part of the solution. This is how the structure of my projects look like.
It has one .Net Core Web API project and one Single Page App created in Vue.js. I can publish the Web API project from the Visual Studio but not the SPA. Any help with this please?
Per my knowledge, it is impossible to publish it in Visual Studio similar to what we do when publishing a .Net application. There is no Publish... option for us to choose.
As a workaround, we can upload our SPA project to Azure web app via KuDu.
More information about KuDu, we can refer to: Using KUDU with Microsoft Azure Web Apps
We just need to drag the SPA project into KUDU under wwwroot folder as below:
I am using HiQPdf DLL to convert my HTML into PDF. It works on all server but when i deployed this to Azure ,it throws an error. Below is the error:-
"HiQPdf.HtmlToImage HTML layout error"
Thanks for your help in Advance.
Please check the HiQPdf HTML to PDF Converter for .NET FAQ regarding the Azure deployments. Below I copied the information from that page.
Basically you can use the HiQPdf library in Windows Azure Cloud Services and Virtual Machines but not in Web Sites because the Web Sites run in a restricted sandbox. Using Visual Studio you can easily transform an existing ASP.NET 4.0 or MVC application into a Web Role by adding a cloud service project to the solution containing your project. For this, open your solution, right click on the ASP.NET project and select the 'Add Windows Azure Cloud Service Project' option from menu. Right click on the added cloud service project and select the 'Package' option to produce a package and a configuration file you can deploy as an Azure Cloud Service.
Using my old computer. I used to publish web sites to windows azure (that was before the latest azure design) via Visual Studio 2013:
Right-click the project
Select Publish
Select Profile
Enter credentials
Validate connection
Publish
Now (with the latest azure design, and I am now using VS2015), with my new computer. I downloaded the profile I used to have then imported it then published it.
But then I got this error message
Then I tried to debug the error:
I used the connection string from my old published profile then pasted it in my webconfig. Upon running the application, it does not break the application instead it showed the error above.
Basically, I want to use the old profile I used to publish on windows azure. Same domain name and same database (I also want to keep the data)
What options do I have?
PS. I'm still new to windows azure. All I know is publishing website via Visual Studio
EDIT: I don't have any error locally
For the issue at hand, You can enable Diagnostics Logs and Check them to see why your site is crashing. You can even do remote debugging by attaching to the website running on the cloud.
To get the diagnostics logs follow the below steps.
Go to portal.azure.com.
Browse to your web app
Open the Settings Blade and Click on the Diagnostics Logs Settings.
Set the Diagnostics Settings as below.
After this go to the Tools by Clicking on Tools Command on the Web App Blade.
Click on Streaming Logs to see logs coming in at real time.
If you need to see the logs dumps, You can download the Publishing Profile and access the file share directly using any FTP Client like Filezilla using the FTP UserId and Pwd from the .publish file when you open it with notepad.
The other way to debug you app is to attach your visual studio directly to the Web App running on the cloud, This is very simple and powerful way to debug the issue interactively, As your error is a null ref the exception will break directly on VS and you should be able to see the cause quickly.
Great Blogs on Attaching to VS for a Web App Here.
There are multiple ways to publish your site to Azure Web App.
Using Continuous Deployment feature to deploy your bits based on your repo updates. Great Blog to learn how to setup Continuous Deployment on Azure App Service.
Publishing directly from Visual Studio which you are already familiar.Publishing Profile which you can download from the Web App Blade can be used in Web Matrix and other tools to deploy your site directly into a web app.
Downloading the Publishing Profile and directly placing the files in to the wwwroot of your website using FTP.
Glad to see developers starting into our product, hope this information helps you get started !.
so i created my Azure Mobile App (Preview) project in visual studio, so just like Azure API App (preview) you can publish your project to azure by right clicking the project and click publish and you will see Azure API App Preview then you can now publish it to azure, but not in Azure Mobile app. so anyone who know how to publish it to azure? Please assume that I already created an Azure Mobile App in the portal and i just want to update it.
Found it, I just need to select the Web App and i will see my Mobile App there. i use this reference
https://github.com/Azure/azure-content/blob/master/includes/app-service-mobile-dotnet-backend-publish-service.md
In a new solution in VS2013, I am following the instructions on migrating an ASP Web Application to an Azure Web Role.
I created a new ASP.Net Web Application project in my solution. Right-clicking on the project does not render the option Add Windows Azure Deployment Project, and am unable to locate a VS2013-related fix.
I added a new Azure Cloud Service/WebRole project to the solution, and am wondering if I can just take guts from the first Web App and move them to the Web Role (I didn't see any new name spaces in the classes I looked at)?
The solution should contain both the Azure Cloud Service/WebRole project and the ASP.Net Web Application project. Then in the Azure Cloud Service/WebRole project, right-click on the "Roles" folder >> Add >> Web Role Project in solution.