Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am having problems with the self service creation when the system account's site collection is being created automatically in a customized My Site Host.

If I go to http://mypersonalsite/default.aspx the site collection creates itself automatically but if I go to http://mypersonalsite/person.aspx not the same happens. It is not being created.

Is there any proccess that occurs in default.aspx that doesn't in person.aspx?

Any ideas? Thanks

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

I finally solved my issue with the following code in a Feature in the activate method.

SPSite site = properties.Feature.Parent as SPSite;
SPWeb web = site.RootWeb;
try
{
    using (SPLimitedWebPartManager manager = web.GetLimitedWebPartManager("person.aspx", PersonalizationScope.Shared))
    {

        ......
        ......

        manager.AddWebPart(new MySiteFirstRunExperienceWebPart() { IsVisible = false }, "Central", 1);
        manager.AddWebPart(new MySitePersonalSiteUpgradeOnNavigationWebPart() { IsVisible = false }, "Central", 2); 
        ......
        ......
    }
}

And adding this to person.aspx

<SPSWC:StringValueEx ResourceFile="spscore" LocId="MySiteHost_PageTitle" runat="server"/>

I hope it helps everyone. Thank you

share|improve this answer
add comment

If I remember correctly there are one or two hidden webparts on default.aspx that initiate the process, and also bring up the modal "let's get social"

share|improve this answer
    
I have already tried with this approach but with no success. In fact I have replicate default.aspx into person.aspx and still not working. –  Alvmad Apr 22 '13 at 9:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.