C# – Execute C# code on Centos (Linux)

ccentoslinuxmonomonodevelop

I have simple C# console application developed in Visual Studio 2008, which writes information in MySQL database. Is it possible to run the application in my hosting environment (Cent OS, with local MySQL database)? I have only control panel or ftp access to my hosting space. The database is only accessible from local (from the hosting space).

I have read something about Mono/Monodevelop, but those need to be run on the Cent OS, right? I don't have access to install this or other staffs on the hosting environment.

Best Answer

Given what you've specified about the environment and your limitations, not you can't run it.

You will need to have Mono installed to run a .NET app on Linux. If you can't install it, you're probably out of luck.

You could check with your hosting provider to see if they have other options.