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.
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.
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
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:
Also, what version of Umbraco are you running?
Thanks, Michele
is working on a reply...