WGL - SungardHE

Hi, I'm attempting to create a site collection in Sharepoint Services 2007 version 3.0 in a sharepoint application which uses Forms Authentication with a SQL Membership provider. When calling SPSiteCollection.Add(.....), I get the error "User cannot be found". What is the correct format for the ownerLogin for this method when using forms authentication Is there anything I need to do before creating the site collection I am able to create a site collection for the application using the Central Administration site. Also, my code works for applications using windows authentication. The format I'm using for the ownerLogin value when using windows authentication is domain\login. Any help would be appreciated. Thanks in advance.



Re: SharePoint - Development and Programming Creating a Site Collection using Forms Authentication

MarkAtDLC

I believe you should be using the format aspnetsqlmembershipprovider:[admin username], assuming you are using the default membership provider.




Re: SharePoint - Development and Programming Creating a Site Collection using Forms Authentication

WGL - SungardHE

I have tried aspnetsqlmembershipprovider:[admin username], [admin username] and aspnetsqlmembershipprovider\[admin username] none of which have worked.