Delete this discussion (Maybe?)

May 31, 2008 at 6:12 AM
Has anyone encountered this when setting up N2 on a shared environment?  My (usually awesome) hosting company is being very silent on the matter... 

[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.Path.NormalizePathFast(String path, Boolean fullCheck) +1415   System.IO.Path.GetFullPathInternal(String path) +45   System.IO.FileInfo..ctor(String fileName) +60   System.Web.Util.HashCodeCombiner.AddExistingFile(String fileName) +76   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +273   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddDirectory(String directoryName) +325   System.Web.Util.HashCodeCombiner.AddFile(String fileName) +3555980   System.Web.Hosting.MapPathBasedVirtualPathProvider.GetFileHash(String virtualPath, IEnumerable virtualPathDependencies) +161   System.Web.Hosting.VirtualPathProvider.GetFileHash(VirtualPath virtualPath, IEnumerable virtualPathDependencies) +26   System.Web.Compilation.BuildResult.ComputeSourceDependenciesHashCode(VirtualPath virtualPath) +56   System.Web.Compilation.BuildResult.EnsureVirtualPathDependenciesHashComputed() +69   System.Web.Compilation.BuildManager.CacheBuildResultInternal(String cacheKey, BuildResult result, Int64 hashCode, DateTime utcStart) +20   System.Web.Compilation.BuildManager.CacheBuildResult(String cacheKey, BuildResult result, DateTime utcStart) +50   System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(String themeName) +925   System.Web.Compilation.ThemeDirectoryCompiler.GetThemeBuildResultType(HttpContext context, String themeName) +68   System.Web.UI.Page.InitializeThemes() +2074091   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +674

Any thoughts?  I get this when viewing any page -except- for administration pages, which sort of come up.  But even there, I'll get the hierarchy tree on the left, and the error page on the right.
Jun 1, 2008 at 12:20 PM
I strongly doubt this is anything N2 related.  Please remove this discussion
Coordinator
Jun 2, 2008 at 8:37 PM
Could you provide a stack trace? It might be possible to make it harder for users to creating that long url's.
Jun 3, 2008 at 3:10 AM
Actually, I did - it just got weirdly formatted in the editor.  As one giant horizontal line, check it out again above

Also, I discovered the App_Themes directory seems to have this weird situation where somehow the folders got recursively created.  It looks like this:

What should be:

App_Themes/Default
(with some CSS files)
is

App_Themes/Default/Edit/App_GlobalResources/App_LocalResources/da/it/nl/Css/Export/App_LocalResources/CSS/FileManagement....

and it goes on and on, these are all nested directories.  I don't know if somehow my FTP blew it or if the N2 install got confused, but i'm sure this is causing the error. 
Funny part is, It's nested so deeply though I can't delete it with my FTP client!

Coordinator
Jun 3, 2008 at 8:37 PM
Weird. It seems as if all the directories in n2 were put one under the other. Can't figure out how that came about.