Hi!
I'm getting the message "Sorry, this site hasn't been shared with you" whenadding a site collection to a content database. Here's the snippet:
SPSite newSite = contentDatabase.Sites.Add(newSiteCollectionUrl,
siteTitle,
siteDescription,
lcID,
webTemplateCode,
firstAdminLogin,
firstAdminName,
firstAdminEmail,
secondAdminLogin,
SecondAdminName,
SecondAdminEmail);
This works just fine in development environment, but in quality the message is presented. I've read and tried a lot of solutions found on Google, but I couldn't found any that seems to work. Any tips?
Thanks