Server Error in '/' Application.

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

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.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Source Error:


Line 1311:                // [/se non c'è il file ridimensiona l'immagine predefinita per il no-image]
Line 1312:            }
Line 1313:            else if (!new System.IO.FileInfo(directoryName + "\\_thumb_" + width.ToString() + "_" + height + "_" + fileName).Exists)
Line 1314:            {
Line 1315:                // [se l'anteprima del file non è stata precedentemente creata]

Source File: c:\inetpub\wwwroot\italiaricambigas\App_Code\system_global_settings.cs    Line: 1313

Stack Trace:


[PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.]
   System.IO.PathHelper.GetFullPathName() +14802095
   System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) +1624
   System.IO.Path.GetFullPathInternal(String path) +135
   System.IO.FileInfo.Init(String fileName, Boolean checkHost) +33
   gen_func.getThumb(String sourceImage, Int32 width, Int32 height, Boolean crop, String align, String valign, String watermark) in c:\inetpub\wwwroot\italiaricambigas\App_Code\system_global_settings.cs:1313
   gen_func.getThumb(String sourceImage, Int32 width, Int32 height, Boolean crop) in c:\inetpub\wwwroot\italiaricambigas\App_Code\system_global_settings.cs:1278
   ASP.prodotti_aspx.__DataBind__control145(Object sender, EventArgs e) in c:\inetpub\wwwroot\italiaricambigas\prodotti.aspx:719
   System.Web.UI.Control.OnDataBinding(EventArgs e) +98
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +174
   System.Web.UI.Control.DataBindChildren() +246
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +191
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +172
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +279
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +104
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +80
   _prodotti.getItemList(String cat_id, String lang) in c:\inetpub\wwwroot\italiaricambigas\prodotti.aspx.cs:814
   _prodotti.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\italiaricambigas\prodotti.aspx.cs:221
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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