Create folder in Azure App service while debugging in Visual Studio - c#

I have an ASP.NET Core Web API published on Azure App Service. When I debug this API on my local machine, I am uploading few files so the question is how can I create a directory in Azure App Service from Visual Studio while debugging it?
It is trying to connect directory in my local project.
i.e Azure App Service: example.com
Automatic path: d://abc//test//xyz.com

Related

Why is my .NET WEB API on IIS listing physical files and not my Website

I am developing a .NET (not core) WEB API.
When I run it on mode debug in Visual Studio, and try to call the GET method of my API via Browser or Postman, it works fine!
But I am trying to publish it on my local IIS.
I published it via Visual Studio on a local folder. Created a website on IIS and made it point to the local folder.
When I try to open it on Browser, it just lists the files that are in the local folder. It doesnt execute my webAPI correctly.
Any insight on that?

Visual Studio Publish profile settings for Single Page App on Azure

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:

How do I host my API 2 project externally?

I have a functioning API that I can launch from Visual Studio 2015, I can also clean and build it. It outputs a dll file with other supporting files but I don't understand how I take the build files and actually host them as an API.
How can I host my API 2 project externally?
Like most Microsoft web technologies, you'll most likely have to host them on a web server running IIS.
http://www.c-sharpcorner.com/UploadFile/2b481f/how-to-host-Asp-Net-web-api-on-iis-server/
Visual Studio has a wizard for publishing API services to IIS.
http://dotnetmentors.com/web-api/host-asp-net-web-api-in-iis-using-visual-studio-publish.aspx
If you don't have an IIS web server, you can host on the Microsoft Azure cloud platform which will provide an instance of IIS for you.
http://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/part-10

Publishing a web application remotely

i have a piece of C# code and I need to publish that so that I can get an URL which will be passed to another team for integration.
My problem is I have no access to Inetmgr due to some admin access issue.
how can I publish my web app remotely(on to my peer system )?
Using WebDeploy.
It's an IIS add-on which opens a Web service to publish a Web site remotely.
Visual Studio and TFS Build can publish sites using WebDeploy, and you can also deploy using the command-line interface.

How to get Visual Studio project to output to approot/bin

I have a Visual Studio 2012 solution for my Azure cloud service. The solution has a MVC site in one project and a windows service in another project. I would like to run the windows service at startup on the web service.
I get an error that the service is not found in approot/bin.
How do I get the Windows Service project to install itself in approot/bin when I build locally or deploy to Azure?

Categories