Bug reports
Version 3.x > Bug reports > NullReference View modes: 
User avatar
Member
Member
Geert - 9/23/2008 6:44:53 AM
   
NullReference
File App_Code\CMSDesk\CMSPage.cs

Method AddNoCacheTag:

try
{
this.Header.Controls.Add(new LiteralControl("<meta http-equiv=\"pragma\" content=\"no-cache\" />\n"));
}
catch
{
}

Header is null.
Kentico v3.1a

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/23/2008 8:13:03 AM
   
RE:NullReference
Hi,

Could you please send us more details about this? Are there any error messages? How we can reproduce the issue?


Thank you in advance.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
Geert - 9/23/2008 8:21:07 AM
   
RE:NullReference
Within visual studio, menu "debug" -> "exceptions ..."

Mark the "thrown" checkbox for the common language runtime exceptions.

You will see everything. :-)

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/24/2008 3:51:29 AM
   
RE:NullReference
Hi,

I am sorry for bothering you but we really need more details. When I ran the CMS in debug mode I have not got any exceptions. Could you please tell us on which page does this happen? Is it some particular page or on every page? What is the exact version of your CMS?

Thank you in advance.

Best Regards,
Juraj Ondrus