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 19:     protected void Page_Load(object sender, EventArgs e)
Line 20:     {
Line 21:         Guid mediaObjectGUID = new Guid(Request.QueryString["guid"]);
Line 22: 
Line 23:         MEDIAOBJECT mediaObject = (from mo in data.MEDIAOBJECTs

Source File: c:\inetpub\wwwroot\infinity\article_share.aspx.cs    Line: 21

Stack Trace:


[FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).]
   System.Guid.TryParseGuidWithDashes(String guidString, GuidResult& result) +856
   System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) +639
   System.Guid..ctor(String g) +143
   infinity_article_share.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\infinity\article_share.aspx.cs:21
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +117
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2854


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