Hi,
When I am trying to create a personal site i get acces denied
This is the code..
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPSite site = new SPSite("http://site.com/"))
{
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
UserProfileManager profileManager = new UserProfileManager(serviceContext,true);
UserProfile profile = profileManager.GetUserProfile(nombre);
profile.CreatePersonalSite();
}
});
Thanks,
Alfons Martinez