I want to write implement 3rd party server for GCM (Google Cloud Messaging) for android using .Net. The official documentation gives guidelines for using it with servlet-api
If you're not keen on rewriting the whole thing, perhaps IKVM.NET will help? It is a Java virtual machine for .NET and has tools for Java-.NET interoperability as well.