Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to exclude certain type of errors form being logged? View modes: 
User avatar
Member
Member
Tomek - 4/2/2010 2:45:31 AM
   
How to exclude certain type of errors form being logged?
Problem:
I created in my CMS application a folder for ASPX pages not being controlled by CMS
I can access those pages without problem but those pages are reported:
- as invalid pages in the Web Analytics
- APPLICATION_ERROR in the Event Log

Question:
How to ignore set Kentico CMS to ignore such pages

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 4/9/2010 2:00:03 AM
   
RE:How to exclude certain type of errors form being logged?
Hello,

Could you please try to add URLs of these pages into "Excluded URLs" setting in "SiteManager -> Settings -> select your site -> URLs and SEO" section?

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Tomek - 4/18/2010 7:38:14 AM
   
RE:How to exclude certain type of errors form being logged?
Thanks.

Suppose that user unter wrong URL into his browser. Ketico will log this situation as

Event ID: 126880
Event type: Error
Event time: 2010-04-18 14:15:00
Source: Application_Error
Event code: EXCEPTION
User ID: 65
User name: public
IP address: xxx.xxx.xxx.xx

Description: Message: The file '/somepage.aspx' does not exist.

Note that it will be logged as "Application_Error" - as a result I can not filter a real hard errors from wrong url cases.

It will be great if Kentico will log such situation a bit more precise like:
Source: NO_URL

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 4/27/2010 3:28:29 AM
   
RE:How to exclude certain type of errors form being logged?
Hello,

I've passed your feature requirement to our Product Manager and he will consider implementing it into one of future versions of Kentico CMS.
In a meantime you can try to ensure this by customization of LogLastApplicationError() method in ~\App_Code\Global.asax.cs file.

Best Regards,

Martin Dobsicek