Server Error in '/' Application.

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 18:                 If _configuration Is Nothing Then
Line 19:                     'pokud konfigurace opravdu ještě není načtena
Line 20:                     _configuration = CType(ConfigurationManager.GetSection("mojeKomponenty"), MojeKomponentyConfigurationSection).Captcha
Line 21:                 End If
Line 22:                 'End SyncLock

Source File: D:\Sites\web_6666666666525496000040392\www\App_Code\Captcha.vb    Line: 20

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   MojeKomponenty.Captcha.get_Configuration() in D:\Sites\web_6666666666525496000040392\www\App_Code\Captcha.vb:20
   MojeKomponenty.Captcha.GenerateRandomString() in D:\Sites\web_6666666666525496000040392\www\App_Code\Captcha.vb:38
   MojeKomponenty.CaptchaImage.OnPreRender(EventArgs e) in D:\Sites\web_6666666666525496000040392\www\App_Code\CaptchaImage.vb:47
   System.Web.UI.Control.PreRenderRecursiveInternal() +90
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Control.PreRenderRecursiveInternal() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +906


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0