Is it possible to run ASP.NET MVC 3 apps on Mono? - mono

I need to run some MVC 3 app on Linux running server, and it seems the only option is Mono? the site only talks about the web services but I wish to know running the whole mvc 3 app is also possible? thanks

It depends what you mean by the "whole mvc 3 app". The ASP.Net MVC3 stack has been implemented in Mono but check here and here for further details.

Related

Netlify and ASP.NET Core Web API

any one have idea: How to deploy ASP.NET Core API on https://www.netlify.com ?
I tried this https://www.youtube.com/watch?v=8NOmadyM1Ao , but it not worked for ASP.NET Core API , and I have no idea how to do that , and its documentation https://docs.netlify.com/configure-builds/file-based-configuration/#sample-file is ambiguous and its difficult to understand , pleas any one have easy way or clear way for deploying ?
It seems that it is possible but not easy. Have a look at this answer.
Publishing a .NET Core / Angular 4 Project to Netlify
Similar to creating a docker container for your application, you have to specify a set of steps to build your app including downloading the dotnet core SDK.

SignalR .net core client in .NET framework 4 apllication

I have 2 applications:
NetCore 2.2 web-application
.Net Framework 4 web-application (owin, nancy-framework). For some reasons I cant upgrade target net framework version in this
application.
There is a requirement to provide two-way connection. In other words, I want to send commands from 1st app to 2nd app.
More about the situation:
With current network organization I can make request from 2-app to 1-app, it works successfully.
But I can't make request from 1-app to 2-app (host of 2nd app is not pingable from 1st app). I was hoping to solve the problem with SignalR library, but it has platform-depend limitations (signalR Core client library in old applications, Microsoft.AspNetCore.SignalR.Client package).
How can i solve this problem? Maybe I have some alternatives?

How to enable trace.axd in ASP.NET core?

Our app is based on ASP.NET Core 2.0. It works fine in development environment but we see an oauth error when published to production.
All the documentation on asp.net core seems to point to using ILoggingxxx interfaces. The examples I found typically call logging.AddConsole() method so that the log lines can be viewed in VIsual Studio debug window. I am wondering if the good old trace.axd is still available under asp.net core. If so, I would appreciate the steps to enable tracing. Regards.
trace.axd is exclusive to applications based on .NET Framework and ASP.NET 4.x. It is not available in ASP.NET Core applications at all.

Why should I choose ASP.NET Core with .Net core? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Now, I see there are two option when we create ASP.net core web application.
ASP.Net core Web Application with .Net Core
ASP.NET Core Web Application with .Net Framework
What I understand is the first one enables us to run it on any environment linux, mac, windows without having .net preinstalled.
For sure, I'm going to run my WebAPI only on Windows environment. In that case, which one I should choose? ASP.Net core Web Application with .Net Core or ASP.Net core Web Application with .Net Framework?
What is the benefit in choosing ASP.Net core Web Application with .Net Core when I'm planning to run only in Windows? I need to create new WebAPI. Dependencies is not an issue, this is going to be very simple basi web api, so i believe i can do in either of them without having any dependencies on some old component which is built on .Framework 4.6.*
Also, what is the difference between ASP.NET Core Web Application with .Net Framework and ASP.NET Web Application with .Net Framework?
There are a few advantages when using .NET Core:
Smaller apps because you include only the packages that you need
Smaller attack area because of #1: you include only what your app actually uses
Easier deployment if you go the self-contained app route
(probably) Better support and upgradability long term
Possibility of moving to Linux hosting in the future
The biggest disadvantage is that some NuGet packages might not work (yet) on .NET Core. Based on what your app uses, that might be the ultimate decision factor.
Your app can target both until you have a package dependency that runs only on full .net framework. For exemple: NHibernate. Then, you need to target only the full .net framework.
ASP.Net Web Application (.NET Framework) is to create projects in the old format (For exemple: WebForms)
Asp.Net Core Web Applications is to create projects in the new format. Then you can target core or full .net framework
You can find more info here.

Hosting for MVC4 projects

I tried searching for a hosting company that would support MVC4 but I couldn't find any - I would like to deploy my MVC4 application online but I do not know a hosting company with good prices.
Could you give me a list?
Bin-deployed MVC 4 apps should run on any hoster that supports MVC 3.
As #marcind suggested, your app will run on any hosting company which supports .NET Framework 4 and integrated mode for application pool. You just need to include the necessary dlls inside the bin folder under root directory.
You also has a way to deploy and run your app on classic mode but you need a little bit more setup. See this post:
Running ASP.NET MVC Under IIS 6.0 and IIS 7.0 Classic Mode : Solution to Routing Problem
As for your request on hosting company suggestion, here is not a place to ask recommendations on buying products or services.
I have deployed Mvc 3 based website by using below tutorial on Mochahost.
Do the Same For MVC 4.(Note : Don't Forget to include necessary dlls).
http://www.mochasupport.com/kayako/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=568