catch (OutOfMemoryException ex)
Severity Code Description Project File Line Suppression State
Error CS0168 The variable ‘ex’ is declared but never used
To suppress this code remove variable and simply write catch block like this-
Sitecore Live Mode allows to run the site on content database i.e. master db rather then a web database or published content. This is useful for developers who tend to test the code without publishing Sitecore items every time it is changes in dev or local machine.
Live mode can be set in 2 ways-
- Directly changing in Sitecore.config or config where Site settings are patched. Set your site database element value to master.
- Set the LiveMode.config in /App_Config/Include folder
To setup the Sitecore.config, update following-
<site name="yoursitename" databasename="master" ...></site>
To setup LiveMode.config, update following-
database attribute to master for you site.
filteritems is set to true which means that items which has publishing restrictions will be filtered out. This is recommended to be true.
enableWorkflow – set this to false if the items that are in workflow and if you want to be seen in live mode.