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 19: 
Line 20:         if (Session["languageGUID"] != null && tools.isValidGUID(Session["languageGUID"].ToString()))
Line 21:             _publicAdInterface.languageGUID = Session["languageGUID"].ToString();
Line 22:         else
Line 23:             _publicAdInterface.languageGUID = Settings.Language.Swedish;

Source File: d:\websites\mm\Reseller.aspx.cs    Line: 21

Stack Trace:


[FormatException: Unrecognized Guid format.]
   System.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException) +4139368
   System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) +534
   System.Guid..ctor(String g) +137
   classlib.PublicAdInterface.set_languageGUID(String value) +374
   _Reseller.Page_Load(Object sender, EventArgs e) in d:\websites\mm\Reseller.aspx.cs:21
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +11900942
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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