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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Module Upload Error: Cannot access a closed file...Module Upload Error: Cannot access a closed file...
Previous
 
Next
New Post
10/20/2006 5:32 PM
 
I am getting the following error when I try to upload a new module:
anyone have any ideas?
DNN Version 3.3.5

=====================================
Failure ExceptionSystem.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.Modules.Admin.ResourceInstaller.PaInstaller.ReadZipStream() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()
 
New Post
10/20/2006 7:16 PM
 

during an upgrade, you need to replace existing web.config with new release.config, only keeping

  • database connection string
  • both encrytion keys
  • object qualifiers

This shall solve your issue.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/21/2006 12:06 AM
 
I upgraded from 3.2.2 to 3.3.5 several weeks ago and DID use release.config transferring the items you suggested.  Mostly the site has been working ok.  I have even upgraded all the core modules without incident. 

My attempts to upgrade CATALook Netstore and XMOD resulted in the error above.  Have not tried to upgrade anything else since getting that error.

 
New Post
10/21/2006 8:02 AM
 
not sure about the reason - please contact the module developers in this case.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/21/2006 12:07 PM
 


Thanks for looking anyway.  It appears to be happening with all modules that I attempt to install, whether they are 3rd party or core.  If a core  module already exists - i.e. Uploading an upgrade over an existing module , I get a slightly different  error response. I tried to upload the links core module over my existing links module and it produced the error message below - which is typical of what I get when I try to upgrade over an existing core module. I have highlighted in red (below) the parts of the error message that I think lend a hint to the problem.

It appears that if the database has an object qualifier other than "dbo" there are problems with access to the sysobjects table.  It is my understanding that the ownership of that table is always supposed to be dbo, regardless of how the object qualifier is set for other tables.  My ISP says that they cannot change the ownership of the sysobjects table to anything other than dbo.

If this is the case, there may be a bug in this version of DNN.  I don't know what procedures or processes read/write to the sysobjects table or how to make changes.



=========

StartJob Starting Installation
StartJob Reading files
Info Loading DotNetNuke.Modules.Links.dll
Info File DotNetNuke.Modules.Links.dll read successfully
Info Loading EditLinks.ascx
Info File EditLinks.ascx read successfully
Info Loading Links.ascx
Info File Links.ascx read successfully
Info Loading Settings.ascx
Info File Settings.ascx read successfully
Info Loading EditLinks.ascx.resx
Info File EditLinks.ascx.resx read successfully
Info Loading Links.ascx.resx
Info File Links.ascx.resx read successfully
Info Loading Settings.ascx.resx
Info File Settings.ascx.resx read successfully
Info Loading DotNetNuke.Modules.Links.SqlDataProvider.dll
Info File DotNetNuke.Modules.Links.SqlDataProvider.dll read successfully
Info Loading 03.01.00.SqlDataProvider
Info File 03.01.00.SqlDataProvider read successfully
Info Loading 03.03.00.SqlDataProvider
Info File 03.03.00.SqlDataProvider read successfully
Info Loading Uninstall.SqlDataProvider
Info File Uninstall.SqlDataProvider read successfully
Info Loading DNN_Links.dnn
Info File DNN_Links.dnn read successfully
EndJob Reading files done.
 
StartJob Reading DNN file
Info DNN file is in valid 3.0 format.
Info xml loaded.
Info Loading files info
Info Found valid path (App_LocalResources) for EditLinks.ascx.resx.
Info Found valid path (App_LocalResources) for Links.ascx.resx.
Info Found valid path (App_LocalResources) for Settings.ascx.resx.
Info Loading Modules info
Info Loading Control info for 'Links' module
EndJob Dnn load finished successfully
 
StartJob Begin Sql execution
Info Executing 03.03.00.SqlDataProvider
StartJob Start Sql execution: 03.03.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Invalid object name 'empulse_dnnuser.sysobjects'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from empulse_dnnuser.sysobjects where id = object_id(N'empulse_dnnuser.[GetLink]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure empulse_dnnuser.GetLink System.Data.SqlClient.SqlException: Invalid object name 'empulse_dnnuser.sysobjects'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) if exists (select * from empulse_dnnuser.sysobjects where id = object_id(N'empulse_dnnuser.[GetLinks]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure empulse_dnnuser.GetLinks System.Data.SqlClient.SqlException: There is already an object named 'GetLink' in the database. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE procedure empulse_dnnuser.GetLink @ItemId int, @ModuleId int as select Links.ItemId, Links.ModuleId, Links.Title, Links.URL, Links.ViewOrder, Links.Description, Links.CreatedByUser, Links.CreatedDate, UrlTracking.TrackClicks, UrlTracking.NewWindow from Links left outer join UrlTracking on Links.URL = UrlTracking.Url and UrlTracking.ModuleId = @ModuleID where Links.ItemId = @ItemId and Links.ModuleId = @ModuleId System.Data.SqlClient.SqlException: There is already an object named 'GetLinks' in the database. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE procedure empulse_dnnuser.GetLinks @ModuleId int as select Links.ItemId, Links.ModuleId, Links.CreatedByUser, Links.CreatedDate, Links.Title, Links.URL, Links.ViewOrder, Links.Description, UrlTracking.TrackClicks, UrlTracking.NewWindow from Links left outer join UrlTracking on Links.URL = UrlTracking.Url and UrlTracking.ModuleId = @ModuleID where Links.ModuleId = @ModuleId order by Links.ViewOrder, Links.Title
EndJob End Sql execution: 03.03.00.SqlDataProvider file
 
EndJob Finished Sql execution
 
StartJob Creating files
Failure ExceptionSystem.UnauthorizedAccessException: Access to the path 'C:\hshome\empulseh\empulsetech.com\bin\DotNetNuke.Modules.Links.dll' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFile(String FullFileName, Byte[] Buffer) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateBinFile(PaFile File) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFiles(PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Module Upload Error: Cannot access a closed file...Module Upload Error: Cannot 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