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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Cannot access a closed fileCannot access a closed file
Previous
 
Next
New Post
9/13/2006 10:11 AM
 

Hello !

In the upload skin module i have the following error:

Error: File Upload is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot access a closed file. ---> System.ObjectDisposedException: Cannot access a closed file. at System.IO.__Error.FileNotOpen() at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin) at System.Web.HttpRawUploadedContent.TempFile.GetBytes(Int32 offset, Int32 length, Byte[] buffer, Int32 bufferOffset) at System.Web.HttpRawUploadedContent.CopyBytes(Int32 offset, Byte[] buffer, Int32 bufferOffset, Int32 length) at System.Web.HttpInputStream.Read(Byte[] buffer, Int32 offset, Int32 count) at ICSharpCode.SharpZipLib.Zip.ZipInputStream.FillBuf(Int32 size) at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry() at DotNetNuke.UI.Skins.SkinController.UploadSkin(String RootPath, String SkinRoot, String SkinName, Stream objInputStream) at DotNetNuke.Modules.Admin.FileSystem.WebUpload.cmdUpload_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

  • The web machine is a local machine ad i have the administrator grants
  • In Web.config the <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" />
 
New Post
9/15/2006 12:09 PM
 

I have had the same problems with uploading files; especially skins.  I have gotten the same errors that you mention.  I am using ver. 3.2.2 of DNN.

If you look for my pervious post in the "Configure It" forum dated 6/15/06 (my username is tatarnl); perhaps you can get yours to work from the suggestions people gave me.

I never got mine to work.

I hope this helps you.  My subjects for my posts were "problems with File Manager".

Nadine

 

 
New Post
10/7/2006 6:10 PM
 

I had a similar problem, and after a bit of digging on here, found a couple of possible causes, but for me it turned out to be bacause I am running DNN 3.3.4 on .Net 2.0 and with this combination you need to modify your web.config to add requestLengthDiskThreshold="8192" to the httpRuntime tag as below

    <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192"/>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Cannot access a closed fileCannot access a closed file


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