Interview: Is it possible to host an ASP.NET web service on Tomcat?

The interviewer asked me if we use Tomcat for ASP.NET or not. Since, I have never tried or said, I never think about it. So, will someone tell me if this is possible? If so, how?

+4
source share
2 answers

You cannot host ASP.NET files in Tomcat. Well ... you could theoretically write tons of plugins, but I doubt anyone ever explored this other than theoretical exercises.

What you can do is redirect requests for ASPX files from Tomcat to IIS. Therefore, if the browser requests index.jsp, this request is processed by Tomcat. And if the browser requests default.aspx, then when forwarding Tomat to IIS and the server on the ASP.NET website. This is commonly known as hosting the ASP.NET website behind Tomcat.

But the reverse (hosting the JSP website for IIS) is much more common, as you can let IIS handle the authentication parts, which is very good. The official page for this connection is here , but there are many other sites dedicated to this topic.

+6
source

Well, never say never :) There is open source "Mono", the purpose of which is to support support for .NET applications on computers on which they do not have IIS capabilities. Please refer to this article for more details http://www.mono-project.com/Main_Page

0
source

Source: https://habr.com/ru/post/1445361/


All Articles