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 45: 
Line 46: 			//inizializzo i panel per 1 o 2 colonne
Line 47: 			CategoriaProdottoFE selCat = _dao.GetCategoriaProdottoFE(new Guid(selCatOid));
Line 48: 			if (selCat != null && selCat.Descrizione != null && !selCat.Descrizione.Equals(""))
Line 49: 			{

Source File: c:\DATA\WEBSITES\raytalk.com\ProductCatalog.aspx.cs    Line: 47

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) +4231896
   System.Guid.TryParseGuidWithDashes(String guidString, GuidResult& result) +14778018
   System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) +233
   System.Guid..ctor(String g) +137
   ProductCatalog.Page_PreRender(Object sender, EventArgs e) in c:\DATA\WEBSITES\raytalk.com\ProductCatalog.aspx.cs:47
   System.Web.UI.Control.OnPreRender(EventArgs e) +11906436
   System.Web.UI.Control.PreRenderRecursiveInternal() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


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