Server Error in '/' Application.

G:\PleskVhosts\gyansangrah.com\httpdocs\ArticleImages\install_java_on_the_linux_machine_four.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.FileNotFoundException: G:\PleskVhosts\gyansangrah.com\httpdocs\ArticleImages\install_java_on_the_linux_machine_four.jpg

Source Error:


Line 155:                if (reader.Name == "image")
Line 156:                {
Line 157:                    System.Drawing.Image objImage = System.Drawing.Image.FromFile(HttpContext.Current.Server.MapPath(reader["source"]));
Line 158:
Line 159:                    sbHTML.Append("<div itemprop=\"image\"");

Source File: g:\pleskvhosts\gyansangrah.com\httpdocs\App_Code\Utils\HTMLConvertor.cs    Line: 157

Stack Trace:


[FileNotFoundException: G:\PleskVhosts\gyansangrah.com\httpdocs\ArticleImages\install_java_on_the_linux_machine_four.jpg]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +643869
   HTMLConvertor.GetHTML(String fileName) in g:\pleskvhosts\gyansangrah.com\httpdocs\App_Code\Utils\HTMLConvertor.cs:157
   Javascript_ArticleContent.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\gyansangrah.com\httpdocs\ArticleContent.aspx.cs:41
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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