Workflow Custom C# Function Error Handling Guide 1.0: Cubelogic Limited
Workflow Custom C# Function Error Handling Guide 1.0: Cubelogic Limited
www.cubelogic.com
Workflow Custom C# Function Guide
History
Disclaimer
CubeLogic does not warrant, guarantee, or make representations concerning the contents of this material. All
information is provided "AS-IS," without express or implied warranties of any kind including, without limitation, the
warranties of merchantability, fitness for a particular purpose, quality and title. CubeLogic reserves the right to change
the contents of this material and the features or functionalities of its products and services at any time without obligation
to notify anyone of such changes
Table of Contents
1.0 CubeLogic References for Error Handling ................................................................................................................ 4
2.0 Logging the Information/Error into the Windows Event Viewer............................................................................. 5
3.0 Logging the Information/Error into the Database ................................................................................................... 6
4.0 Prerequisites ............................................................................................................................................................ 6
1. CubeLogic.dll
This library provides functions to log the information/Error into Windows Event Viewer.
2. RiskCubeDataStore.dll
This library will be used to connect to the CubeDataMart to save the logging information to the SQL server
Database.
Example:
CubeLogic.Diagnostic.EventLogger.Write(oException);
Example:
RiskCube.DataStore.CubeDataMartEntities oCDM = new CubeDataMartEntities();
4.0 Prerequisites
Kindly check the below mentioned prerequisites before implementing Information/Error Handling
1) Web.Config file.
<configuration>
<configSections>
<section name="Diagnostic" type="CubeLogic.Diagnostic.Configuration, CubeLogic" requirePermission="false"
allowDefinition="Everywhere"/>
</configSections>
<Diagnostic Source="RCPortal" Log="CubeLogic Event Log" LogErrorInDB="True" LogExtendedTrace="False"/>
</configuration>