[[PageOutline]] This page is one of the !MapGuide Community CodeSamples. Visit the CodeSamples page to view more! == Introduction == Have you ever required the ability to host the mapagent http interface outside of Apache or IIS? Maybe in a lightweight http server that can be interfaced via .net/Java/PHP? It turns out that the MapGuide API provides classes that make it possible for you to create your own mapagent http handler. The classes in question are: * MgHttpRequest * MgHttpResponse These 2 classes form the backbone of the mapagent infrastructure. The current Apache/ISAPI/CGI mapagents all use these classes to work with the respective Apache/ISAPI/CGI interfaces [https://github.com/jumpinjackie/mapagent-dotnet-sample This sample project] demonstrates how you can have your own .net mapagent http interface. The default http server used for this VS project is IIS express, but can easily be Cassini or any other lightweight .net http server that is not IIS proper. == Requirements == The project requires: * [http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-for-web Visual Studio 2012 Express for Web] * [wiki:Release/2.4/Notes MapGuide Open Source 2.4] The VS project has been set up for NuGet package restore and will auto-fetch the required MapGuide assemblies on the first build of the project