When I manually re-synch recursively, all seems to go well. I can add a couple of files via web host control panel and re-synch, and I see that the files get added properly.
Additionally, copied the file structure of the website and downloaded it, and then ran reports from the DNN folders/files tables, and compared folder by folder and by file count. No, it wasn't a lot of fun ... but I went through every folder and file count for each portal under the Portals directory, including _default and 0.
The only folders that do not appear in the folders table are those which have no files in them. No problem, probably by design. (A few folders that don't have any contents - including no sub-folders - do, however, appear in the folders table.) The only files that don't appear are those that end in a ".resources" extention, and that is, I would wager, by design as well ... we don't need our portal admins messing with such files.
So it looks to me like all my folders and files are correctly represented in the DNN folders and files tables, and that is a good thing. I don't see anything incorrect with paths - they are the same both in the folder table and as they look in physical directory structure.
But whenever I use the schedule to run a file synch, I get the following error message. I HAVE verified that the network process (2003) has appropriate permissions on portal root and all subfolders and files, btw. This error appears immediately upon scheduling the file synch to run - it doesn't seem to start and then fail. I schedule it and then look at history and it has already failed.
File System Synchronization failed. System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings()
at DotNetNuke.Services.FileSystem.FolderInfo.get_PhysicalPath()
at DotNetNuke.Common.Utilities.FileSystemUtils.RemoveOrphanedFolders(Int32 PortalId)
at DotNetNuke.Common.Utilities.FileSystemUtils.SynchronizeFolder(Int32 PortalId, String physicalPath, String relativePath, Boolean isRecursive, Boolean syncFiles, Boolean forceFolderSync)
at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.Synchronize()
at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.DoWork()
What might be wrong that this is happening? How can I fix it, besides doing all that I have done as described above?
Thanks -