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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryCritical errors with gallery in DNN 5.2 Critical errors with gallery in DNN 5.2
Previous
 
Next
New Post
11/30/2009 1:46 AM
 

A critical error has occurred.
The process cannot access the file 'E:\inetpub\vhosts\mysite.com\httpdocs\Portals\0\Gallery\mygallery\_metadata.resources' because it is being used by another process.

 

 

 

From Event Log:

 

System.IO.IOException: The process cannot access the file 'E:\inetpub\vhosts\mysite.com\httpdocs\Portals\0\Gallery\mygallery\_metadata.resources' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) at System.Xml.XmlDocument.Save(String filename) at DotNetNuke.Modules.Gallery.GalleryXML.SaveMetaData(String Directory, String FileName, Int32 ID, String Title, String Description, String Categories, String Author, String Location, String Client, Int32 OwnerID, DateTime CreatedDate, DateTime ApprovedDate, Double Score) at DotNetNuke.Modules.Gallery.GalleryFolder.Populate(Boolean ReSync) at DotNetNuke.Modules.Gallery.Utils.PopulateAllFolders(GalleryFolder rootFolder, Int32 Depth, Boolean ReSync) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleId, Boolean ReSync) at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Settings.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)

 

 

------------------------

I uploaded files from FTP to a folder in Portals\0\Gallery\mygallery\

It seems  to load the files OK and create thumbnails.  However, I keep getting about 20 errors in a row in the event log when I load the gallery.

It's not getting loaded by a search engine.  It's on a password-protected page.

 

 
New Post
11/30/2009 11:05 AM
 

We havn't seen that error in testing but I'm wondering if the gallery might have been already in the process of thumbnailing and building its metadata for the files which had been uploaded via FTP when you or another user with page permissions also accessed the Gallery. This would be especially likely if you had uploaded a large number of files via FTP as resizing of image files for thumbnail and preview images is very process intensive.

Does the error go away (and not return) after you recycle the application?

Would you be able to run a file-locking probe utility such as Process Explorer or Handle on the _metadata file to determine what process is locking the file?


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
11/30/2009 12:33 PM
 

Thanks William,

I'm not sure how to run those on a live site.

The error seemed to have gone away at first, but it just happened again.  It seems that it's fine if you're clicking quickly through the images...  However, if you stop on a gallery view or on a single image view (in popup) for a minute or two... then the critical errors occur when you try to hit "next"

Here are some more errors:

A critical error has occurred.
The process cannot access the file 'E:\inetpub\vhosts\mysite.com\httpdocs\Portals\0\Gallery\MyGallery\_metadata.resources' because it is being used by another process

 

AssemblyVersion: 5.2.0
PortalID: 0
PortalName: My Site
UserID: 1
UserName: smorla
ActiveTabID: 228
ActiveTabName: Gallery Page
RawURL: /Test/GalleryPage.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mysite.com/Admin/LogViewer.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 2ad38edd-a3b6-4032-b656-503283b70764
InnerException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.ControlCollection.RemoveAt
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. ---> System.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases. at System.Web.UI.ControlCollection.RemoveAt(Int32 index) at System.Web.UI.ControlCollection.Clear() at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.FindControl(String id, Int32 pathOffset) at System.Web.UI.Control.FindControl(String id) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) --- End of inner exception stack trace ---
Source:

 

ModuleId: 674
ModuleDefId: 154
FriendlyName: My Site Images
ModuleControlSource: DesktopModules/Gallery/Container.ascx
AssemblyVersion: 5.2.0
PortalID: 0
PortalName: My Site
UserID: 1
UserName: smorla
ActiveTabID: 228
ActiveTabName: Gallery Page
RawURL: /Test/GalleryPage.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mysite.com/Admin/LogViewer.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: ff0b2b53-edc8-4623-9848-a1d80280dd54
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Gallery.Container.Page_Load
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Gallery.Container.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:

 

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 5.2.0
PortalID: 0
PortalName: My Site
UserID: 1
UserName: smorla
ActiveTabID: 228
ActiveTabName: Gallery Page
RawURL: /Test/GalleryPage.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mysite.com/Admin/LogViewer.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 461c76e1-430b-4393-a851-b6634487ac81
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Containers.Visibility.Page_Load
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Containers.Visibility.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source

 

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 5.2.0
PortalID: 0
PortalName: My Site
UserID: 1
UserName: smorla
ActiveTabID: 228
ActiveTabName: Gallery Page
RawURL: /Test/GalleryPage.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mysite.com/Admin/LogViewer.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: c9dcd3d2-52af-496a-bc61-0b7b011b0a58
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Containers.ActionBase.get_ActionRoot
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Containers.ActionBase.get_ActionRoot() at DotNetNuke.UI.Containers.ActionBase.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: WEB22

 

