Connection to the audit subsystem with the full mistake of the draft
Connection to the audit subsystem without a full regeneration project
Connection algorithm
- To regenerate the objects
- To amend
web.config
- Add the initialization of the audit
Global.asax.cs
- To connect the missing Assembly
the Mistake of objects
The mistake of the objects is necessary because the audit settings are stored in the classroom (more information in the Audit for Web applications.
Changes in the Web.config
In block Configuration
- appSettings
need to add the following lines:
<add key="AuditEnabled" value="True" />
<add key="WriteSessions" value="False" />
<add key="AuditWinServiceUrl" value="" />
<add key="DefaultDSType" value="ICSSoft.STORMNET.Business.MSSQLDataService, ICSSoft.STORMNET.Business.MSSQLDataService" />
<add key="DefaultWriteMode" value="Synchronous" />
<add key="IsAuditDatabaseLocal" value="True" />
And
<add key="AppNameForAudit" value="..." />
<add key="AuditConnectionStringName" value="..." />
… instead of putting the required values of the service names and connection strings to the database audit.
Initialize audit Global.asax.cs
In the file Global.asax.cs
you need to add:
using ICSSoft.STORMNET.Business.Audit;
// ...
protected void Application_Start(object sender, EventArgs e)
{
// Initialize audit service
AuditSetter.InitAuditService(BridgeToDS.GetDataService());
// ...
}
Necessary for the Assembly
- ICSSoft.STORMNET.Tools.dll
- ICSSoft.STORMNET.Business.dll
- ICSSoft.STORMNET.Business.Audit.dll
- Security (build objects)
- CheckingLibrary.dll
- ICSSoft.STORMNET.DataObject.dll
- LogService