[IronPython] Application.config

Joshua J. Pearce joshua.pearce at gmail.com
Wed Dec 19 15:51:02 CET 2007


So I just place a file called, ipy.exe.config in the directory with ipy.exe,
and that's it?

On Dec 4, 2007 8:15 PM, 闫 力昕 <yan.lixin at gmail.com> wrote:

> ipy.exe.config
>
> Here is my running very good ipy.exe.config (这里是我的ipy.exe.config 运行的很好)
>
> <?xml version="1.0"?>
> <configuration xmlns=" http://schemas.microsoft.com/.NetConfiguration/v2.0
> ">
>     <configSections>
>        <section name="log4net" type="
> log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
>
>         <section name="nhibernate" type="
> System.Configuration.NameValueSectionHandler, System,Version=1.0.5000.0,Culture=neutral,
> PublicKeyToken=b77a5c561934e089"/>
>     </configSections>
>     <nhibernate>
>         <add key="hibernate.connection.provider" value="
> NHibernate.Connection.DriverConnectionProvider"/>
>         <add key="hibernate.connection.driver_class " value="
> NHibernate.Driver.SqlClientDriver"/>
>         <!--<add key="hibernate.connection.connection_string" value="Data
> Source=10.30.1.127;Initial Catalog=Jump72;Integrated Security=SSPI;"/>-->
>         <add key="hibernate.connection.connection_string" value="Data
> Source=localhost;database=JUMPhq;uid=sa;password=q1w2e3r4t5;"/>
>         <!--<add key="hibernate.connection.connection_string "
> value="Data Source=10.30.1.159
> ;database=Developer;uid=sa;password=q1w2e3r4;"/>-->
>         <add key="hibernate.connection.isolation" value="ReadCommitted"/>
>         <add key="hibernate.dialect" value="
> NHibernate.Dialect.MsSql2000Dialect"/>
>     </nhibernate>
>
>     <connectionStrings>
>         <add name="AspNetServiceConnectionString"
> connectionString="server=localhost;database=ASPNetService;uid=sa;pwd=q1w2e3r4t5;"/>
>
>     </connectionStrings>
>     <system.web>
>         <sessionState timeout="60" mode="InProc">
>         </sessionState>
>         <!--<authorization>
>       <deny users="?"/>
>     </authorization>-->
>         <authentication mode="Forms">
>             <forms name="formsauth" loginUrl="LoginPage.aspx" path="/"
> defaultUrl="index.aspx " protection="All" timeout="60"/>
>         </authentication>
>         <httpModules>
>             <add type="Jump.Database.NHSessionModule"
> name="NHSessionModule"/>
>         </httpModules>
>     <httpRuntime maxRequestLength="10240"
>          useFullyQualifiedRedirectUrl="true"
>          executionTimeout="100"/>
>
>     <compilation debug="true">
>             <assemblies>
>                 <!--<add assembly="MySql.Data, Version=1.0.4.20163,
> Culture=neutral, PublicKeyToken=C5687FC88969C44D"/>-->
>                 <add assembly=" System.Design, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
>                 <add assembly="System.Windows.Forms, Version=2.0.0.0 ,
> Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
>                 <add assembly="System.DirectoryServices, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
>                 <add assembly="System.DirectoryServices.Protocols,
> Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
>                 <add assembly=" System.Management, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
>         </compilation>
>     <customErrors mode="RemoteOnly" defaultRedirect="
> UnderConstruction.aspx"></customErrors>
>         <webParts>
>             <personalization defaultProvider="SqlPersonalizationProvider">
>                 <providers>
>                     <add name="SqlPersonalizationProvider"
> connectionStringName="AspNetServiceConnectionString" applicationName="Jump"
> type=" System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider"/>
>                 </providers>
>             </personalization>
>         </webParts>
>         <profile defaultProvider="SqlProfileProvider">
>             <providers>
>                 <add name="SqlProfileProvider"
> connectionStringName="AspNetServiceConnectionString" applicationName="Jump"
> type="System.Web.Profile.SqlProfileProvider "/>
>             </providers>
>             <properties>
>                 <add name="HomePageColumn" type="System.Int32"
> allowAnonymous="false" defaultValue="0"/>
>             </properties>
>         </profile>
>     </system.web>
>       <log4net debug="false">
>
>     <!-- Define some output appenders -->
>     <appender name="rollingFile" type="
> log4net.Appender.RollingFileAppender,log4net" >
>
>       <param name="File" value="log.txt" />
>       <param name="AppendToFile" value="True" />
>       <param name="RollingStyle" value="Date" />
>       <param name="DatePattern" value="yyyy.MM.dd" />
>       <param name="StaticLogFileName" value="true" />
>
>       <layout type="log4net.Layout.PatternLayout ,log4net">
>         <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
>       </layout>
>     </appender>
>
>     <appender name="trace" type=" log4net.Appender.TraceAppender,
> log4net">
>       <layout type="log4net.Layout.PatternLayout,log4net">
>         <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
>       </layout>
>     </appender>
>
>     <appender name="console" type="log4net.Appender.ConsoleAppender,
> log4net">
>       <layout type="log4net.Layout.PatternLayout ,log4net">
>         <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
>       </layout>
>     </appender>
>
>
>
>     <!-- Setup the root category, add the appenders and set the default
> priority -->
>
>     <root>
>       <priority value="WARN" />
>       <appender-ref ref="console" />
>       <appender-ref ref="rollingFile" />
>     </root>
>     <logger name="Jump">
>       <level value="ALL" />
>     </logger>
>     <logger name="NHibernate">
>       <level value="Error" />
>     </logger>
>     <logger name=" NHibernate.Cache">
>       <level value="Error" />
>     </logger>
>
>     <logger name="NHibernate.Impl.BatcherImpl">
>       <level value="Error" />
>     </logger>
>
>     <logger name="NHibernate.SQL">
>       <level value="Error" />
>     </logger>
>   </log4net>
> </configuration>
>
> 这两年来慢慢习惯了光说不练.
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>


-- 
Joshua Pearce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20071219/d3de78f5/attachment.html>


More information about the Ironpython-users mailing list