How to deploy my ASP.Net site to Linux? - c#

I have ASP.Net 4.6 site using MVC 6. This site is already built with MS SQL Server. But in the new version, the database is replaced with MySql
The site is running fine on my local windows machine.As Microsoft has named this version ASP.Net VNext - Open Source.
Currently, this site is deployed on windows server of Bigrock hosting provider.
Now I have another subscription with Bluehost for Linux Server.
But I have no clue how to deploy the same site on Linux server.
Can somebody guide me Step by Step to deploy the published site on Linux

Related

First project in an ASP.NET Core 3.1 application

I have successfully completed my first project in an ASP.NET Core application using Connector/NET Core to explore the possibility to run this application on any .NET Core
This is the tutorial
This project work correctly on http://localhost:62954/Tablename
Now I need publish the project on the windows server 2008 for sharing on the web this work
On the server I have installed dotnet-sdk-3.1.300-win-x64.exe
I have copied the folder and file from project local to remote server c:\inetpub\wwwroot\aspnetcore\mvccore
but if get on the browser the link http://mywebsite/aspnetcore/mvccore/views/tablename/Index.cshtml
the return is page not found
isn't copying the local file and folders on the server enough for the project to work?
I am server administrator... maybe do I have to configure IIS?
can the new configuration create problems to the existing one on IIS?
how to do resolve this?
can you help me, please?
You need IIS for that. But, since you have a .NET Core App, why wouldn't you use Docker to avoid environment problems? It's very easy to configure with Visual Studio 2019.
Activate MVC Web site on IIS 7 Windows Server 2008 R2 Enterprise SP2
https://forums.asp.net/t/2167474.aspx?First+project+in+an+ASP+NET+Core+3+1+application

Web Deploy to IIS fails. Why?

I am trying to deploy a .net core c# app to an IIS running on Windows Server 2016. I created a publish profile. I click on Validate Connection button and get the following error, that I need to install Web Deploy and that Web Management Service should be started:
I did install Web Deploy 3.6 and the Web Management Service is definitely running.
Here is my profile. The Site Name is AppPool\WebSiteName. User name is the same as I logged in on the server with.
What am I missing?
Figured out the problem. The Server entry needs to have the protocol. So http://winserver instead of just the name of the box.

Asp.net core publish apache

I am trying to publish my Asp.net core web application on an Apache server. I have purchased a domain on onlydomains.com and published my web app via ftp. The publishing is successful but the website is not working since there are some configuration to be done but i don't know which and i am not able to find any documentation.
This is what my website looks like after publishing:
Since asp.net core is cross-platform, i am sure it is possible to publish to some hosting provider such as Siteground, Godaddy, Onlydomains etc, right?
Its not a (stfu) PHP. Run your app by dotnet <patch_to_your_dll_app> and then use Apache as reverse proxy. I reccomend to read first official docs about publishing app with Apache

ASP.NET RC1 web app in IIS 8.5

I have setup as per http://docs.asp.net/en/latest/publishing/iis.html IIS to allow ASP.NET 5 apps to run
I also installed ASP.NET 5 on the machine
The HTTP Platform Handler are also installed (x64)
I created an app pool with the settings like said on the docs and set the pool to no managed code
Set the site to run the app pool i created above.
The system.webServer/handlers section in web.config is unlocked
Once I access the site, the sites loads forever and nothing appears.
In the logs, I get:
Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web.
I can start the application if I run the web.cmd in the approot directly.
It will start the Kestrel server and process properly.
What am I doing incorrectly?
Trying to search for the above error gets me no results.
Server is running IIS 8.5 - windows server 2012 R2 with all the updates done.
EDIT:
I am using ASP.NET 5 RC1
I am not using a virtual directory
I am not publishing to AZURE
The web.config in the wwwroot folder should help IIS figure out what you want to run. Maybe post that?
MVC 6 Windows Server 2012 R2 IIS 8.5 - Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'
The solution as posted here but also Problems publishing asp vnext website on IIS 8
ASP 4.5 wasn't installed, to install it go to Server Manager , Add Roles and Features, Web Server IIS / Web Server / Application Development and check ASP .NET 4.5 and .NET Extensibility 4.5

Needed help ralated to Web Server

I have installed OS Windows7 Home Basic at my development machine. After developing the ASP.NET web application, I needed to deploy. I started installing IIS on my machine, but found that in Win7 Home Basic, there is no iis manager. After searching on net, I found Cassine Web Server(CWS). I installed the CWS and it working fine as a web server.
I have a question. Is CWS is better than IIS? Is CWS is secured as IIS? Is CWS can be used as a web server at target machines?
If anyone used CWS, please tell me about your experience.
CWS is just a development web server. It has no purpose to be used as a production web server.

Categories

Resources