Hi,

The current web.config file does not contain references to 'reports http
handler'.

Attached a patch for correct web.config file for server setups.

Please review.

Thanks 
Johnny

Index: src/core/Log
===================================================================
--- src/core/Log	(revision 6625)
+++ src/core/Log	(working copy)
@@ -1,3 +1,12 @@
+2006-12-4  Johnny Jacob  <[EMAIL PROTECTED]>
+	
+	* WebService/mono.server.web.config : Added. web.config file for
+	server.
+	* WebService/win.server.web.config : Added. web.config file for
+	server.
+	* WebService/Makefile.am : Check for server or client installation
+	and copy the correct web.config file.
+	
 2006-11-29  B S Srinidhi  <[EMAIL PROTECTED]>
 
 	* Makefile.am: Removed obsoleted SqliteProvider from the EXTRA_DIST
Index: src/core/WebService/win.server.web.config
===================================================================
--- src/core/WebService/win.server.web.config	(revision 0)
+++ src/core/WebService/win.server.web.config	(revision 0)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+
+<!-- Enable this if you want gzip compression. Also uncomment the <mono.aspnet> section below
+	<configSections>
+	    <sectionGroup name="mono.aspnet">
+			<section name="acceptEncoding" type="Mono.Http.Configuration.AcceptEncodingSectionHandler, Mono.Http, Version=1.0.5000.0, PublicKeyToken=0738eb9f132ed756"/>
+	    </sectionGroup>
+    </configSections>
+-->
+	<system.web>
+		<customErrors mode="Off"/>
+
+    <httpRuntime
+		executionTimeout="180"
+		maxRequestLength="1048576"
+	/>
+
+<!-- take this out until we need it
+	<webServices>
+		<soapExtensionTypes>
+			<add type="DumpExtension, extensions" priority="0" group="0" />
+			<add type="EncryptExtension, extensions" priority="1" group="0" />
+		</soapExtensionTypes>
+	</webServices>
+-->
+		<authentication mode="None">
+		</authentication>
+    	
+		<httpModules>
+			<clear />
+			<add name="OutputCache" type="System.Web.Caching.OutputCacheModule"/>
+			<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
+			<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
+			<add name="AuthenticationModule" type="Simias.Security.Web.AuthenticationModule, SimiasLib"/>
+		</httpModules>
+
+		<httpHandlers>
+                      <add verb="*" path="admindata/*.log" type="Simias.Server.ReportLogHandler,Simias.Server"/>
+                       <add verb="*" path="admindata/*.csv" type="Simias.Server.ReportLogHandler,Simias.Server"/>
+		</httpHandlers>
+
+	</system.web>
+
+<!--
+    <mono.aspnet>
+        <acceptEncoding>
+			<add encoding="gzip" type="Mono.Http.GZipWriteFilter, Mono.Http, Version=1.0.5000.0, PublicKeyToken=0738eb9f132ed756" disabled="no" />
+		</acceptEncoding>
+    </mono.aspnet>
+-->
+
+    <appSettings>
+		<add key="MonoServerDefaultIndexFiles" value="index.aspx, Default.aspx, default.aspx, index.html, index.htm" />
+    </appSettings>
+	
+</configuration>
+
Index: src/core/WebService/Makefile.am
===================================================================
--- src/core/WebService/Makefile.am	(revision 6625)
+++ src/core/WebService/Makefile.am	(working copy)
@@ -9,7 +9,7 @@
 SimiasWebService_LIBS = System.dll System.Data.dll $(SYSTEM_XML) System.Web.dll System.Web.Services.dll SimiasClient.dll SimiasLib.dll
 SimiasWebService_LIBPATH = ../SimiasClient ../SimiasLib.dll $(NOVELL_SECURITY_DIR)
 WebServerDir = ../../../external/Mono.WebServer/
-EXTRA_DIST = win.web.config mono.web.config Global.asax Simias.asmx Simias.wsdl $(SimiasWebService_CSFILES) AssemblyInfo.cs.in
+EXTRA_DIST = win.server.web.config mono.server.web.config win.web.config mono.web.config Global.asax Simias.asmx Simias.wsdl $(SimiasWebService_CSFILES) AssemblyInfo.cs.in
 
 if MAKE_DOC_FILE
 DOC_FILE = $(basename $@).doc.xml
