Deploy .Net Core Web API on cPanel - asp.net-core-webapi

I have an Angular application, with backend in .Net Core API. I have deployed the Angular part successfully on cPanel. But I don't know how to deploy the API on cPanel, as it doesn't have any HTML file. I just want to run the .dll file. Please help me in this regard.

Related

How can I combine Angular 9 frontend with ASP.NET 4.7 API backend in one solution file?

I have made an angular 9 app separately using angular CLI. Alongside I have a ASP. NET 4.7.2 web application (WEB API to be accurate) for api calls to be made from front-end (ng). How can I merge both of them in single solution file so that I can host the full application on a Windows shared hosting server?
Two queries:
How to merge them in single solution file?
How to make final hosting package which I will upload on the plesk file maneger of my shared server?
PS: Please don't link answers for .NET CORE. I have enough of them already.
More info if needed: angular running on port 4200 currently and API at 3000.
We need to change launch path on .NET Framework project and index.html
1.Create Empty .NET Framework
2.Create Angular Project in .NET Frame work project
For example:angular-sample project. and this project output files to dist folder.
3.Set index.html in Angular Project
4.Change base tag in src/index.html
<base href="/angular-sample/dist/angular-sample/">
5.Let's Ctrl + F5.

Remotely publish ASP.NET 5 to IIS

I've got an ASP.NET 5 project that I'd like to deploy to a remote server. I don't have remote desktop access to this machine, otherwise I could follow the same method most people use when deploying to IIS.
I'm able to deploy to my IIS 8.5 just fine on the same machine as my development. First I package my project to get the approot and wwwroot directories. Then, I point IIS to my wwwroot, and all works fine.
The problem is trying to deploy remotely. Normally I would zip up my MVC 5 project and use the IIS gui to 'import' an application.
That doesn't work for my MVC 6 project. Either I'm zipping it up incorrectly or MVC 6 projects can't be deployed this way.
How do you publish a vNext application to a remote IIS server?
Edit:
Just FYI, I am using Microsoft's Web Deploy Remote Agent to deploy this to the server. http://www.asp.net/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-(remote-agent)
It works perfectly for MVC 5 apps, because developers can easily deploy web apps and IT can restrict access to the machines, but the problem is trying to deploy MVC 6 apps using this agent.
I'm not questioning how to deploy MVC 6 projects to IIS, because that's already answered Here, this is concerning how to remotely deploy to IIS.
I solved this by updating to Web Deploy 3.6. The newest version includes a specialized provider for deploying ASP.NET 5 applications.
Details on how to use it can be found with this blog post:
http://azure.microsoft.com/blog/2014/08/11/web-deploy-3-6-beta-released/
The download link is as follows:
http://www.microsoft.com/en-us/download/details.aspx?id=43717
Use the contentPathLib provider or enable contentlibextension.
Example usage:
C:\Program Files (x86)\IIS\Microsoft Web Deploy V3> msdeploy
-verb:sync -source:iisapp=C:\release\Publish\wwwroot -dest:iisapp="Default Web Site/ExampleApp",computerName=machinename -enablelink:contentlibextension
To my knowledge, there isn't a GUI supporting these deployment methods yet. I assume this is because vNext is in Beta, and is expected to have breaking changes.

How do I use the asp.net configuration tool once the website is deployed

I understand that the configuration tool can be opened via VS2010.
But how do I open this tool for my application deployed on server?
Uploading the required web.config files for all authorized folders and everything works fine.

asp.net website deploymnet on client

I have completed building a website for a client.Now i want to deploy this website on the server, So that client can access the website like a normal website. what is the best way to do it.
I am using C#,asp.net 3.5, Ms Access.
Thanks
Do you want to protect the source code as well?
YES
Install the Web Deployment Project for Visual Studio (there is on for VS2008 and other for VS2010)
Add that project to your solution
Add a Web Setup project to your solution
Tell the Web Setup project that to load the Deploy project as source
Build the Solution
You will have in the Web Setup folder a setup.exe and Website.msi ready to be installed in any client machine (client needs to have IIS)
NO
Add a Web Setup project to your solution
Tell the Web Setup project that to load the Web Site project as source
Build the Solution
You will have in the Web Setup folder a setup.exe and Website.msi ready to be installed in any client machine (client needs to have IIS)
All 3 projects, Web Site + Deploy project + Setup Project

Deploy ASP.NET Web Services

I have developed multiple WebServices in my project in ASP.NET. Now I need to deploy them as a single executable file. How can i do that?
You can't deploy a web service as an executable, AFAIK

Resources