AssemblyVersion: 5.2.0
PortalID: 0
PortalName: My Site
UserID: 1
UserName: smorla
ActiveTabID: 228
ActiveTabName: Gallery Page
RawURL: /Test/GalleryPage.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mysite.com/Admin/LogViewer.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 27f3d598-d6f1-47cd-a133-eee30dcbc96d
InnerException: The process cannot access the file 'E:\inetpub\vhosts\mysite.com\httpdocs\Portals\0\Gallery\MyGallery\_metadata.resources' because it is being used by another process.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: System.IO.IOException: The process cannot access the file 'E:\inetpub\vhosts\mysite.com\httpdocs\Portals\0\Gallery\MyGallery\_metadata.resources' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Threading.CompressedStack.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at DotNetNuke.Modules.Gallery.GalleryXML.SaveMetaData(String Directory, String FileName, Int32 ID, String Title, String Description, String Categories, String Author, String Location, String Client, Int32 OwnerID, DateTime CreatedDate, DateTime ApprovedDate, Double Score) at DotNetNuke.Modules.Gallery.GalleryFolder.Populate(Boolean ReSync) at DotNetNuke.Modules.Gallery.Utils.PopulateAllFolders(GalleryFolder rootFolder, Int32 Depth, Boolean ReSync) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleId, Boolean ReSync) at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Container.Initialize() at DotNetNuke.Modules.Gallery.Container.Page_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.UserControl.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)
Source:
Server Name: WEB22

 

 

AssemblyVersion: 5.2.0
PortalID: 0
PortalName: My Site
UserID: 1
UserName: smorla
ActiveTabID: 228
ActiveTabName: Gallery Page
RawURL: /Test/GalleryPage.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://mysite.com/Admin/LogViewer.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 921e9833-cea0-4891-903f-d9eda3a87910
InnerException: The process cannot access the file 'E:\inetpub\vhosts\mysite.com\httpdocs\Portals\0\Gallery\MyGallery\_metadata.resources' because it is being used by another process.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: System.IO.IOException: The process cannot access the file 'E:\inetpub\vhosts\mysite.com\httpdocs\Portals\0\Gallery\MyGallery\_metadata.resources' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) at System.Threading.CompressedStack.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) at System.Xml.XmlTextReaderImpl.OpenUrl() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at DotNetNuke.Modules.Gallery.GalleryXML.SaveMetaData(String Directory, String FileName, Int32 ID, String Title, String Description, String Categories, String Author, String Location, String Client, Int32 OwnerID, DateTime CreatedDate, DateTime ApprovedDate, Double Score) at DotNetNuke.Modules.Gallery.GalleryFolder.Populate(Boolean ReSync) at DotNetNuke.Modules.Gallery.Utils.PopulateAllFolders(GalleryFolder rootFolder, Int32 Depth, Boolean ReSync) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleId, Boolean ReSync) at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.Container.Initialize()
Source:

 

 
New Post
11/30/2009 12:40 PM
 

I just turned off "Auto Approve" and "Build Cache on Start"

I'm not sure if those are interfering.

When I turned off Auto Approve, my gallery was empty.

So, I manually approved the gallery items.

For now the error is not recurring...  but that  doesn't mean it won't later on today.

 
New Post
12/1/2009 6:27 PM
 

As I see you have also some other issues that are not related to the gallery module.  On your physical folder system I think I can see you are using the "PLESK" Hosting software to manage your hosting.  If I am right are you sure you have well setup your permissions into the httpdocs folder and the subfolders and files? 

As I know you can't change the permissions for the httpdocs folder and the files in there.  Have you dirrect access to the server?  If yes please check your permissions !  If you don't have permissions to the server and you can not change the permissions on your httpdocs folder you have to create a virtuall directory i.e. "Dotnetnuke" and you have to reinstall dnn into a subfolder where your virtual directory refer to.

Regards

Matthias

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryCritical errors with gallery in DNN 5.2 Critical errors with gallery in DNN 5.2


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