how to my asp.net mvc website host on linux (cntose) server or this website code convert into asp.net core
From this question, I understand that you want to migrate your present Asp.net Mvc to dotnet core App.
To do this, I am afraid you have to create a new dotnet core project and copy/paste some of your previous code in Asp.net MVC to the new dotnet core project. However, you have to do this as if you are developing a new application entirely because a lot of changes has been made in dotnet core.
let me highlight some of those changes here.
- Asp.net is no longer using the
.Net framework
for development and deployment. it now uses adotnet core SDK
. - There is no more web.config files. we now have
appsettings.json
. - dotnet core uses the latest Entity Framework versions which have now changed the Identity Framework database tables name. i.e the identity tables are no longer the same.
- Entity framework DBfirst does not include a wizard for scaffolding. you have to do it with a command.
Conclusion:
Kindly look for a quick tutorial on dotnet core and make sure you refer to the dotnet core documentation for more info.
Deploying ASP.NET Website on Linux Server
It's possible using Mono.
Please have a look on the Homepage for further details.
Running ASP.Net on a Linux based server
It depends what specific .NET technologies you're using. The Mono Project provides an Apache module (mod_mono) for running ASP.NET sites, and from what I gather it works well.
Mono doesn't support all the .NET APIs, though - notably WPF (and possibly WCF too, I can't remember) - but it does provide good support for much else of the framework.
If you're starting from scratch and particularly want to target non-Windows servers, then ensuring your project works with Mono would be a good goal to aim for. However, if you need particular APIs or language features that are not supported by Mono, then you will need to use a Windows server for deployment. It's a design-time/architectural choice that should make up front.
How to deploy ASP.NET website (version prior to ASP.NET 5) to Linux server?
The new version of ASP.NET, version 5, and more specifically the .NET Core, runs cross-platform. That's why there is a lot of information about running ASP.NET 5 (or vNext) on Linux with Kestrel, the new cross platform webserver for ASP.NET 5.
However, you can run older ASP.NET projects on Apache using, indeed, Mono. The official documentation can be found here: http://www.mono-project.com/docs/web/aspnet/#aspnet-hosting-with-apache and here: http://www.mono-project.com/docs/web/mod_mono/
Related Topics
How to Display a List of Images, from a Folder on Hard Drive, on ASP.NET Website
Openssl.Net Porting a Ruby Example to C# (From Railscasts 143 Paypal-Security)
Fixing Gridview Header While Scrolling
Using Simple Injector with Unit of Work & Repository Pattern in Windows Form
Asynchronous Controller Is Blocking Requests in ASP.NET MVC Through Jquery
JavaScript Serialization of Datetime in ASP.NET Is Not Giving a JavaScript Date Object
Setup Database (Sqlite) for Unity
How to Change The Colour of The Line Below/Border of a Textbox (Entry)
Using Xmlarrayitem Attribute Without Xmlarray on Serializable C# Class
Interop.Word Documents.Open Is Null
Multiple Insert Statements in One Connection