Server Error in '/' Application.

Requested value 'Kidney2015' 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 'Kidney2015' was not found.

Source Error:


Line 18:         string fileType = context.Request.QueryString["typ"].ToString();
Line 19: 
Line 20:         General.LanguageIDdb mLanguageIDdb = (General.LanguageIDdb)Enum.Parse(typeof(General.LanguageIDdb), folderName, true);
Line 21: 
Line 22:         System.IO.FileInfo file = new System.IO.FileInfo(System.Web.HttpContext.Current.Server.MapPath(fileName));

Source File: c:\inetpub\Kidney2021\FileDownload.ashx    Line: 20

Stack Trace:


[ArgumentException: Requested value 'Kidney2015' 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
   FileDownload.ProcessRequest(HttpContext context) in c:\inetpub\Kidney2021\FileDownload.ashx:20
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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