Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
I am trying to replace the above mention method with:
var file = DotNetNuke.Services.FileSystem.FileManager.Instance.GetFile(PortalId, ViewState["DownloadFilePath"].ToString());
DotNetNuke.Services.FileSystem.FileManager.Instance.WriteFileToResponse(file, ContentDisposition.Inline);
Was using: FileSystemUtils.DownloadFile(ViewState["DownloadFilePath"].ToString());
and it was working fine.
Now I am getting :
Script control '' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl