NET_2_1 is also defined whenever we define MOBILE, so they have the same effect. Silverlight was 2.1 but it's been dead for a while now, and we do not even support it.
There were several issues here:
- The IChannelDispatcherBoundListener was defined twice, in two different namespaces, and it caused code in
ChannelDispatcher.Attach not to set its associated listener's ChannelDispatcher property to the correct value.
This, in turn, caused incorrect HttpListenerManagerTable operation, where it would put the "/js" and "/jsdebug"
dispatchers in separate HttpListenerManagers, instead of in the main (base) service's one.
- After fixing the above, it turned out that SvcHttpHandler selected the manager based on the host's base address,
when it should first try to find one whose URL matches the current request exactly.
* WebHttpBehavior.cs : Set an a default DispatchOperation to throw
EndpointNotFoundException instead of raising null Invoker error.
And add error handler that converts the exception to HTTP 404.
svn path=/trunk/mcs/; revision=160040
* WebHttpBehavior.cs : set FilterPriority to make it in higher
priority than conflicting endpoints (such as mex endpoint).
svn path=/trunk/mcs/; revision=153876
* JsonQueryStringConverter.cs : add custom body name support (used.
for AJAX). Handle string value (in very LAMESPEC way).
* WebMessageFormatter.cs : add custom body name support.
Slightly changed reply serialization.
Convert deserialized values using QueryStringConverter.
* WebScriptEnablingBehavior.cs : use JsonQueryStringConverter, with
"d" wrapper name. Allow only WrappedRequest.
* JsonQueryStringConverterTest.cs : added some string deserialization
test. It just proved .NET is too lame.
svn path=/trunk/mcs/; revision=143747
* WebScriptServiceHostFactory.cs : I have to again revert the
previous change; it does fill endpoints regardless of hosting
environment (now with tests).
* WebScriptEnablingBehavior.cs : validate body style.
* WebHttpBehavior.cs : operations could miss WebGet/WebInvoke and
we should not crash by NRE because of missing of those atts.
* WebScriptServiceHostFactoryTest.cs : add tests for contract and
wrapped validity.
svn path=/trunk/mcs/; revision=143637
* WebScriptEnablingBehavior.cs : fix listen uri which used to result
in unexpected relative recalculation against the base uri.
svn path=/trunk/mcs/; revision=143546
* WebScriptEnablingBehavior.cs : basic implementation. Create custom
ChannelDispatchers for "/js" and "/jsdebug" like we do for
/wsdl (ServiceMetadataExtension). And they return Javascript
generated from ProxyGenerator in Sys.Web.Extensions.
* WebMessageEncoder.cs : handle /js and /jsdebug specially, as raw
javascript stream.
* Makefile : add -r:System.Web.Extensions.dll.
svn path=/trunk/mcs/; revision=142129