Hi,
I have a problem adding web part to a blog default.aspx with stapling Feature. this is my code:
try
{
SPWeb web = (SPWeb)properties.Feature.Parent;
//SPFile thePage = web.RootFolder.Files["default.aspx"];
SPLimitedWebPartManager wpm = web.GetLimitedWebPartManager("default.aspx",PersonalizationScope.Shared);
.......
but every time I try to get default.aspx it says that file does not exist. Anyone can help me on this, because all the articles about adding web parts with features while site is creating (Stapling Feature) point on this kind of solution. Is there anything special?
Thanks, Darko