This project is read-only.

EDNFramework异常组件 <small>点击按钮查看不同异常展现效果</small>

自定义默认 自定义带样式



<fieldset>

配置Web.Config <small>EDNFrameworkConnectionString不能更改,用来将以此消息写入DB</small>

<textarea style="width: 100%;" rows="4">//添加httpModules <httpModules> <add name="DotNetGlobalModule" type="DotNet.Framework.Core.HttpModules.DotNetGlobalModule,DotNet.Framework.Core"/> </httpModules> //添加链接字符串 <appSettings> <add key="EDNFrameworkConnectionString" value=""/> </appSettings> </textarea>

导入SQL脚本

<textarea style="width: 100%;" rows="4">CREATE TABLE [EDNF_SYS_ErrorLog]( [ID] [int] IDENTITY(1,1) NOT NULL, [OPTime] [datetime] NULL, [Url] [varchar](max) NULL, [Loginfo] [varchar](max) NULL, [StackTrace] [varchar](max) NULL, [ErrorType] [varchar](100) NULL, [Domain] [varchar](200) NULL, CONSTRAINT [PK_EDNF_SYS_ErrorLog] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO </textarea>

效果:

<textarea style="width: 100%;" rows="10"><configuration> <appSettings> <add key="EDNFrameworkConnectionString" value="Data Source=localhost;Initial Catalog=EDNFramework;User ID=xx;pwd=xx"/> </appSettings> <system.web> <compilation debug="true" targetFramework="4.0" /> <httpModules> <add name="DotNetGlobalModule" type="DotNet.Framework.Core.HttpModules.DotNetGlobalModule,DotNet.Framework.Core"/> </httpModules> </system.web> <system.webServer > <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true" > <add name="DotNetGlobalModule" type="DotNet.Framework.Core.HttpModules.DotNetGlobalModule,DotNet.Framework.Core"/> </modules> </system.webServer> </configuration> </textarea>
</fieldset>

Last edited Mar 1, 2014 at 2:54 PM by zhouzhaokun, version 3

Comments

No comments yet.