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.

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 62: 	long i, ii;
Line 63: 	String Desc = "";
Line 64: 	String DescFile = Server.MapPath("Descriptions/" + Trim(ProductId) + "_" + Trim(Session["LangId"]) + ".desc");
Line 65: 	Desc = Trim(ReadFromFile(DescFile));
Line 66: 	return Desc;

Source File: c:\eshopkey\ASP.Net\Shops\nicofilimon\products.incx    Line: 64

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() +735
   System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) +1364
   System.IO.Path.GetFullPathInternal(String path) +58
   System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +38
   System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +329
   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +161
   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) +101
   System.Web.InternalSecurityPermissions.PathDiscovery(String path) +43
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +274
   System.Web.HttpServerUtility.MapPath(String path) +84
   ASP.viewshopproduct_aspx.GetProductDescription(Int64 ProductId) in c:\eshopkey\ASP.Net\Shops\nicofilimon\products.incx:64
   ASP.viewshopproduct_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\eshopkey\ASP.Net\Shops\nicofilimon\ViewShopProduct.aspx:428
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +95
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9497


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