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 132:            con.Open();
Line 133:
Line 134:            SqlParameter parm = Database.CreateSqlParam("@toolbox_collection_id", System.Data.SqlDbType.UniqueIdentifier, Guid.Parse(collectionId));
Line 135:
Line 136:            using (SqlDataReader rdr = Database.GetSqlReader(con, sql, new List<SqlParameter>() { parm }))

Source File: \\fs3-n02\stor4wc1dfw1\663990\687995\www.legacyclassic.com\web\content\ListByCollection.aspx.cs    Line: 134

Stack Trace:


[FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).]
   System.Guid.TryParseGuidWithDashes(String guidString, GuidResult& result) +13009770
   System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) +206
   System.Guid.Parse(String input) +73
   ListByCollection.fillDescription() in \\fs3-n02\stor4wc1dfw1\663990\687995\www.legacyclassic.com\web\content\ListByCollection.aspx.cs:134
   ListByCollection.Page_Load(Object sender, EventArgs e) in \\fs3-n02\stor4wc1dfw1\663990\687995\www.legacyclassic.com\web\content\ListByCollection.aspx.cs:51
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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