I have a new 7.2.1 DNN installation.
I created a new Secure Folder and uploaded a file using the file manager.
If I right click on file after upload >> select "Get Url"
and I get a message that states "An error occurred while getting the url".
I upgraded to 7.2.2 and still have the issue.
Not really certain where to go from here and would appreciate any help. I tried the same process with a folder that wasn't secure and it worked fine.
The exception in the event log states.
DotNetNuke.Services.FileSystem.FolderProviderException: The underlying system threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Common.Utilities.UrlUtils.EncryptParameter(String value, String encryptionKey)
at DotNetNuke.Common.Globals.LinkClick(String Link, Int32 TabID, Int32 ModuleID, Boolean TrackClicks, Boolean ForceDownload, Int32 PortalId, Boolean EnableUrlLanguage, String portalGuid)
at DotNetNuke.Services.FileSystem.FileLinkClickController.GetFileLinkClick(IFileInfo file)
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
--- End of inner exception stack trace ---
at DotNetNuke.Services.FileSystem.FileManager.GetUrl(IFileInfo file)
at DotNetNuke.Modules.DigitalAssets.Services.ContentServiceController.GetUrl(GetUrlRequest request)
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)