Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...Adding file exceptionAdding file exception
Previous
 
Next
New Post
6/23/2011 9:45 AM
 
In one of my modules I am uploading files and this is what I get when uploading:

DotNetNuke.Services.Exceptions.PageLoadException: Value cannot be null. Parameter name: fileContent ---> System.ArgumentNullException: Value cannot be null. Parameter name: fileContent at DotNetNuke.Common.Requires.NotNull(String argName, Object argValue) at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite, Boolean checkPermissions, String contentType) at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite)

Not much else to say ATM as I haven't dived into the issue yet. Just checking f there is something not ready yet in the beta.

Cheers,
Philipp Becker, Peppertree Solutions
 
New Post
6/23/2011 12:36 PM
 
Phillip,

Are you using the new FileManager API in your module?

I'm guessing you are still using the 5.x APIs, but they are not included in the stack trace. Can you tell us which API you are using to add the file.
 
New Post
6/23/2011 1:40 PM
 
DotNetNuke.Services.Exceptions.PageLoadException: Value cannot be null. Parameter name: fileContent ---> System.ArgumentNullException: Value cannot be null. Parameter name: fileContent at DotNetNuke.Common.Requires.NotNull(String argName, Object argValue) at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite, Boolean checkPermissions, String contentType) at DotNetNuke.Services.FileSystem.FileManager.AddFile(IFolderInfo folder, String fileName, Stream fileContent, Boolean overwrite) at DotNetNuke.Services.FileSystem.FileController.AddFile(FileInfo file) at DotNetNuke.Services.FileSystem.FileController.AddFile(Int32 PortalId, String FileName, String Extension, Int64 Size, Int32 Width, Int32 Height, String ContentType, String FolderPath, Int32 FolderID, Boolean ClearCache) at dnnWerk.Providers.FileBrowserProvider.AddFile(Int32 PortalId, Stream inStream, String fileName, String contentType, Int64 length, String folderName, Boolean closeInputStream, Boolean clearCache, Boolean synchronize) at dnnWerk.Providers.FileBrowserProvider.StoreFile(UploadedFile file, String path, String name, String[] arguments) at dnnWerk.Web.UI.RadFileExplorer.ProcessUploadedFiles() at dnnWerk.Web.UI.RadFileExplorer.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Cheers,
Philipp Becker, Peppertree Solutions
 
New Post
6/23/2011 1:59 PM
 
Philip, I'll take care of this. I'll verify the issue and create the corresponding issue in Gemini.

Regards
 
New Post
6/23/2011 2:41 PM
 
Ruben Lopez wrote:
Philip, I'll take care of this. I'll verify the issue and create the corresponding issue in Gemini.

Regards

 Please check DNN-16637 before logging any additional issue

Thx,


Ken Grierson
DotNetNuke Corporation
Test Lead
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...Adding file exceptionAdding file exception


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out