Log error: unable to create list
I have a site template with multiple custom lists and custom pages. I have ever created new websites using a site template. After creating the network, I also created a theme and unique permissions for the internet using the C # code itself and then redirect the page to the newly generated web url. My code is running Long running. It works great all the time, but in some cases I get a "file not found" error when the page is redirected to a newly created website.
When I had a closer look, I can see that the network has been correctly created and the permissions have been set; libraries of pages and other lists, but the gallery of the main page was not found. Because of this, I could not view any of the pages in the page library and I could not even check the web theme. When I see the logs I found the error below.
09/04/2009 14: 22: 49.35 w3wp.exe (0x11B4) 0x0D0C Windows SharePoint Services General 8z1y Medium Failed to create Master Pages Gallery list on Internet http: // rootsite / subsite ", HRESULT = 0x81020012. XML List: ""
What could be causing this problem? I don't get this all the time, only sometimes I get this problem. There were no errors in the code, but no webmaster gallery was generated. Have you ever faced such a problem? How can I solve this?
Thanks in advance,
~ Yuva
The HRESULT you get is a COM error: System.Runtime.InteropServices.COMException (0x81020012): The name specified is already in use.
Make sure the gallery you are trying to create is at the web tier and not at the site or web application tier. Can you post examples of URLs when they worked and when they didn't?
a source to share