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 779:                            if (!ValidationHelper.GetBoolean(RequestStockHelper.GetItem("CMSPageNotFoundHandled"), false))
Line 780:                            {
Line 781:                                URLRewriter.PageNotFound();
Line 782:                            }
Line 783:                        }

Source File: e:\HostingSpaces\rimanetwork\rimanetwork.com\wwwroot\App_Code\Application\CMSAppBase.cs    Line: 781

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() +420
   System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) +1463
   System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) +105
   System.IO.Path.GetFullPathInternal(String path) +110
   System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +31
   System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +245
   System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +89
   System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) +63
   System.Web.InternalSecurityPermissions.PathDiscovery(String path) +32
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +149
   System.Web.HttpRequest.MapPath(VirtualPath virtualPath) +33
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +44
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +29
   System.Web.HttpServerUtility.Transfer(IHttpHandler handler, Boolean preserveForm) +53
   CMS.URLRewritingEngine.URLRewriter.RedirectToPageNotFound(SiteNameOnDemand siteName, ViewModeOnDemand viewMode, Boolean alwaysRedirect) in g:\web\cmsources\7\CMS.URLRewritingEngine\CMS\URLRewritingEngine\URLRewriter.cs:1780
   CMS.URLRewritingEngine.URLRewriter.PageNotFound(SiteNameOnDemand siteName, ViewModeOnDemand viewMode, Boolean alwaysRedirect) in g:\web\cmsources\7\CMS.URLRewritingEngine\CMS\URLRewritingEngine\URLRewriter.cs:1187
   CMS.URLRewritingEngine.URLRewriter.PageNotFound() in g:\web\cmsources\7\CMS.URLRewritingEngine\CMS\URLRewritingEngine\URLRewriter.cs:1167
   CMSAppBase.CMSEndRequest(Object sender, EventArgs e) in e:\HostingSpaces\rimanetwork\rimanetwork.com\wwwroot\App_Code\Application\CMSAppBase.cs:781
   CMS.CMSHelper.CMSApplicationModule.app_EndRequest(Object sender, EventArgs e) in g:\web\cmsources\7\CMS.CMSHelper\CMS\CMSHelper\CMSApplicationModule.cs:66
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


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