Server Error in '/' Application.

URI formats are not supported.

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.ArgumentException: URI formats are not supported.

Source Error:


Line 60: 
Line 61:                    // string logo = "C:\\inetpub\\wwwroot\\dblearning\\httpdocs\\assessmnttree\\innovationpartner\\admin";
Line 62:                     System.Drawing.Image objImage = System.Drawing.Image.FromFile(logo);
Line 63: 
Line 64:                     decimal ActualWidth = Convert.ToDecimal(objImage.Width);

Source File: c:\Websites\innov-partners\ReadMore.aspx.cs    Line: 62

Stack Trace:


[ArgumentException: URI formats are not supported.]
   System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) +14803621
   System.IO.Path.GetFullPathInternal(String path) +135
   System.IO.Path.GetFullPath(String path) +10
   System.Drawing.IntSecurity.UnsafeGetFullPath(String fileName) +104
   System.Drawing.IntSecurity.DemandReadFileIO(String fileName) +41
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +628248
   ReadMore.fvViewNewsAndEvent_DataBound(Object sender, EventArgs e) in c:\Websites\innov-partners\ReadMore.aspx.cs:62
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +122
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +134
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +105
   System.Web.UI.Control.EnsureChildControls() +106
   System.Web.UI.Control.PreRenderRecursiveInternal() +66
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Control.PreRenderRecursiveInternal() +256
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6875


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