Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Adriana Cerqueiro 38 posts 177 karma points
    Jan 17, 2019 @ 16:40
    Adriana Cerqueiro
    0

    Log error from hard-coded directory

    Hi!

    My team and I were checking something else on a new website and we found an error in the Log.

    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. at System.IO.PathHelper.GetFullPathName() at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.GetFullPathInternal(String path) at System.IO.FileInfo.Init(String fileName, Boolean checkHost) at uWebSize.BusinessLogic.DashboardController.FolderSize(String Directory, Boolean ScanSubFolders, Int64& NumberOfFiles) in C:\Users\Michele DM\Documents\Visual Studio 2015\Projects\NT2-uWebSize\uWebSize.BusinessLogic\uWebSizeController.cs:line 293 2019-01-17 10:44:56,260 [P8428/D26/T95] ERROR uWebSize.BusinessLogic.DashboardController - Error in uWebSize.BusinessLogic.DashboardController.FolderSize 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. at System.IO.PathHelper.GetFullPathName() at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.GetFullPathInternal(String path) at System.IO.FileInfo.Init(String fileName, Boolean checkHost) at uWebSize.BusinessLogic.DashboardController.FolderSize(String Directory, Boolean ScanSubFolders, Int64& NumberOfFiles) in C:\Users\Michele DM\Documents\Visual Studio 2015\Projects\NT2-uWebSize\uWebSize.BusinessLogic\uWebSizeController.cs:line 293 2019-01-17 10:44:56,263 [P8428/D26/T95] ERROR uWebSize.BusinessLogic.DashboardController - Error in uWebSize.BusinessLogic.DashboardController.FolderSize 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. at System.IO.PathHelper.GetFullPathName() at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) at System.IO.Path.GetFullPathInternal(String path) at System.IO.FileInfo.Init(String fileName, Boolean checkHost) at uWebSize.BusinessLogic.DashboardController.FolderSize(String Directory, Boolean ScanSubFolders, Int64& NumberOfFiles) in C:\Users\Michele DM\Documents\Visual Studio 2015\Projects\NT2-uWebSize\uWebSize.BusinessLogic\uWebSizeController.cs:line 293

    Specifically, it looks like it's trying to find this path: C:\Users\Michele DM\Documents\Visual Studio 2015\Projects\NT2-uWebSize\uWebSize.BusinessLogic. The log is full of this error.

    Is there anything we can do about it?

    Thank you very much!

    -Adriana

  • Michele Di Maria 34 posts 239 karma points
    Jan 18, 2019 @ 06:31
    Michele Di Maria
    0

    Hi Adriana, well... the log says that the path of the website is too long.

    Can you simplify the path of the root of the website? Like to move the website:

    • From: d:\inetpub\yyy\xxx\aaa\bbb\ccc\ddd\eee\fff\ggg\hhh\ggg
    • To: d:\inetpub\yyy\

    Also, what version of Umbraco are you running?

    Thanks, Michele

Please Sign in or register to post replies

Write your reply to:

Draft