Server Error in '/' Application.

Nullable object must have a value.

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.InvalidOperationException: Nullable object must have a value.

Source Error:


Line 19: 
Line 20:         DataClassesDataContext db = new DataClassesDataContext();
Line 21:         Guid _euid = (Guid)(from c in db.AboutUsGalleries where c.PageName == path select c.Euid).FirstOrDefault();
Line 22: 
Line 23:         if (_euid != null)

Source File: c:\inetpub\vhosts\sofos.com.tr\httpdocs\tr\Sofos.aspx.cs    Line: 21

Stack Trace:


[InvalidOperationException: Nullable object must have a value.]
   System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) +60
   System.Nullable`1.get_Value() +28
   tr_sofos.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\sofos.com.tr\httpdocs\tr\Sofos.aspx.cs:21
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1602


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