<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    
	<configSections>
		<section name="WebGUI" type="Gizmox.WebGUI.Common.Configuration.ConfigHandler, Gizmox.WebGUI.Common, Version=3.0.5710.0, Culture=neutral, PublicKeyToken=263fa4ef694acff6" />
		<section name="DatabaseConfig" type="System.Configuration.DictionarySectionHandler"/>
		<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
	</configSections>

	<DatabaseConfig>
		<!-- USE VENDOR="inmemory" TO SAVE DATA TO AN IN-MEMORY DATABASE -->
		<add key="vendor" value="<<|=VENDOR|>>"/>
		<add key="server" value="<<|=SERVER|>>"/>
		<add key="port" value="<<|=PORT|>>"/>
		<add key="database" value="<<|=DATABASE|>>"/>
		<add key="username" value="<<|=USERNAME|>>"/>
		<add key="password" value="<<|=PASSWORD|>>"/>
	</DatabaseConfig>

	<log4net>
		<appender name="FileAppender" type="log4net.Appender.FileAppender">
			<param name="File" value="<<|=APPLICATIONNAME|>>-log-file.txt"/>
			<param name="AppendToFile" value="true"/>
			<layout type="log4net.Layout.PatternLayout">
				<param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n"/>
			</layout>
		</appender>

		<root>
			<level value="INFO"/>
			<appender-ref ref="FileAppender"/>
		</root>
	</log4net>
	 
	<WebGUI>
	 
		<!--  WEBGUI AUTHENTICATION MANAGEMENT
			This section defines the application authentication mode.
			Example: 
				<Authentication Mode="Dialog" Type="Ifn.W2.Web.POC.Forms.Logon, Ifn.W2.Web.POC" />
			Example Help: 
				Mode:
					Dialog - Authentication is done in a popup window
				Type:
					A full type name to handle logon (This class should inherit from the LogonForm)
		-->
		<!--Authentication Mode="Main" Type="Gizmox.WebGUI.Sample.Forms.Logon, Gizmox.WebGUI.Sample" /-->
		
		
				
		
		<!--  WEBGUI APPLICATION MANAGEMENT
			This section maps pages to application forms.
			Example: 
				<Application Code="MainForm" Type="MyNameSpace.MainForm, MyAssemblyName"/>.
			Example Help: 
				The current application definition maps the full qualified class name to the 
				specifiec page code. This means that the link http://[host]/MainForm.wgx will
				be handles by the givven application form.
		-->
		<Applications>
			<Application Code="MainForm" Type="<<|=APPLICATIONNAME|>>.MainForm, <<|=APPLICATIONNAME|>>"/>
		</Applications>
		
		<!--  WEBGUI CONTROL MANAGEMENT 
			This section registers controls so that the webgui server can expose there resources.
		-->
		<Controls>
			<!-- <Control Type="Gizmox.WebGUI.Forms.Catalog.Controls.WinPanel, Gizmox.WebGUI.Forms.Catalog"/> -->
		</Controls>
		
		<!--  WEBGUI THEMES MANAGEMENT
			Selected - The currently selected scheme
		-->
		<Themes Selected="Vista">
			
			<Theme Name="Vista" Assembly="Gizmox.WebGUI.Themes.Vista" />
		</Themes>
		
		<!--  WebGUI RESOURCE MANAGEMENT
			Icons		- This maps the icon directory (Absolute\Relative path).
			Images		- This maps the images directory (Absolute\Relative path).
			Generated	- This maps the generated resources directory and is requiered for using custom controls (Absolute\Relative path).
			Data		- This maps the data directory which should contain data related files (Absolute\Relative path)  
		-->
		<Directories>
			<Directory Code="Icons"		Path="Resources\Icons" />
			<Directory Code="Images"	Path="Resources\Images" />
			<Directory Code="Generated"	Path="Resources\Generated" />
			<Directory Code="UserData"	 Path="Resources\UserData" />
		</Directories>
		
		<!-- WEBGUI STATIC RESOURCES MANAGMENT
			The mechanism should be used in a deployment scenario to boost performance. The static
			resoruces mode creates a directory named "Route" and with in it files that are accessed
			directly using the web server instead of dynamicly generated files. You should check that
			there the site can write to that directory.
		-->
		<StaticResources Mode="Off"/>
		
		<!--
			WEBGUI PRIVATE VERSION
			Adds the private version key to the caching key. This key provides a mechanism to invalidate
			both client and server caching. You should use this key when you are delpoying a theme or	
			a new custom control. The server and client caching are per site.
		-->
		<PrivateVersion Value="2"/>
		
		
		<!--
			WEBGUI PRELOADING
			Chaning the Mode to "On" enables icon preloading mechanism. This mainly prevents IE
			loading the same image multiple times.
		-->
		<IconsPreloading Mode="Off"/> 
		
	</WebGUI>

	<system.diagnostics>
		<switches>
			<!--
			Provides a mechanism for monitor an application using a debug messages viewer or
			in debug time in the output window. Remember to turn turn this feature off in 
			a deplyment scenario.
			0 - Disabled
			1 - Gives error messages
			2 - Gives errors and warnings
			3 - Gives more detailed error information
			4 - Gives verbose trace information
			-->
			<add name="VWG_TracingSwitch" value="0" />
			<!--
			Performance tracing limited to this threshold
			-->
			<add name="VWG_TracingThresholdSwitch" value="10" />
			<!--
			Disables the caching of Visual WebGui resources
			-->
			<add name="VWG_DisableCachingSwitch" value="0"/>
			<!--
			Disables client sources obscuring (Mainly for debugging and developing purposes)
			0 - Disabled
			1 - Enabled
			-->
			<add name="VWG_DisableObscuringSwitch" value="0" />
		</switches>
	</system.diagnostics>
	
  <system.web>

	<httpHandlers>
		
			<!--  WebGUI ROUTER HANDLER
				This http handler routes the requests to Modules/Icons/Images/Css/Xslt/Resoureces.
				Client events are sinked through this router as well.
			-->
			<add verb="*" path="*.wgx" type="Gizmox.WebGUI.Server.Router,Gizmox.WebGUI.Server,Version=3.0.5710.0,Culture=neutral,PublicKeyToken=3de6eb684226c24d" />
			
	</httpHandlers>
    <!--  DYNAMIC DEBUG COMPILATION
          Set compilation debug="true" to enable ASPX debugging.  Otherwise, setting this value to
          false will improve runtime performance of this application. 
          Set compilation debug="true" to insert debugging symbols (.pdb information)
          into the compiled page. Because this creates a larger file that executes
          more slowly, you should set this value to true only when debugging and to
          false at all other times. For more information, refer to the documentation about
          debugging ASP.NET files.
    -->
    <compilation 
         defaultLanguage="c#"
         debug="true"
    />

    <!--  CUSTOM ERROR MESSAGES
          Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable. 
          Add <error> tags for each of the errors you want to handle.

          "On" Always display custom (friendly) messages.
          "Off" Always display detailed ASP.NET error information.
          "RemoteOnly" Display custom (friendly) messages only to users not running 
           on the local Web server. This setting is recommended for security purposes, so 
           that you do not display application detail information to remote clients.
    -->
    <customErrors 
    mode="Off" 
    /> 

    <!--  AUTHENTICATION 
          This section sets the authentication policies of the application. Possible modes are "Windows", 
          "Forms", "Passport" and "None"

          "None" No authentication is performed. 
          "Windows" IIS performs authentication (Basic, Digest, or Integrated Windows) according to 
           its settings for the application. Anonymous access must be disabled in IIS. 
          "Forms" You provide a custom form (Web page) for users to enter their credentials, and then 
           you authenticate them in your application. A user credential token is stored in a cookie.
          "Passport" Authentication is performed via a centralized authentication service provided
           by Microsoft that offers a single logon and core profile services for member sites.
    -->
    <authentication mode="Windows" /> 

	<!--  AUTHORIZATION 
          This section sets the authorization policies of the application. You can allow or deny access
          to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous 
          (unauthenticated) users.
    -->

    <authorization>
        <allow users="*" /> <!-- Allow all users -->
            <!--  <allow     users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
                  <deny      users="[comma separated list of users]"
                             roles="[comma separated list of roles]"/>
            -->
    </authorization>

    <!--  APPLICATION-LEVEL TRACE LOGGING
          Application-level tracing enables trace log output for every page within an application. 
          Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
          trace information will be displayed at the bottom of each page.  Otherwise, you can view the 
          application trace log by browsing the "trace.axd" page from your web application
          root. 
    -->
    <trace
        enabled="false"
        requestLimit="10"
        pageOutput="false"
        traceMode="SortByTime"
		localOnly="true"
    />

    <!--  SESSION STATE SETTINGS
          By default ASP.NET uses cookies to identify which requests belong to a particular session. 
          If cookies are not available, a session can be tracked by adding a session identifier to the URL. 
          To disable cookies, set sessionState cookieless="true".
    -->
    <sessionState 
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
            cookieless="false" 
            timeout="20" 
    />

    <!--  GLOBALIZATION
          This section sets the globalization settings of the application. 
    -->
    <globalization 
            requestEncoding="utf-8" 
            responseEncoding="utf-8" 
   />
	  
	  
   
 </system.web>

</configuration>
