Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 15:     {
Line 16:         string fileName = context.Request.QueryString["filename"].ToString();
Line 17:         string folderName = context.Request.QueryString["lang"].ToString();
Line 18:         string fileType = context.Request.QueryString["typ"].ToString();
Line 19: 

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

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   FileDownload.ProcessRequest(HttpContext context) in c:\inetpub\Kidney2021\FileDownload.ashx:17
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +789
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


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