Server Error in '/' Application.

Requested value 'Download' was not found.

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.ArgumentException: Requested value 'Download' was not found.

Source Error:


Line 210:                if (string.IsNullOrEmpty(mLang) == false)
Line 211:                {
Line 212:                    General.LanguageIDdb MyStatus = (General.LanguageIDdb)Enum.Parse(typeof(General.LanguageIDdb), mLang, true);
Line 213:                    return (Int32)MyStatus;
Line 214:                }

Source File: c:\inetpub\Kidney2021\App_Code\GeneralSession.cs    Line: 212

Stack Trace:


[ArgumentException: Requested value 'Download' was not found.]
   System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) +1048
   System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) +108
   MyWeb.General.get_LanguageID() in c:\inetpub\Kidney2021\App_Code\GeneralSession.cs:212
   MyWeb.Book.BindData() in c:\inetpub\Kidney2021\Book.aspx.cs:40
   MyWeb.Book.Page_Load(Object sender, EventArgs e) in c:\inetpub\Kidney2021\Book.aspx.cs:29
   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.3930.0