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 37:         <div class="col-md-12 col-sm-12 col-xs-12 col_2_c CollectionHdr pull-right animatedParent">
Line 38:             <div style="display: inline-block">
Line 39:                 <h1 class="wow animated fadeIn delay1"><asp:Label ID="Label1" runat="server" Text='<%# GetTitle() %>'></asp:Label></h1>
Line 40:                 <div class="subt1 wow animated fadeIn delay2"><a href="Archive.aspx">Back</a></div>
Line 41:                 <div class="subt1 subt2 wow animated fadeIn delay3"><a id="lookBtn" runat="server" href='<%#"../images/Archive/Large/"+GetFirst()%>'>Look</a></div>

Source File: c:\inetpub\vhosts\rezanadimi.com\httpdocs\Pages\ArchiveLook.aspx    Line: 39

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Nadimi.View.Pages.ArchiveLook.GetTitle() in D:\websiteProj\NadimiReza\NadimiSite\Nadimi\View\Pages\ArchiveLook.aspx.cs:32
   ASP.pages_archivelook_aspx.__DataBindingLabel1(Object sender, EventArgs e) in c:\inetpub\vhosts\rezanadimi.com\httpdocs\Pages\ArchiveLook.aspx:39
   System.Web.UI.Control.OnDataBinding(EventArgs e) +131
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +169
   Nadimi.View.Pages.ArchiveLook.Page_Load(Object sender, EventArgs e) in D:\websiteProj\NadimiReza\NadimiSite\Nadimi\View\Pages\ArchiveLook.aspx.cs:22
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


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