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 ForumsGalleryGalleryBeta- gallery exception thrownBeta- gallery exception thrown
Previous
 
Next
New Post
8/16/2008 4:19 AM
 

I was testing the beta and got this exception thrown. I was logged in as admin editing the gallery, and viewed the gallery from another PC when it occured. Not sure if this is the correct place to post errors, but thought the team would like to know about it.

AssemblyVersion: 04.08.04
PortalID: 1
PortalName: Padworth, The Wharf and The Fallows Communitiy
UserID: -1
UserName:
ActiveTabID: 68
ActiveTabName: Photo Gallery
RawURL: /DESKTOPMODULES/GALLERY/Viewer.aspx?tabid=68&mid=445&path=PAWS¤titem=11&zoomindex=0&rotate=3&flipx=0&flipy=6&color=0
AbsoluteURL: /DESKTOPMODULES/GALLERY/Viewer.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a289aab6-efd1-4014-8bca-fcb6eb2b1cee
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.IO.__Error.WinIOError
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IO.IOException: The process cannot access the file 'D:\WebRoot\Domains\fake.beckett.com\wwwroot\Portals\1\Gallery\445\Padworth Floods\_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() at DotNetNuke.Modules.Gallery.Utils.PopulateAllFolders(GalleryFolder rootFolder, Int32 Depth) at DotNetNuke.Modules.Gallery.Config..ctor(Int32 ModuleId) at DotNetNuke.Modules.Gallery.Config.GetGalleryConfig(Int32 ModuleID) at DotNetNuke.Modules.Gallery.WebControls.Viewer.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.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.desktopmodules_gallery_viewer_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---

 
New Post
8/16/2008 7:50 AM
 

This is a searchengine issue from the google bot.  Its not any what is critical.  We would look if we can handle this. 

 
New Post
8/16/2008 9:58 AM
Accepted Answer 

I would guess that the _metaData.Resources XML file for that album was momentarily locked while it was being written to at the precise moment a search engine bot was trying to access the gallery. Unfortunately, I also believe this could happen to a normal user browsing the gallery while another user was editing an existing file or folder or adding a new gallery object. I have checked in a change for the next beta release which corrects the unneeded rewriting of each entry of an album's _metaData.Resources file everytime the album folder is re-populated with data following a change or cache time-out. This should greatly reduce the chance of this happening (especially with a gallery containing many files) but could still occur until the project team moves the data storage away from XML to a true database access layer (DAL).


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
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsGalleryGalleryBeta- gallery exception thrownBeta- gallery exception thrown


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