Server Error in '/' Application.

Unrecognized Guid format.

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: Unrecognized Guid format.

Source Error:


Line 24:             cmd.CommandText = "sp_GetMinistryProductsByCategoryNew";
Line 25:             cmd.Parameters.Add("@ministryGuid", SqlDbType.UniqueIdentifier).Value = ministryGuid;
Line 26:             cmd.Parameters.Add("@categoryGuid", SqlDbType.UniqueIdentifier).Value = new Guid(Request.QueryString["c"].ToString());
Line 27:             SqlDataAdapter da = new SqlDataAdapter(cmd);
Line 28:             DataSet ds = new DataSet();

Source File: d:\inetpub\wwwroot\FAITHNETWORK_VAULT\LOWCOUNTRY\store\category.aspx.cs    Line: 26

Stack Trace:


[FormatException: Unrecognized Guid format.]
   System.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException) +4231896
   System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) +534
   System.Guid..ctor(String g) +137
   _Default.Page_Load(Object sender, EventArgs e) in d:\inetpub\wwwroot\FAITHNETWORK_VAULT\LOWCOUNTRY\store\category.aspx.cs:26
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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