Web.config
资源名称:extblog.rar [点击查看]
上传用户:pyqt8081
上传日期:2015-05-07
资源大小:2166k
文件大小:5k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Others
- <?xml version="1.0"?>
- <!--
- 注意: 除了手动编辑此文件以外,您还可以使用
- Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
- “网站”->“Asp.Net 配置”选项。
- 设置和注释的完整列表在
- machine.config.comments 中,该文件通常位于
- WindowsMicrosoft.NetFrameworkv2.xConfig 中
- -->
- <configuration>
- <configSections>
- <!-- <section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0,Culture=neutral, PublicKeyToken=b77a5c561934e089"/>-->
- <sectionGroup name="spring">
- <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/>
- <section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core"/>
- </sectionGroup>
- <section name="databaseSettings" type="System.Configuration.NameValueSectionHandler"/>
- </configSections>
- <!--
- <appSettings/>
- <connectionStrings/>
- <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
- <session-factory>
- <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
- <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
- <property name="connection.connection_string">server=.;uid=sa;pwd=sql.easyjf.com;database=quickstart</property>
- <mapping assembly="Model"/>
- </session-factory>
- </hibernate-configuration>-->
- <!--
- <nhibernate>
- <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
- <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect"/>
- <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver"/>
- <add key="hibernate.connection.connection_string" value="server=.;uid=sa;pwd=sql.easyjf.com;database=quickstart"/>
- </nhibernate>-->
- <spring>
- <context>
- <resource uri="assembly://Vifir.Model/Vifir.Model/dao.xml"/>
- <resource uri="assembly://Vifir.Model/Vifir.Model/service.xml"/>
- <resource uri="~/bin/Web.xml"/>
- </context>
- <parsers>
- <parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data"/>
- </parsers>
- </spring>
- <databaseSettings>
- <add key="db.datasource" value="(local);Integrated Security=false"/>
- <add key="db.user" value="sa"/>
- <add key="db.password" value="sa"/>
- <add key="db.database" value="vifirblog"/>
- <add key="db.generateDdl" value="true"/>
- </databaseSettings>
- <appSettings>
- <!-- <add key="Spring.Data.NHibernate.Support.OpenSessionInViewModule.SessionFactoryObjectName" value="NHibernateSessionFactory"/>-->
- </appSettings>
- <system.web>
- <httpModules>
- <add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
- <add name="OpenSessionInView" type="Spring.Data.NHibernate.Support.OpenSessionInViewModule, Spring.Data.NHibernate12"/>
- </httpModules>
- <httpHandlers>
- <add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
- <add verb="*" path="*.asmx" type="Spring.Web.Services.WebServiceHandlerFactory, Spring.Web"/>
- <add verb="*" path="ContextMonitor.ashx" type="Spring.Web.Support.ContextMonitor, Spring.Web"/>
- </httpHandlers>
- <!--
- 设置 compilation debug="true" 将调试符号插入
- 已编译的页面中。但由于这会
- 影响性能,因此只在开发过程中将此值
- 设置为 true。
- -->
- <compilation debug="true">
- <assemblies>
- <add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
- <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
- <!--
- 通过 <authentication> 节可以配置 ASP.NET 使用的
- 安全身份验证模式,
- 以标识传入的用户。
- -->
- <authentication mode="Windows"/>
- <!--
- 如果在执行请求的过程中出现未处理的错误,
- 则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
- 开发人员通过该节可以配置
- 要显示的 html 错误页
- 以代替错误堆栈跟踪。
- <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
- <error statusCode="403" redirect="NoAccess.htm" />
- <error statusCode="404" redirect="FileNotFound.htm" />
- </customErrors>
- -->
- </system.web>
- </configuration>
English
