Knowledgebase
DotNetNuke - Error: File Manager is currently unavailable.
Posted by Sean Syed on 26 March 2013 04:21 PM

Error: File Manager is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.FileSystem.FolderProvider.Instance(String friendlyName) at DotNetNuke.Services.FileSystem.FolderMappingInfo.get_ImageUrl() at DotNetNuke.Modules.Admin.FileManager.FileManager.PreloadFolderImages() at DotNetNuke.Modules.Admin.FileManager.FileManager.InitializeTree() at DotNetNuke.Modules.Admin.FileManager.FileManager.OnLoad(EventArgs e) --- End of inner exception stack trace ---

 

SOLUTION:

  1. Open the file in a text editor DesktopModules/Admin/FileManager/FileManager.aspx.cs 
  2. Locate the function : PreloadFolderImages()
  3. and make the following highlighted changes.


private void PreloadFolderImages()
        {
            IFolderMappingController folderMappingController = FolderMappingController.Instance;
            FolderMappingInfo folderMappingInfo = null;
            string imageUrl = String.Empty;

            foreach (var folderMapping in FolderMappings)
            {
                try
                {

                folderMappingInfo = folderMappingController.GetFolderMapping(folderMapping.Key);
                imageUrl = folderMappingInfo.ImageUrl;
                DNNTree.ImageList.Add(imageUrl);
                }
                catch {}

            }
        }

(30 vote(s))
Helpful
Not helpful

Comments (1)
Edo
16 December 2013 11:15 AM
Thank you so much,
that was so useful and solved my problem!
Great Job!!
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).