I have made a short script based on the 'Blog 4 Umbraco' that creates folders based on date/month/year. But sometimes it duplicates the folders in the umbraco treeview. Why is that? I see that others have had the same problem also. see this link. It seems to work in iis7.5/win7, but not on iis7/win2k8. Both the duplicated folders has the same ID. Where do I start?
Here is the code:
using System; using System.Collections.Generic; using System.Web;
using umbraco; using umbraco.cms.businesslogic.web; using umbraco.BusinessLogic; using umbraco.BusinessLogic.console;
namespace KS { public class DateTimeFolder : umbraco.BusinessLogic.ApplicationBase { /// <summary> /// Initializes a new instance of the <see cref="BlogDateFolder"/> class. /// </summary> public DateTimeFolder() { Document.New += new Document.NewEventHandler(Document_New); }
This is so strange. There seems to be no logic to it. Sometimes it actually displays it correct in the same solution.. One website works just perfect, and another one just gives me problems. The both use the same copy of dll's, and the same iis setup.
I am also experiencing the same problem. I have created a
document import tool which creates year and month folders which I’ve tried
running several times. The issue seems to be intermittent; sometimes it works
perfectly other times I get duplicate year and/or month folder entries. The
weird thing is that the links in the tree open up the same database document
(they point to the same document ID).
Has anybody found a solution to this problem? I was relying
on Document.MakeNew() working without problems in order to import my client’s
old website data into their new Umbraco site.
Problems with duplicate folders in folder-tree
Hi!
I have made a short script based on the 'Blog 4 Umbraco' that creates folders based on date/month/year. But sometimes it duplicates the folders in the umbraco treeview. Why is that? I see that others have had the same problem also. see this link. It seems to work in iis7.5/win7, but not on iis7/win2k8. Both the duplicated folders has the same ID. Where do I start?
Here is the code:
This is so strange. There seems to be no logic to it. Sometimes it actually displays it correct in the same solution.. One website works just perfect, and another one just gives me problems. The both use the same copy of dll's, and the same iis setup.
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:595.3pt 841.9pt; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->
I am also experiencing the same problem. I have created a document import tool which creates year and month folders which I’ve tried running several times. The issue seems to be intermittent; sometimes it works perfectly other times I get duplicate year and/or month folder entries. The weird thing is that the links in the tree open up the same database document (they point to the same document ID).
Has anybody found a solution to this problem? I was relying on Document.MakeNew() working without problems in order to import my client’s old website data into their new Umbraco site.
is working on a reply...