Monday, December 4, 2017

Exclude ELMAH 404 errors reporting

                                 Recently we have faced a situation that receiving lots of 404 errors for a xx\xx path not found due to vulnerabilities scan software run against our web application. Since these errors raised by vulnerabilities scan software , we no need to concern and not required to log . So we decided to stop ELMAH reporting this error.

 I have done some analysis to find the best way to exclude these types of errors from being reporting. Here is the working solution I made with simple configuration changes in the  <elmah> section of web.config as specified below

Friday, March 17, 2017

How to Disable Protected View in Microsoft Excel

You may experience this Alert message, when you work with excel files which are downloaded from internet or other sources

There are different ways to work  around this issue:

Solution #1 ( Preferred )
The simplest and most secure method to get around this issue is to simply click the Enable Editing button, on a per-document basis, when you open an Excel (or other Microsoft office) file that has been downloaded.

Solution #2 ( Not Preferred )

Alternatively, you can choose to disable the Protected View feature within Excel so that you no longer recieve the warning upon opening any Excel file that has been downloaded.

In Excel
-> go to File
-> Options
-> Trust Center
-> Trust Center Settings
- > Protected View, and then
->uncheck Enabled Protected View for files originating from the Internet.

There is also, in Trust Center Settings, a Macro Setting that you can use to Enable All Macros by default

Note:Be aware that enabling this feature allows potentially dangerous code to run.If either of these Trust Center settings are changed, you need to be very careful about the Excel files which are opened