Revision: 137
http://svn.sourceforge.net/nmailserver/?rev=137&view=rev
Author: tmyroadctfig
Date: 2007-02-06 03:59:57 -0800 (Tue, 06 Feb 2007)
Log Message:
-----------
Added some changes so remoting actually works now :-|
Modified Paths:
--------------
NMail/trunk/NMail.Administration.Web/Global.asax
NMail/trunk/NMail.Administration.Web/web.config
Modified: NMail/trunk/NMail.Administration.Web/Global.asax
===================================================================
--- NMail/trunk/NMail.Administration.Web/Global.asax 2007-02-05 11:27:37 UTC (rev 136)
+++ NMail/trunk/NMail.Administration.Web/Global.asax 2007-02-06 11:59:57 UTC (rev 137)
@@ -4,9 +4,8 @@
void Application_Start(object sender, EventArgs e)
{
- Hashtable properties = new Hashtable();
- properties.Add("secure", true);
- System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(new System.Runtime.Remoting.Channels.Tcp.TcpClientChannel(properties, null), false);
+ string configPath = Server.MapPath("web.config");
+ System.Runtime.Remoting.RemotingConfiguration.Configure(configPath);
}
void Application_End(object sender, EventArgs e)
Modified: NMail/trunk/NMail.Administration.Web/web.config
===================================================================
--- NMail/trunk/NMail.Administration.Web/web.config 2007-02-05 11:27:37 UTC (rev 136)
+++ NMail/trunk/NMail.Administration.Web/web.config 2007-02-06 11:59:57 UTC (rev 137)
@@ -52,6 +52,7 @@
</customErrors>
-->
</system.web>
+
<!-- Allow access to the themes without authentication so the login page is nice. -->
<location path="App_Themes">
<system.web>
@@ -70,13 +71,20 @@
</location>
<system.runtime.remoting>
- <application>
- <client>
- <wellknown
- type="NMail.Server.RemoteAdministration, NMail.Server"
- url="tcp://localhost:7877/RemoteAdministration.rem"
+ <application>
+ <client>
+ <wellknown
+ type="NMail.Server.RemoteAdministration, NMail.Server"
+ url="tcp://localhost:7877/RemoteAdministration.rem"
/>
- </client>
- </application>
- </system.runtime.remoting>
+ </client>
+ <channels>
+ <channel ref="tcp" secure="true">
+ <clientProviders>
+ <formatter ref="binary" />
+ </clientProviders>
+ </channel>
+ </channels>
+ </application>
+ </system.runtime.remoting>
</configuration>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|