views:

78

answers:

3

I'm a web developer so all my experience is with ruby, python, or PHP. However, I'm gonna do a little windows programming.

I want to build a light weight web server that can handle incoming requests and pass them on to a COM port. I want to be able to distribute it as an exe that will install the server as a windows service.

What do you think would be the best language to do this in? What IDE would be best for said language?

Thanks, Seth

+2  A: 

To be honest you will probably have the most fun doing this in C#. The learning curve will be smaller and the language and most of its features are your friend. The fact that you can set up a windows service in 2 minutes is also a plus.

ChaosPandion
Thanks for the quick response -Can i set this up so the end user can just run the exe and it will install the service? I don't want the user to have to use the command line to register the service, b/c I'm pretty sure my users aren't going to have the technical ability to do that.
Seth Archer
@Seth - Bookmark this blog post. It contains a very extensive tutorial. http://www.grinn.net/blog/dev/2008/02/windows-services-in-c-part-2-adding.html
ChaosPandion
Thanks that's exactly what I need.
Seth Archer
+2  A: 

C# and Visual Studio should be fine for this. C# can be compiled/linked into a .exe, and you can make this into a service very simply.

Brian Agnew
+1  A: 

Please take a look at the source code of Cassini. It's actually the built in server over Visual Studio. It might give you some good ideas to get started with: http://blogs.msdn.com/b/dmitryr/archive/2006/03/09/548131.aspx.

Grz, Kris.

XIII