Bug 6420 - System.Web namespace
Summary: System.Web namespace
Status: RESOLVED FEATURE
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-06 11:51 UTC by Maxim
Modified: 2012-08-08 20:46 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Maxim 2012-08-06 11:51:28 UTC
I'm planing to use Apache Thrift as compact data transposr solution. Csharp compiled file with MonoTouch target, except for src/Transport/THttpHandler.cs file - it needs for IHttpHandler interface, HttpContext type declarations. So HTTP as transport protocol is not available, I should only raw tcp connection.

Any chance to build C# version of Thrift using HttpContext and others?

A already read older response at http://stackoverflow.com/questions/5909181/system-web-functionality-in-mono-missing
Comment 1 Sebastien Pouliot 2012-08-08 20:46:10 UTC
MonoTouch does not ship with "server-side" assemblies. This includes the System.Web.dll assembly (normally used for ASP.NET).

The link from stackoverflow.com is a similar case where we copied some useful (from the client-side) code, HttpUtility, from System.Web.dll into System.Web.Services.dll (preserving source but not binrary compatibility with the desktop version of the framework).

It seems that Apache Thrift depends on this assembly for "client" code. I'm not sure how deep is this requirement but a general "trick" (used in other cases) is to copy the types you need, from Mono [1], into your own application (or library). IOW a bit like what was done for HttpUtility but in your own code (not MonoTouch).

[1] https://github.com/mono/mono/blob/master/mcs/class/System.Web/