Server Error in '/' Application.

C:\inetpub\wwwroot\TglSites\Haftaseman\file\News\

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.FileNotFoundException: C:\inetpub\wwwroot\TglSites\Haftaseman\file\News\

Source Error:


Line 887:        public static void WatermarkImageByDefault(string srcPath, string destPath)
Line 888:        {
Line 889:            Bitmap bimage = (Bitmap)Bitmap.FromFile(srcPath);
Line 890:            if (watermarkImageStatic == null)
Line 891:                watermarkImageStatic = (Bitmap)Bitmap.FromFile(SiteUtls.PathWatermarkImage.MapPath());

Source File: c:\inetpub\wwwroot\TglSites\Haftaseman\App_Code\ApiFunctions.cs    Line: 889

Stack Trace:


[FileNotFoundException: C:\inetpub\wwwroot\TglSites\Haftaseman\file\News\]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +643869
   ImagesUtils.WatermarkImageByDefault(String srcPath, String destPath) in c:\inetpub\wwwroot\TglSites\Haftaseman\App_Code\ApiFunctions.cs:889
   MyBModule.context_BeginRequest(Object sender, EventArgs e) in c:\inetpub\wwwroot\TglSites\Haftaseman\App_Code\MyBModule.cs:81
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +142
   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.4494.0