Run console application on host server
I have created a C # console application that uses a class HttpListener
on some random port. The application listens for HTTP requests and performs some mySQL database operations according to the request details.
At this point, I want to upload this application and DB to the host server. What would be the best practice for this?
- should I convert the .exe file to .aspx handling http requests on port 80? (my intuition told me that a console app would run faster than an .aspx page, but that might not be right)
- should i convert it to windows service? Is it possible? Is there any reason? If I do, can I run it on the web hosting server?
Thanks for the help!
+3
source to share