500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

Could not find a part of the path 'E:\WWW\formulastore.sk\web\App_Images\misc\no-foto.jpg'.

Server Error in '/' Application.

Could not find a part of the path 'E:\WWW\formulastore.sk\web\App_Images\misc\no-foto.jpg'.

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.IO.DirectoryNotFoundException: Could not find a part of the path 'E:\WWW\formulastore.sk\web\App_Images\misc\no-foto.jpg'.

Source Error:


Line 28:                 Case 0, 1
Line 29:                     context.Response.ContentType = "image/jpg"
Line 30:                     context.Response.WriteFile("~/App_Images/misc/no-foto.jpg")
Line 31:                 Case Else
Line 32:                     context.Response.ContentType = "text/plain"

Source File: E:\WWW\formulastore.sk\web\App_Script\images.ashx    Line: 30

Stack Trace:


[DirectoryNotFoundException: Could not find a part of the path 'E:\WWW\formulastore.sk\web\App_Images\misc\no-foto.jpg'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +281
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1242
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +126
   System.Web.HttpResponse.WriteFile(String filename, Boolean readIntoMemory) +106
   ImageFetch.ProcessRequest(HttpContext context) in E:\WWW\formulastore.sk\web\App_Script\images.ashx:30
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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