Error with creating Document Library in SharePoint

I got this error while creating a document library in sharepoint.

A list, survey, discussion board, or document library with the specified title already exists in this Web site. Please choose another title.

Here is my coding.

                SPSite site = new SPSite(url);
                SPWeb oWebsite = site.OpenWeb();
                oWebsite.AllowUnsafeUpdates = true;
                Guid customListID = oWebsite.Lists.Add(docLibraryName, docLibraryName, SPListTemplateType.DocumentLibrary);
                oWebsite.AllowUnsafeUpdates = false;



forget to mention that there is no such document library with the name I am trying to add.


Use SharePoint designer and connect to that site. You may find that a folder with that name has been created which is causing the code to think that the list already exists. Delete that folder and you should be all set.

Need Your Help

tkinter canvas: text object variable font size?

python text canvas tkinter

I'm making some pretty pictures using a tkinter canvas and overlaying text on top of circles like in the following picture:

Facebook Graph not returning email

javascript facebook facebook-graph-api

UPDATE It seems that my personnal email address had not been used for years. Facebook marked it as inactive and did not return it as part of the JSON.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.