Author: gnorton
Date: 2008-02-15 12:33:59 -0500 (Fri, 15 Feb 2008)
New Revision: 95769

Modified:
   trunk/monodevelop/main/src/tools/mdhost/ChangeLog
   trunk/monodevelop/main/src/tools/mdhost/src/mdhost.cs
Log:
In .:
2008-02-15  Geoff Norton  <[EMAIL PROTECTED]>

        * src/mdhost.cs: Disable .NET remoting security on Tcp channels.



Modified: trunk/monodevelop/main/src/tools/mdhost/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/tools/mdhost/ChangeLog   2008-02-15 17:33:04 UTC 
(rev 95768)
+++ trunk/monodevelop/main/src/tools/mdhost/ChangeLog   2008-02-15 17:33:59 UTC 
(rev 95769)
@@ -1,3 +1,7 @@
+2008-02-15  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * src/mdhost.cs: Disable .NET remoting security on Tcp channels.
+
 2007-12-13  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * src/mdhost.cs: Fix warnings.

Modified: trunk/monodevelop/main/src/tools/mdhost/src/mdhost.cs
===================================================================
--- trunk/monodevelop/main/src/tools/mdhost/src/mdhost.cs       2008-02-15 
17:33:04 UTC (rev 95768)
+++ trunk/monodevelop/main/src/tools/mdhost/src/mdhost.cs       2008-02-15 
17:33:59 UTC (rev 95769)
@@ -59,7 +59,12 @@
                                Hashtable props = new Hashtable ();
                                props ["port"] = 0;
                                props ["name"] = "__internal_tcp";
-                               ChannelServices.RegisterChannel (new TcpChannel 
(props, null, null), false);
+                               BinaryClientFormatterSinkProvider 
clientProvider = new BinaryClientFormatterSinkProvider();
+                               BinaryServerFormatterSinkProvider 
serverProvider = new BinaryServerFormatterSinkProvider();
+
+                               serverProvider.TypeFilterLevel = 
System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
+
+                               ChannelServices.RegisterChannel (new TcpChannel 
(props, clientProvider, serverProvider), false);
                        }
                        
                        string sref = Console.In.ReadLine ();

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to