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 354:    {
Line 355:        DataRowView drv = (DataRowView)fvPersona.DataItem;
Line 356:        if (drv["HasDevice"].ToString() == "1")
Line 357:        {
Line 358:            Label lDeviceRegistration = (Label)fvPersona.FindControl("lDeviceRegistration");

Source File: e:\kunden\homepages\14\d547132842\www\wwwroot\Populace\Persona.aspx.cs    Line: 356

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Populace_Persona.fvPersona_DataBound(Object sender, EventArgs e) in e:\kunden\homepages\14\d547132842\www\wwwroot\Populace\Persona.aspx.cs:356
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +97
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +140
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   System.Web.UI.WebControls.FormView.DataBind() +4
   Populace_Persona.Bind() in e:\kunden\homepages\14\d547132842\www\wwwroot\Populace\Persona.aspx.cs:102
   Populace_Persona.Page_Load(Object sender, EventArgs e) in e:\kunden\homepages\14\d547132842\www\wwwroot\Populace\Persona.aspx.cs:93
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175