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 32:
Line 33: string pathToFiles = MyCms.Utils.GetDataDirectory(false, "files");
Line 34: string pathToFile = Path.Combine(pathToFiles, string.Format("{0}{1}", fileId, file.Extension));
Line 35:
Line 36: var fileInfo = new FileInfo(pathToFile);
[NullReferenceException: Object reference not set to an instance of an object.]
file_download.ProcessRequest(HttpContext context) in d:\Sites\medencediszkont.hu\site\controls\file-download.ashx:34
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.3535.0