简体   繁体   中英

Deploying .Net Web Application to non-windows server

My question is what is needed and what are the restrictions of deploying a .Net web application to a specific server.

Does the server need to be running windows?

Does the server need to have the .Net framework installed on it? (is this possible with non-windows servers?)

Does the server need to have IIS installed on it? (is this possible with non-windows servers?)

The reason for my question is we would like to create and package an application that could be deployed to a customer's server, however we want to be able to server customers who use windows, Linux, Unix, etc. servers.

I need to know the limitations and what workarounds are available

Does the server need to be running windows?

No

Does the server need to have the .Net framework installed on it? (is this possible with non-windows servers?)

Not necessary, you could use Mono

Does the server need to have IIS installed on it? (is this possible with non-windows servers?)

No, works with Apache too

So basically if you want to run a .NET application on non Windows server you will have to use Mono , but as @Oded pointed out in the comments section there are porting caveats - you need to make sure that you are not using windows specific tech (such as WMI and GDI+) and that your code is portable (no hard coded path separators, use of Environment.NewLine instead of hard coded line terminators), no P/Invoke and COM interop, the same restrictions apply of course to any third party assemblies you might be using, etc...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM