I upgraded from 1.6 to 2.5 using the steps given on the upgrade path.
Now, when I click on a post link, I get a null reference exception:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 130: {
Line 131: var settings = ExtensionManager.GetSettings("Recaptcha");
Line 132: return Convert.ToInt32(settings.GetSingleValue("MaxLogEntries"));
Line 133: }
Line 134: }
Source File: c:\CloudSites\901860\yapb.net\webroot\App_Code\Extensions\Recaptcha\RecaptchaControl.cs Line: 132
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
App_Code.Controls.RecaptchaControl.get_MaxLogEntries() in c:\CloudSites\901860\yapb.net\webroot\App_Code\Extensions\Recaptcha\RecaptchaControl.cs:132
App_Code.Controls.RecaptchaControl.get_RecaptchaLoggingEnabled() in c:\CloudSites\901860\yapb.net\webroot\App_Code\Extensions\Recaptcha\RecaptchaControl.cs:156
App_Code.Controls.RecaptchaControl.OnUnload(EventArgs e) in c:\CloudSites\901860\yapb.net\webroot\App_Code\Extensions\Recaptcha\RecaptchaControl.cs:521
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +159
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +322
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +322
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +322
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +322
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +322
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +322
System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11426238
System.Web.UI.Page.ProcessRequest() +269
System.Web.UI.Page.ProcessRequest(HttpContext context) +167
ASP.post_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\88438ece\df3388bf\App_Web_gdrslxfj.6.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
It looks like if the value for "MaxLogEntries" isn't there, it causes this NRE.