@@ -33,12 +33,22 @@
 	$(mkinstalldirs) $(DESTDIR)$(webbindir)
 	$(INSTALL_PROGRAM) Global.asax Simias.asmx $(DEBUG_FILES) $(DESTDIR)$(webdir)
 	$(INSTALL_PROGRAM) Simias.Web.dll $(DEBUG_FILES) $(DESTDIR)$(webbindir)
+
+if SIMIAS_AS_CLIENT
 if WINDOWS
 	$(INSTALL_PROGRAM) win.web.config $(DESTDIR)$(webdir)/web.config
 	$(INSTALL_PROGRAM) $(WebServerDir)Mono.WebServer.dll $(WebServerDir)Mono.Security.dll $(DESTDIR)$(webbindir)
 else
 	$(INSTALL_PROGRAM) mono.web.config $(DESTDIR)$(webdir)/web.config
 endif	
+else
+if WINDOWS
+	$(INSTALL_PROGRAM) win.server.web.config $(DESTDIR)$(webdir)/web.config
+	$(INSTALL_PROGRAM) $(WebServerDir)Mono.WebServer.dll $(WebServerDir)Mono.Security.dll $(DESTDIR)$(webbindir)
+else
+	$(INSTALL_PROGRAM) mono.server.web.config $(DESTDIR)$(webdir)/web.config
+endif	
+endif
 	
 uninstall-local:
 	cd $(DESTDIR)$(webdir); rm -f web.config Global.asax Simias.asmx $(DEBUG_FILES)
Index: src/core/WebService/mono.server.web.config
===================================================================
--- src/core/WebService/mono.server.web.config	(revision 0)
+++ src/core/WebService/mono.server.web.config	(revision 0)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+
+<!-- Enable this if you want gzip compression. Also uncomment the <mono.aspnet> section below
+	<configSections>
+	    <sectionGroup name="mono.aspnet">
+			<section name="acceptEncoding" type="Mono.Http.Configuration.AcceptEncodingSectionHandler, Mono.Http, Version=1.0.5000.0, PublicKeyToken=0738eb9f132ed756"/>
+	    </sectionGroup>
+    </configSections>
+-->
+	<system.web>
+		<customErrors mode="Off"/>
+
+    <httpRuntime
+		executionTimeout="180"
+		maxRequestLength="1048576"
+	/>
+
+<!-- take this out until we need it
+	<webServices>
+		<soapExtensionTypes>
+			<add type="DumpExtension, extensions" priority="0" group="0" />
+			<add type="EncryptExtension, extensions" priority="1" group="0" />
+		</soapExtensionTypes>
+	</webServices>
+-->
+		<authentication mode="None">
+		</authentication>
+    	
+		<httpModules>
+			<add name="AuthenticationModule" type="Simias.Security.Web.AuthenticationModule, SimiasLib"/>
+		</httpModules>
+
+		<httpHandlers>
+                      <add verb="*" path="admindata/*.log" type="Simias.Server.ReportLogHandler,Simias.Server"/>
+                       <add verb="*" path="admindata/*.csv" type="Simias.Server.ReportLogHandler,Simias.Server"/>
+		</httpHandlers>
+
+	</system.web>
+
+	<system.net>
+		<connectionManagement>
+			<add address="*" maxconnection="10" />
+		</connectionManagement>
+	</system.net>
+
+<!--
+    <mono.aspnet>
+        <acceptEncoding>
+			<add encoding="gzip" type="Mono.Http.GZipWriteFilter, Mono.Http, Version=1.0.5000.0, PublicKeyToken=0738eb9f132ed756" disabled="no" />
+		</acceptEncoding>
+    </mono.aspnet>
+-->
+
+    <appSettings>
+		<add key="MonoServerDefaultIndexFiles" value="index.aspx, Default.aspx, default.aspx, index.html, index.htm" />
+    </appSettings>
+	
+</configuration>
+
_______________________________________________
ifolder-dev mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/ifolder-dev

Reply via email to