Server Error in '/' Application.

Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

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.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Source Error:


Line 18:     protected void Page_Load(object sender, EventArgs e)
Line 19:     {
Line 20:         Guid id = Guid.Parse(Request.QueryString["Id"].ToString());
Line 21:         project = dCon.Get<Projects>().Where(x => x.Id == id).FirstOrDefault();
Line 22:     }

Source File: d:\1stdubai\App_Data\UserControls\FirstDubai\Components\BannerProject.ascx.cs    Line: 20

Stack Trace:


[FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).]
   System.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException) +4142708
   System.Guid.TryParseGuidWithDashes(String guidString, GuidResult& result) +14518630
   System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) +233
   System.Guid.Parse(String input) +103
   C1Function.Page_Load(Object sender, EventArgs e) in d:\1stdubai\App_Data\UserControls\FirstDubai\Components\BannerProject.ascx.cs:20
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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