ASP.NET needs a Windows server?

Asked

Viewed 2,250 times

8

As usual for PHP I have always installed Debian and Apache, but I want to go deeper into web development and I intend to take a look at ASP.NET, out of curiosity I came to doubt if I will need a Windows server if I run in a production environment.

Is it necessary to have a Windows server to run this language? I’ve heard that there is a module in Apache that does this, but will have the same performance?

  • Managed to solve your problem, your question? Need help?

2 answers

13


Classic ASP.NET, the one that emerged from the beginning of . NET is now considered a legacy technology. It will still be supported, but should not receive significant updates. Nor will I mention it then. And it is not a language.

The ASP.NET MVC is a newer technology and is now coming out a new version, which is part of a collection of technologies called ASP.ET Core. It is important not to confuse with ASP.NET 4.6 which is the classic and has decreed end of line.

ASP.NET MVC depended a little on ASP.NET. In a way it depended on IIS. Actually not so much because there is ASP.NET for ASP.NET Mono which runs on Linux, therefore can use Apache. The performance is not great, but still very good. We are talking about the use of C# which is a static and compiled language, so this counts a lot.

Now there is the .NET Core (is coming out of the oven) that runs on several platforms and the ASP.NET Core has been refurbished to work well on all platforms. With this new distribution itself . Microsoft NET (not an alternative third-party implementation) now supports fully and with full support, Linux and Macos.

The main reason for the creation of . NET Core is to be able to run ASP.NET Core well on these platforms using any server technology they wish.

This application server abstraction was obtained by implementing the OWIN. Today ASP.NET can run without an external server.

Mono tends to be legacy on these platforms in most scenarios. Today you want to use with Apache (mod_mono), it is still needed. There is nothing in . NET Core that works with it. This can change. There are ways to use the new ASP.NET as self-host plus the Nginx.

In fact now should survive only the . NET Core.

6

Depends on what the technologies .NET specific you are using. The Project Mono provides an Apache module (mod_mono) to enable ASP.net applications on the three Windows, Linux and MAC platforms.

Mono does not support all Apis . NET, but supports WCF.

About the performance, I found a performance test, but he’s from 2008 and at that time . NET was 6 times faster than mono. Behold

Browser other questions tagged

You are not signed in. Login or sign up in order to post.