Welcome to MSDN Blogs Sign in | Join | Help

Customizing MOSS 2007 My Sites within the enterprise

Hi, this is Steve Peschka from the SharePoint Rangers team again, and in this blog entry I’ll discuss customizing My Sites across an organization.  There’s a good deal of confusion out there about how best to achieve this, which is partly caused by functional differences between SharePoint Portal Server 2003 and SharePoint Server 2007.

 

Before I get started, here’s a quick primer.  My Sites in SharePoint have two sites, so to speak – a public site and private site.  The same dynamic web page is used to generate everyone’s public site.  You can see this when you go to look at an individual’s My Site, and the page you navigate to is called person.aspx.  SharePoint appends information about the user whose details you want to see onto the query string portion of the URL.  By default, this information is in the form of “accountname=domain\user”.  So, if you were going to view the details for a user with a login name of “speschka” in the “steve” domain, you would navigate to http://mySiteHost/person.aspx?accountname=steve\speschka.  Since that page is shared by all users, if a site designer makes changes to that page, then public information about all users will reflect those changes.  In this respect, MOSS 2007 works the same as SPS 2003.

 

Modifying the private My Site is where things begin to work differently.  In SPS 2003, a site administrator could go into his or her private site, edit the home page in Shared mode, and save their changes.  This would update the layout and web parts for all My Site users, so everyone’s private site would have the same layout and web parts.  In MOSS 2007, this is no longer possible – there are a number of more powerful customization tools than what SPS 2003 had, but some tasks such as customizing all private sites have unfortunately become a bit more difficult.  So, how can you customize the private My Sites in MOSS 2007?

 

First, let’s start with how NOT to customize My Sites.  As with SPS 2003, some people might think “Hey, I can modify things pretty quickly if I just go to the file system and change the template for My Sites there.”  This is absolutely the wrong approach, and it will leave your site in an unsupported state.  This means modifying any of the .aspx pages or onet.xml or any of the other out of the box templates files is off limits.

 

Instead, we’re going to take advantage of several components of the core SharePoint platform to solve this problem – features, feature site template associations (also known as “feature stapling”), master pages, and our old friend the ASP.NET web control.  Before getting into the details, here are a few definitions to make sure that we’re on the same page:

·         Feature: A feature is a package of SharePoint elements that can be activated for a specific scope (such as a site or web) and that helps users accomplish a particular goal or task.  For example, a feature may deploy a list definition, populate it with data, and add a custom web part to work with the list data.  Individually, those elements may not be particularly interesting, but when combined into a cohesive group as a feature they provide a mini-application or solution.  For more information, go to the Working with Features section of the WSS 3.0 SDK.

·         Feature site template association: Allows you to associate new features and functionality to existing templates such that when those sites are provisioned, the associated features automatically get added as well. To understand feature stapling, you need to understand that there are two features involved in the process:

o    "Staplee" feature: This feature contains the functionality that you want to add to an existing site template.

o    "Stapler" feature: This feature contains the "FeatureSiteTemplateAssociation" XML tags which bind the staplee feature to a particular site template.  Basically, it’s a feature that says “for all Personal Sites provisioned henceforth, they shall have the staplee feature.”

·         Master pages: A master page is an ASP.NET page that has the file name extension of .master and allows you to create a consistent appearance and layout for the pages in your SharePoint site.

·         ASP.NET web control: For this solution we are talking about an ASP.NET server control, which consists of a .NET assembly and a set of tags that are added to a page to instantiate an instance of our control.  Note that it is not a user control (.ascx file).

 

So, those are the key components of the solution. How do you put them all together?

 

Customization Requirements

A common set of requirements for customizing My Sites across an enterprise includes a) using a custom master page and b) adding, removing, and/or moving web parts around the page.  Those are the only items that I will address in this blog entry, but the approach taken is flexible enough that you can do virtually anything else needed by just plugging your code into the appropriate location.

Here’s how the components described above can help you achieve this.  The first feature, called “MySiteStaplee” is really where most of the work occurs.

 

MySiteStaplee Feature

The MySiteStaplee feature includes the following functionality:

·         File upload – the feature is configured to automatically upload a custom master page into the master page gallery in the new My Site.  We include this section in the feature.xml file:

<ElementManifests>

<ElementFile Location="steve.master"/>

<ElementManifest Location="element.xml"/>

 

So, here the feature is saying that it wants to include a file called “steve.master”, which is the custom master page.  It’s also saying that there is additional configuration information in a file called “element.xml”.  Now let’s look at a section of element.xml:

<Module Name="MPages" List="116" Url="_catalogs/masterpage">

<File Url="steve.master" Type="GhostableInLibrary" />

</Module>

 

The Module and File elements are describing where the master page should be uploaded.  In the Module element, the List attribute defines the type of list to which the item should be uploaded, and the Url attribute defines the list in which it will be placed.  In the File element, the Url attribute defines where the file is that is going to be uploaded.  GhostableinLibrary is a little more esoteric, but essentially when you are uploading a file that is going to land in a document library, you need to include this attribute in your File element because it tells SharePoint to create a list item to go with your file when it is added to the library. If you were instead provisioning a file outside a document library, you would specify Type=”Ghostable".

 

·         Change the Master Page setting for the site – changing the master page setting for the site requires some code to be run.  For this solution, you will use something often referred to as a “feature provisioning code callout.”  All that really means is that when the feature gets activated, it will run some code.  To do that, you’d have to write a new .NET assembly, using a class that inherits from SPFeatureReceiver.  With that class, you get four events that you can override: FeatureActivated, FeatureDeactivating, FeatureInstalled, and FeatureUninstalling.  For this solution, we will override the FeatureActivated event to change the master page.

Since we’re working with a fairly simplistic scenario here, you’re just going to look at the current master page and change it to use the one that will be uploaded in the feature.  To do that, use the following code in the FeatureActivated event:

try

{

using (SPWeb curWeb = (SPWeb)properties.Feature.Parent)

{

//got the root web;now set the master Url to our

//master page that should have been uploaded as part

//of our feature

if (curWeb.MasterUrl.Contains("default.master"))

{

curWeb.MasterUrl = curWeb.MasterUrl.Replace(

"default.master", "steve.master");

curWeb.Update();

}

}

}

 

The FeatureActivated event has a signature that looks like this:

public override void FeatureActivated(SPFeatureReceiverProperties properties)

 

The properties parameter provides access to a lot of useful information; in this case, you’re able to get a reference to the SPWeb associated with the My Site, so you can change the master page.

 

In order to get this code callout to execute, you need to configure the feature so that it uses this assembly.  You’d do that in the feature.xml file for the staplee feature, by defining the assembly and class that are associated with it:

ReceiverAssembly="MySiteCreate, Version=1.0.0.0, Culture=neutral,

PublicKeyToken=c726fa831b98198d"

ReceiverClass="Microsoft.IW.MySiteCreate" 

 

Some of you are now wondering why we didn’t make any changes to the home page for the site in the code callout, such as adding, deleting or moving web parts.  The issue is that when you are provisioning a feature via the stapling mechanism, most of the document libraries and lists don’t exist at the time your provisioning code is executed.  That includes the Pages library, where the default.aspx page lives that is used for the home page.  Since it doesn’t exist yet, you can’t change it in the code callout, so you’ll need another way to do that.

 

It is also another important reason why you need to use a custom master page.  This solution includes a custom ASP.NET server control that is going to be used to make changes to the home page.  The way to get that control added and used in the site is to add it to the custom master page.  When the custom master page is loaded, it contains an instance of the ASP.NET server control and that control can then finish off the customization work for us.  You add one tag to the custom master page to register the control:

<%@ Register Tagprefix="IWPart" Namespace="Microsoft.IW" Assembly="MySiteCreatePart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cb1bdc5f7817b18b" %>

 

You need to add a second tag to instantiate an instance of the control when the page is loaded:

<IWPart:PartCheck runat="server"/>

 

·         Change web parts – the custom ASP.NET control is used to modify web parts and their layout on the page.  Since you’d only want the provisioning code to run once, the first thing to do is check to see if the code has been run before by storing a value in the My Site’s SPWeb Property Bag and then checking it:

//get the current web; not using "using" because we don't want to

//kill the web context for other controls that need it

SPWeb curWeb = SPContext.Current.Web;

 

//look to see if our code has already run

if (! curWeb.Properties.ContainsKey(KEY_CHK))

 

The next thing is to get a reference to the home page in the site:

//look for the default page so we can mess with the web parts

SPFile thePage = curWeb.RootFolder.Files["default.aspx"];

 

With the home page, you can get the web part manager for it:

//get the web part manager

SPLimitedWebPartManager theMan = thePage.GetLimitedWebPartManager

(System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);

 

Once you have the web part manager, you can work with the web parts on the page.  The SPLimitedWebPartManager has a collection of all the web parts on the page as well as methods to add, close, delete and move web parts.  One important note is that in most cases trying to change individual web parts as you enumerate through the web part collection will not be successful.  Anything that changes the nature of the collection during enumeration causes problems, but you can normally work around this by copying the web parts you want to change into an array, hashtable, or some other kind of collection.

 

For this example, we are going to do three things:

·         Close the Welcome web part

·         Move the RSS Feeder web part to the bottom zone

·         Add the This Week in Pictures web part to the middle right zone

 

The code will enumerate through the web part collection, find the parts you want to work with, and capture the part and operation you want to do with it (delete or move) to a hashtable.  I chose a hashtable in this case because of personal preference, but you can use some other collection type as well.  To determine whether the current part is one you need to do something with, we check the System.Type of the part.  That’s a simple language-agnostic way of finding them:

//create a hashtable to store our web parts

hshWp = new Hashtable();

 

foreach (WebPart wp in theMan.WebParts)

{

//close the welcome part; WebPartAction is a custom class

//I wrote to keep track of web parts and their properties

if (wp.GetType().Equals(typeof(PersonalWelcomeWebPart)))

hshWp.Add(wp.StorageKey.ToString(),

new WebPartAction(wp,

WebPartAction.ActionType.Delete));

//etc

}

 

You then create a new web part, set some properties, and also add it to the hashtable of web parts:

//add a new ThisWeekInPictures web part

ThisWeekInPicturesWebPart wpPix = new ThisWeekInPicturesWebPart();

wpPix.ImageLibrary = "Shared Pictures";

wpPix.Title = "My Pictures";

 

//add it to the hash so it gets put in the page

hshWp.Add(Guid.NewGuid().ToString(),

new WebPartAction(wpPix, WebPartAction.ActionType.Add,

"MiddleRightZone", 10));

 

Finally, the code enumerates through the hashtable and makes all of the web part changes:

foreach (string key in hshWp.Keys)

{

WebPartAction wpa = (WebPartAction)hshWp[key];

 

switch (wpa.Action)

{

case WebPartAction.ActionType.Delete:

theMan.DeleteWebPart(wpa.wp);

break;

case WebPartAction.ActionType.Move:

theMan.MoveWebPart(wpa.wp, wpa.zoneID, wpa.zoneIndex);

theMan.SaveChanges(wpa.wp);

break;

case WebPartAction.ActionType.Add:

theMan.AddWebPart(wpa.wp, wpa.zoneID, wpa.zoneIndex);

break;

}

}

 

All of the web part changes have been made now.  Since you wouldn’t want to execute this code more than once, a flag is needed so we’ll know that this work has already been done.  If you recall, the code checks this flag up above:

//look to see if our code has already run

if (! curWeb.Properties.ContainsKey(KEY_CHK))

 

Now, we’re going to update the property bag with the flag, so when the page is loaded from this point forward, your code branch will not execute:

//add our key to the property bag so we don't run

//our provisioning code again

curWeb.Properties.Add(KEY_CHK, "true");

curWeb.Properties.Update();

curWeb.AllowUnsafeUpdates = false;

 

Note as well that since the code that modifies the site has now completed, the AllowUnsafeUpdates property is also changed back to its default value of false.

The code is just about complete now, and there’s only one other thing to do.  If you were to go directly to the page, you might think that the code didn’t work; the page would render exactly as it came out of the box, with all of the default web parts intact and in place.  You need to refresh the page to get the changes to show up – to do that, we simply issue a redirect back to our page:

//force a page refresh to show the page with the updated layout

Context.Response.Redirect(thePage.Url);

MySiteStapler Feature

The MySiteStaplee feature has all this great functionality, but how do you get it to execute?  This is where the feature stapler comes in.  It does only one thing – it establishes an association between a site template and a feature.  That means that whenever a new site is created based on a specific template, the staplee feature will get activated.  When it does, your code callout will execute the FeatureActivated code.

 

Here is the feature.xml file for the stapler feature:

<Feature  

Id="4457E66E-6FCD-4352-AD4D-B870600B4696"

Title="My Site Creation Feature Stapler"

Scope="Farm"

xmlns="http://schemas.microsoft.com/sharepoint/" >

<ElementManifests>

<ElementManifest Location="elements.xml" />

</ElementManifests>

</Feature>

 

There are a couple of things to note:

·         Id – this is a GUID just for this stapler feature; it is not related to the Id for the staplee feature

·         Scope – the scope is Farm because you’d want to execute it anytime a My Site is created in the farm

 

The feature.xml file also references a second file called elements.xml; here are the contents of that file:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/" >

<FeatureSiteTemplateAssociation

Id="4DEFA336-EDC4-43cb-9560-FE2E27E76DFB"

TemplateName="SPSPERS#0"/>

</Elements>

 

This one is pretty simple to understand.  The Id attribute is the GUID of the staplee feature; the TemplateName attribute makes a connection between the staplee feature and a site template called SPSPERS#0.  To get the site template name you should use, look in the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML directory (assuming  you installed to this path).  In that directory, there are a number of xml files; when you install MOSS it adds one called webtempsps.xml.  If you open that file up you will see an entry for a template with a name of SPSPERS; the default configuration for that template has an ID of 0.  You combine the two and you get SPSPERS#0.

Installing

Now that you have all the code and features created, you’ll need to install and activate the features, then update the site’s configuration.  Here are steps that need to be taken to get everything properly installed:

·         Copy the MySiteStaplee and MySiteStapler folders to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES (assuming this is your installation directory); each feature folder contains the files that define that feature

·         Add the two assemblies that were created (the feature activation assembly and the custom ASP.NET web part assembly) to the global assembly cache

·         Install and activate the MySiteStaplee feature; when you activate it, do so to the web application that hosts My Sites.  Use the installfeature and activatefeature switches with stsadm to do this

·         Install the MySiteStapler feature; since its Scope is Farm it activates automatically.  Use the installfeature switch with stsadm to do this

·         Add the following SafeControl entry to the web.config for the web application that hosts My Sites:

<SafeControl Assembly="MySiteCreatePart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cb1bdc5f7817b18b" Namespace="Microsoft.IW" TypeName="*" Safe="True" AllowRemoteDesigner="True" />

This entry allows the custom ASP.NET control to be instantiated on the master page.

 

That’s it – you’re now ready to start creating My Sites with your customizations!  One other thing worth noting – this ONLY applies to new My Sites.  If you’ve already created My Sites then these features won’t be used.

 

In the next couple of months or so, I’m going to work on making the solution described here a little more generic.  My goal is to make it more of an open framework for My Site customizations that can be reused without you having to rewrite code just for your implementation.  This solution is now part of the larger Community Kit for SharePoint: Corporate Intranet Edition effort taking place on CodePlex, so the Visual Studio solution file containing all of the current source code is available for download there. [Update April 2, 2007: The production release of the MySiteCreate 1.0 solution file is now available here.]

 

Although this is likely the longest entry ever posted on this blog, I do hope that you’ll find this to be a useful solution for customizing My Sites in your MOSS environment. If you have questions, ideas, or suggestions, please leave a comment.

 

 

Steve Peschka

Published Thursday, March 22, 2007 11:16 PM by LLiu

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

Can you tell me how I can change the name of the private My Site from My Home to something else (like My page)? I'm working with a Dutch version of MOSS and in the translation to Dutch My home has become a not-so-common word...

Thanks, Willem

Friday, March 23, 2007 8:33 AM by woosterhof

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Willem.  Unfortunately this will be difficult to do.  This string is not part of the standard navigation that is used in other sites, it is actually contained in a resource file.  I'm not sure if it's in a resx or actually embedded in Microsoft.Office.Server.Intl.dll.  In either case it is probably going to be more effective to modify it with some client-side script included on the master page.

Friday, March 23, 2007 11:43 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

I am using Forms Based Authenticaion (FBA) with the AD Membership Provider.  I set the default zone to use FBA.  I CAN authenticate to my site, and CAN add site admins from the site admin page, but CANNOT get users added to the Shared Service Provider's security page that controls wether a user can have a personal site (ssp/admin/_layouts/ManageServicePermissions.aspx).  The user/group field only appears to be authenticating against the domain and NOT my AD Membership provider.

I have added the membership provider to the SSP site web.config.

Any Ideas?

Friday, March 23, 2007 1:03 PM by BobC

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Bob.  You need to add your FBA membership provider information to the web.config for the SSP's web application.  Then you need to go into the SSP, Personalization Services Permissions and add your FBA users and/or groups to have the Personal Features and Personal Site rights.  After you do that your FBA users should have the My Site link show up.

Sunday, March 25, 2007 10:49 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

I looked in the resource files in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources. I couldn't find the text 'My Home' there... Is this the only place for resource files?

Greetings, Willem

Monday, March 26, 2007 3:21 AM by woosterhof

# re: Customizing MOSS 2007 My Sites within the enterprise

How can we apply new features and functionality to existing My Sites? One way could be to loop through all My Sites and i.e. add/remove a web part as in your blog. Is that the best approach to update existing sites?

Monday, March 26, 2007 5:43 AM by Wendy

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi, do you have the code of both assemblies? I don't seem to be able to create them with your instructions.

Monday, March 26, 2007 9:08 AM by Wouter van Vegchel

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Willem.  We look at 12\RESOURCES\foobar.XYZ.resx for the strings we will use to replace $Resources tokens.  If DefaultResourceFile is not specified (or is set to _res), we will look at 12\TEMPLATE\Features\<featurename>\Resources\Resources.XYZ.resx for the resource file.(where XYZ is the culture, e.g., en-us.)  Our default resource file is at Resources\Resources.resx.

Monday, March 26, 2007 12:50 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Wendy.  As far as modifying existing My Sites you are correct - you basically need to enumerate all of the sites and then apply your changes on each one.  There unfortunately isn't a real easy or sophisticated way to do it another way.

Tuesday, March 27, 2007 1:24 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Wouter.  The source code for everything should be on the CodePlex site at the location referenced in the blog.  If you are not finding it there then let us know and we will check into it.

Tuesday, March 27, 2007 1:25 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve. Is there a way to display the Top Navigation Tabs of the main portal page on all MySite pages? - Instead of the default My Home and My Profile tabs.

Thursday, March 29, 2007 3:37 PM by Jeff

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Jeff.  The navigation in the home page is hard-coded right now in the master page.  You would need to look at changing it there, and inserting one of the navigation controls.  However, more specific to your point, since the main portal page is in a separate site collection, there isn't a way to get the navigation from it and display it in another site collection, since each My Site is its own site collection.

Friday, March 30, 2007 10:25 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve, I have a few questions regarding this approach.

1. Where do we define the ContentPlace holders for the My Home and My Profile page

2. Would I also have to follow the same approach to modify the "My Profile" page.

3. If I do want to revert back to my original master page after the site creation how do I do that

4. How do I enable "Audit Logging" for all the My Sites that are created.

5. How do I add custom pages all the sites

Tuesday, April 03, 2007 2:07 AM by vijay

# re: Customizing MOSS 2007 My Sites within the enterprise

As I understand it, the webcontrol is loaded every time the user visits the MySite page. Are there any performance problems if we have 1000 or 10.000 users visiting the MySite? Since we always have to check if the code has already run.

Is it better (faster) to store a boolean in a session variable and only get the key property once?

Wednesday, April 04, 2007 7:08 AM by Martin

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Vijay, some answers are below.  I'm not sure what your exact question is around ContentPlaceholders, but if you are saying you are building a new master page and asking where you should put these controls, I would look at the default master page for My Sites to figure that out.  The My Profile page is the shared public page, so you don't need to necessarily go through these same gyrations.  You can change it once and it affects all users that "My Profile".  If you want to change to a different master page just go into Site Settings and select the one you want to use.  If you want to do it retroactively for every single My Site then you would need to write code that enumerates all personal sites and changes the master page programmatically, just as the code sample does.  To change auditing settings just go into site settings.  To add custom pages to the sites look at the sample code - it demonstrates uploading a new master page and you can use the same approach for uploading other files as well.

Wednesday, April 04, 2007 1:02 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Martin, you are correct that the web control is loaded every time a user hits a page in his or her My Site.  I haven't done any capacity planning around this to determine the completely impact, but it would be an interesting exercise.  If I ever get some free time I may try and do some measurements around that.  I personally don't favor session state because I think that breaks down scalability faster than most other state options.

Wednesday, April 04, 2007 1:05 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

is there an easy way to automatically configure all My Sites in MOSS 2007 to have the 'Portal Site Connection' pre-defined?  in sps 2003 you could do this globally but i can't find this in MOSS?  thx!

Wednesday, April 04, 2007 4:52 PM by Jay

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Jay, you can go into the Site Settings for a My Site and configure the portal connection in there.  All new My Sites that are created after that will use the same link.

Thursday, April 05, 2007 9:41 AM by Steve

# re: pre-populate My Sites 'portal site conneciton'

i tried as you suggested (set it once and new my sites will have the same values), but this did not work on our system.  do you have to do this to the template instead (how?) or with a certain user (such as the farm system account)?

thx.

Thursday, April 05, 2007 4:57 PM by Jay

# re: Customizing MOSS 2007 My Sites within the enterprise

This is very useful information.  I have a need to implement some javascript that examines a profile property and executes some logic when a user's profile page (person.aspx) is rendered.  How would I accomplish that using this approach?

Thursday, April 05, 2007 6:14 PM by Sekou

# Customizing MOSS 2007 My Sites within the enterprise

An article on how to customize the "My Site" feature within your organization. Very detailed article, you will find it helpful.

Friday, April 06, 2007 6:55 PM by sharepointarticle.com

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Jay.  That is all you should have to do, I have done that many times and had it work without issue.  You should try doing it as a site collection administrator, but other than that there should not be anything special you need to do to get it to work.

Saturday, April 07, 2007 2:16 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Sekou.  I would add your javascript (either directly or by reference) to the master page, then use the method described in this blog to replace the default master page.

Personally I would just reference the javascript file in the master page, that way if your javascript changes you don't need to go back and change the master page in all the existing My Sites.

Saturday, April 07, 2007 2:18 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Very cool....exactly what i was looking for..thanks a million

Friday, April 13, 2007 6:39 AM by Lipi

# re: Customizing MOSS 2007 My Sites within the enterprise

I am about to roll out MOSS 2007 across my company and as part of preparing for this have developed a specific layout for My Site home pages.

Have downloaded the code, modified the xml for my custom layout, built the solution, installed the assemblies to my test server etc, but whenever I try creating a new My Site I get a File Not Found error from MOSS.

I have also tried using the original source files but got the same result.

Monday, April 16, 2007 9:51 AM by Rob M

# re: Customizing MOSS 2007 My Sites within the enterprise

Could you use the feature stapler to prevent the creation of subsites in mysites.  I've read todd baginski blog on preventing creation of subsites - I'm just trying to figure if you could use the feature stapler to prevent creation of subsites.  Thanks for sharing your thoughts.

Monday, April 16, 2007 11:34 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

I have already tried the stapling feature and I have checked the code sample available online. This sample worked successfully, but the issue is that the My Home sub site uses one and only one master page for both the application and system pages. What was done in the stapling feautre is changing the master page for the My Home sub site. Therefore, they are using the same master page for both type of pages (application and system pages). By applying the stapling feature and replacing the default master page with our custom master page, the design of application pages was good as expected, but the design of the system pages was totally corrupted. I need to have different master pages used by the application pages from the one used by the system pages. How can I do that?

Tuesday, April 17, 2007 8:20 AM by Marc Haddad

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Rob.  I would look in the event log for errors.  Also make sure that you are getting the pages uploaded correctly that the feature callout and web part are supposed to be working with.  File Not Found is often a pretty generic error, so also make sure that any custom web parts you reference have been added to the Global Assembly Cache and are deployed to the BIN directory for the web application if you intend to use them from there.

Steve

Tuesday, April 17, 2007 7:08 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi cafearizona (my favorite state btw).  I think it would be awkward to try and prevent creating sites from a handler that is only invoked after a site has been created.  That particular requirement is difficult though because there isn't a specific web creation right that you could somehow pull out of the list of rights a My Site owner has.  So, that being said, the options are pretty limited.  If you float a pointer to todd's blog I'll take a look and see if there's something more creative we can come up with.  No promises, but we can try.

Steve

Tuesday, April 17, 2007 7:12 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Marc.  Can you define what you mean by "totally corrupted"?  Like pages wouldn't render or ??

Steve

Tuesday, April 17, 2007 7:12 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve, The pages are rendering, but the layout of the system pages (for example the page that displays the list items of a custom list)is messed up. For example, the out-of-the-box controls such as navigation, the SharePoint ASP Menu control and so many other controls which are not used in the MyHome, I have removed them from the master page. But these controls are recommended in the system pages that miss these controls.

Wednesday, April 18, 2007 5:08 AM by Marc Haddad

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve. I have put this approach in place but I get an error (in event log) saying that unable to cast object of type SPSite to SPWeb. (MysiteCreate.dll) I would assume that this is from the using (SPWeb curWeb = (SPWeb) Properties.Feature.Parent Line. Do you have an idea what the problem might be.

Thanks

Wednesday, April 18, 2007 5:31 AM by Maanda

# re: Customizing MOSS 2007 My Sites within the enterprise

I want to globally change the Theme used in My Sites sites.  How can I accomplish this?

Wednesday, April 18, 2007 8:51 AM by Steven

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve, I want to be able to add custom WF's to the pages lists of new sites instead of having to add them manually (there will be hundreds); I have created the feature and at this point have just entered some test code in the featureactivated handler -  it fires on activating the feature as it should but not when a site is created - this is what it should do right? Or have I misunderstood? How can I get the FeatureActivate to run everytime a site is created and I take it, it is possible to associate WF's (custom and out-of-the-box ones) to the pages list pls?

Wednesday, April 18, 2007 9:51 AM by Dave

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve here is the url for the way that tbaginski did it......Yeah, I know it is "wrong" to limit the creation of subsites in the "MYSITE"....however, this customer thinks they want to turn that off for the first 6 weeks....until they have a handle on user profiles, people searches, etc. Then they want to turn it back on without having to re-create all the mysites

http://www.sharepointblogs.com/tbaginski/archive/2006/11/14/16053.aspx

Wednesday, April 18, 2007 10:04 AM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve, I've got the mysitestaple and mysitestaplee installed and activitated.  When I click the mysite on the portal....I just get 3 prompts for user id and then a 401 unauthorized message.  Did I miss something in the installation?

Thursday, April 19, 2007 3:14 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve, short question: Is it possible to follow your code in Debug, and is so, how is this done?

Friday, April 20, 2007 8:16 AM by Dirk

# Customize SharePoint 2007 MySite

Steve Peschka wrote an excellent article about " Customizing SharePoint 2007 MySites Within the enterprise

Saturday, April 21, 2007 10:31 AM by Charbel CHARBEL's blog

# re: Customizing MOSS 2007 My Sites within the enterprise

Marc,

I worked on a solution for you that consists of only modifying the master page of "My Home" and not the whole site.

The solution is based on the code provided by Steve in this post (Thank you Steve).

Regards,

Saturday, April 21, 2007 10:59 AM by Charbel

# re: Customizing MOSS 2007 My Sites within the enterprise

Please tell me this is only a temporary thing with MOSS.  With SP 2003 it was zero effort to make a change in the Shared View of a "My Site" and have that shown on all user's private My Site page.  I appreciate the effort shown in this blog to deal with customizing My Sites in MOSS but if this is a permanent solution then Microsoft has truly taken five steps back on this one.  

Sunday, April 22, 2007 10:19 AM by Mark

# re: Customizing MOSS 2007 My Sites within the enterprise

Is there a way to have the same template for all mysites and make it non-modifiable?

Thank you in advance.

Monday, April 23, 2007 8:39 AM by Paola

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi, All!!! I would like to modify some "functions" of the site components. For example: I need to change menu apperance: I need to make "tree-view" menu (when user click to main menu item, subitem must drop down). Can I change exists menu component and how I can do this? Also I need to modyfy the code, which executed on some event, (or write new code on some event), but I do not know, where it placed :( I tried to use SharePoint Designer and VS 2007, but in Designer I did not found this option. VS, as I see, can't work with SharePoint(It can edit some files separated from each other, but I do not think that it's right). What I do wrong? Or what else I need ? May be SharePoint SDK could help me?

Tuesday, April 24, 2007 3:00 AM by Ilya

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Maanda.  Have you stepped through the debugger to verify where the error is occurring?  Assuming you are using the same code included with this post you shouldn't get that error on any of the code included.  I've run it probably close to a hundred times during testing and haven't had that error.

Steve

Saturday, April 28, 2007 10:50 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steven.  To set the theme for a site you want to get a reference to the web and call the ApplyTheme method on the SPWeb object.  I haven't tried that specifically so I'm not sure if it will work in the feature stapling receiver, or if you would need to do it in the other web set up stuff included in the asp.net control.

Steve

Saturday, April 28, 2007 10:53 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Marc.  I'm not sure I completely understand the issue with your forms pages, but I don't have an image available right now to check it out on.  I will give it a try later to see if I can reproduce it with the latest version of this code (from up on CodePlex), or if you are doing something different that I'm not understanding let me know.

Saturday, April 28, 2007 10:55 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Dave.  The code described in this article will run every time a My Site is created (that's what the feature stapled feature does).  So if you're not seeing that behavior then something else is messed up I would guess.  In terms of attaching workflows to lists, I haven't done a whole lot with that so I can't really say for sure how to tie it all together without doing some more research.  You might check out the ECM Workflow Starter Kit for examples.

Saturday, April 28, 2007 11:00 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hey cafearizona, thanks for the link to Todd's suggestion for working around creation of subsites in My Sites.  Overall it looks pretty good, the only thing I would be a little squirrely about would be modifying the out of the box newsubwb.aspx page since that would affect your supportability.  But if you kept a backup of the file then it should be pretty easy to switch them back and forth if you had an issue that you needed help resolving.

Saturday, April 28, 2007 11:04 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi cafearizona.  If you are getting three prompts followed by a 401 error it's almost always the case that you accidentally configured the web application to use Kerberos authentication, but Kerberos is not properly configured.  I've seen a few fringe cases where it involved SQL rights not being set up correctly, but I would really chase down the Kerberos angle first.

Steve

Saturday, April 28, 2007 11:06 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Dirk, it is possible to step through this code in the debugger.  What I do after I update my code is:

a.  re-GAC my code

b.  IISRESET

c.  Hit a different page in the site

d.  Use Visual Studio .NET to Attach to Process and pick out the W3WP process.

e.  Create a new My Site.

When it's time to test again I just deleted the My Site I created in step e. and started the whole process all over again.

Steve

Saturday, April 28, 2007 11:08 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Mark.  Your feedback on the effort required for this type of customization has not fallen on deaf ears. :-)

I will make sure it gets routed to the correct person, and the timing is right as we start planning the next version.

Steve

Saturday, April 28, 2007 11:09 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Paola.  Not sure exactly what you want to make non-modifiable here (the master page, the site template, the web parts in the page created by the template, etc.).  But...My Sites in particular are pretty difficult to effectively lock down in that respect.  That's because the premise of a My Site is that it's the personal site of one individual so...all the behavior is geared towards letting that indiviual who owns the site control it as they wish.  That's also why we take a different approach with the shared Public view of My Site (or profile information really, in person.aspx).  We contain that to a single page and single site to ensure it's consistent across the enterprise.  But within an individual My Site, we don't distinguish the owner of that Site Collection differently from the owner of any other Site Collection - they can both inherently customize at will.

Steve

Steve

Saturday, April 28, 2007 11:13 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Ilya.  I'm not sure what all you want to do, but things like custom menus would be controlled in your master page.  So you can create a custom master page that uses the navigation as you've customized, and then make it the default My Site master page using the techniques described in this blog.

Steve

Saturday, April 28, 2007 11:15 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Following my previous posting (April 16) I have made some progress, but after many iterations of modifying MyStaplee.xml, rebuilding, copying to the server and doing uninstall/reinstall I am finding that more than 50% of the time the code is not executing, resulting in an Out-Of-The-Box My Site.

The event log simply states:

Error: Failure in loading assembly: MySiteCreatePart...

Any thoughts on why it works only part of the time? It may be coincidence but it seems that it doesn't work when I include actions involving the same web part (ie Move OWACalendarPart then set the properties of that webpart).

If I can get it working the feature is exactly what I need!

Monday, April 30, 2007 6:42 AM by Rob M

# Package and Deploy Custom master page

Hi ,

I had created a custom master page for Sharepoint 2007 using SP designer and able to depoy it DEV server by uplaoding the custom master page and images into respective folder sof the new site and then able to create further sites using that site template (.stp).

But, why am I not able to use the .stp file that was created on my local machine?

What all does a .stp file contain? Does it take the Custom master page also with it...

Please share any details regarding this ASAP...

Thanks.

Smitha C

Tuesday, May 01, 2007 3:32 AM by Smitha C

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve, how can Feature stapling be used to A) Add a custom profile page (e.g. personCust.aspx) to My Site - both publically and privately viewable like person.aspx and B) create a hyper link in person.aspx to personCust.aspx?  Is Feature stapling the right approach for this?

Tuesday, May 01, 2007 10:57 AM by Sekou

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Rob M.  I have not experienced that particular problem myself.  After you uninstall/install, are you doing an IISRESET?  This is required because of the way that IIS caches GAC'd assemblies.

Steve

Tuesday, May 01, 2007 5:11 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Smitha.  I'm not sure how your issue is related to My Sites, but generally speaking STP files are diffs - the difference between a site definition and the customizations that have occurred to that site.  If all you want to do is use your custom master page and images in your My Sites, then you don't need a site template.  You can upload your files as demonstrated in this blog and set the master page, also as described in the blog.

Steve

Tuesday, May 01, 2007 5:14 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Sekou.  First, it's important to distinguish between person.aspx and another page you put in a My Site.  Person.aspx is hosted in the My Site host site collection, i.e. http://mysites/person.aspx.  A custom page as you described would need to be uploaded to each site collection at site creation time.  If you put it in the Shared Documents folder then everyone will that has access to the site will have access to the page (by default).  You can use the feature file included in this blog as an example of how to upload files.

In terms of creating a hyperlink in person.aspx to persCust.aspx, it's possible, but depends on how complicated you want it to be.  Meaning if you wanted a generic link it's no big deal, but if you want a link that goes back to the My Site of the person whose details are currently being viewed, then you may need to write a custom web part to accomplish that.  It's just a guess, I haven't tried doing this specific scenario myself.

Steve

Tuesday, May 01, 2007 5:18 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

I am familiar with administering the SharePoint farm and using STSADM etc, but not with coding.

Could you possibly provide download links to complete files with explicit instructions about what goes where etc

I think I understand your code snippets, but am at a loss as how to use it all.

Thanks in advance.

Wednesday, May 02, 2007 7:07 AM by Marcus Clifford

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

I autogenerate a number of libraries and lists in our My Site.

Can I also put these on the default.aspx with your staplee functions? Does you app make a difference between webparts and Libraries/lists?

Or can I put them on My Site some other way (except manually of course ;))

Wednesday, May 02, 2007 10:20 AM by Dirk

# re: Customizing MOSS 2007 My Sites within the enterprise

Thanks Steve.  Actually, I intend for the custom page (personCust.aspx) to be hosted by the My Site host collection like person.aspx.  Would the approach be any different in getting it added/uploaded?

Wednesday, May 02, 2007 11:10 AM by Sekou

# re: Customizing MOSS 2007 My Sites within the enterprise

I have modified the install and uninstall batch files slightly to cope with some specifics of paths, but there is an iisreset at the end of each of these.

The only other point (which shouldn't affect the result) is that I am running my development server under Virtual PC 2007.

If I add an entry to MySiteStaplee.xml that moves the OWACalendarPart to another zone it works. If I replace this with an action that sets the server and mailbox properties that works (even my modification to partcheck.cs to use the full email address works!). However if I have both actions together the whole feature falls over and I get an OOB My Site.

Wednesday, May 02, 2007 11:14 AM by Rob M

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

First, thanks for taking the time to put this post together.  As the comments demonstrate, it's a big help.

I would like to remove the "Create Blog" tab on the private MySite page.  It seems like the approach you lay out above is the way to go.  Would you agree or is there a simpler way?

Wednesday, May 02, 2007 12:43 PM by Jason

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve,

First of all, thanks for tackling this challenging issue for us newbies. However, I am getting an error when I try to create a mysite. Here is the message.

"An error occurred during the processing of /personal/dccoleman/_catalogs/masterpage/mzac.master. Could not load file or assembly 'MySiteCreatePart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cb1bdc5f7817b18b' or one of its dependencies. The system cannot find the file specified. "

I did change the master from steve to mzac. I think I changed it in all of the appropriate places also. Please advise. Thanks!!

Wednesday, May 02, 2007 11:10 PM by Terry Morris

# re: Customizing MOSS 2007 My Sites within the enterprise

hi, i want to create different type of mysites depend on the type of user logged in. i will check user credential in my database and depend on user right respective webpart will be visible or accessible. can any body give idea to achieve this.

Thursday, May 03, 2007 5:28 AM by praful

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Marcus.  If you go to CodePlex using the link provided in the blog, you can get everything - the complete source code as well as some instructional documentation for how to set it up.

Steve

Thursday, May 03, 2007 10:06 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Dirk.  If you have a number of other lists and libraries that should be created with a My Site, then you can staple those as well (assuming you create them as features, which is what I would recommend if possible).

Steve

Thursday, May 03, 2007 10:07 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Sekou. Sorry, I didn't understand the first time that you were planning on putting personcust.aspx in the My Site host site as well.  In that case you should just upload the file there manually.  It's a one-time operation and is independent of whether you have 1 or 1,000 My Sites because they all share the same host site.

Steve

Thursday, May 03, 2007 10:09 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Rob M.  I'll have to take a look at it, there may just be a bug in the code (I'm assuming you are using the 1.0 version from CodePlex).  I'm short on free time right now but I will get to it as soon as I can.

Steve

Thursday, May 03, 2007 10:10 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Jason.  Glad you found the blog useful.  For removing the Create Blog tab, look at the default master page in SharePoint Designer.  There should be a control in the page that is rendering that, so you could remove it, save it as a custom master page, and then use the process in this blog to use that master page on your new My Sites.

Steve

Thursday, May 03, 2007 10:12 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Terry Morris.  It sounds like the assembly for the MySiteCreatePart has not been registered in the Global Assembly Cache (GAC).  I would double-check that.

Steve

Thursday, May 03, 2007 10:13 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi praful.  I would use the code for the MySiteCreatePart as your starting point.  Add some code in it to do your DB lookup to see if the current user should get the webpart and if they should, use the methods in this blog to add it to the page for them.

Steve

Thursday, May 03, 2007 10:15 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Is the specific step in your instructions I missed for registering the assembly? If not, can you give me some direction. Thanks!!

Thursday, May 03, 2007 10:50 AM by Terry Morris

# re: Customizing MOSS 2007 My Sites within the enterprise

Rob M....same same with my use of the project.  It worked....but now more often than not I get OOB.  Actually, I get the branded template...but the web parts are OOB.  I am running VPC 2007 on vista (64 bit).

in the app log for event viewer...I get "Error checking web parts.  Value cannot be null.  Parameter name: webPart

also get:

Error checking web parts. Access denied (I am on as a domain admin).  Sure wish I could track this down.

Thursday, May 03, 2007 6:18 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

So, if i create a my site - then delete it with stsadm -o deletesite ......and then I create it again...does the provisioning code for the web parts fail - is the valude of

if (! curWeb.Properties.ContainsKey(KEY_CHK))

still true even if I delete the site?

Thanks.....

Thursday, May 03, 2007 11:14 PM by cafearizona.com

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

Thanks for your quick response. The problem however is, I make a document library in the Onet.xml. In order to put that on the screen, it uses a ListViewWebPart. But when I define it in your MySiteStaplee, I get an error from your app when making a new MySite stating the list does not exist. I don't know which property I need to use or how to set it to the correct library since each new MySite creates its own library. Any thoughts, hints, suggestions?

Friday, May 04, 2007 8:16 AM by Dirk

# Resources for Sharepoint geekSpeak

Our extra geek on the geekSpeak was Dan Attis. Because we didn't get his bio and headshot in time for

Friday, May 04, 2007 3:07 PM by geekSpeak

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Terry Morris.  To register the assembly in the global assembly cache use the gacutil utility.  Try searching on live.com if you need help finding it doing the registration (gacutil -i foo.dll).

Steve

Friday, May 04, 2007 8:13 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi cafearizona.  If you delete the site and then recreate it all of the code will run again.  The key it checks is stored in the property bag for the SPWeb at the root of the My Site.  So when you delete the My Site, that key goes away with it.

Steve

Friday, May 04, 2007 8:14 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Dirk.  Yes, if your list is part of onet.xml then it will be more difficult to work with (for example, if you need to change the list definition after sites are created based on that definition you won't be able to do so out of the box, versus if you deploy it as a feature).  I'm not sure exactly what you're doing, but in all likelihood the list will not be created at the time your stapled feature fires.  That is the same reason that we had to create the MySiteCreatePart - so it could do things after the site was finished being provisioned.

Steve

Friday, May 04, 2007 8:16 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

Our My Site requires a number of items to be displayed. Among these are 3 libraries, 1 for personal documents, 1 for personal images and 1 for personal tasks. At present, I create these libraries via the onet.xml. But I still need to display them.

By placing them manually and using our MySiteCreatePart, I found out a ListViewWebPart

is used. Then I tried to include the ListviewWebPart in the SiteStaplee.xml but that gave the error that the library did not exist.

So, according to you, I have to generate the Libraries via your app as well. Can you tell me how to go about doing that or where I can find the info to do it?

Monday, May 07, 2007 3:21 AM by Dirk

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Rob M. and cafearizona.  As luck would have it, my lousy laptop was broken again this morning so I had time to look at the issue you describe of trying to Move a web part and also set properties on it.  I verified that it does not work, but it is by design.  Fortunately, there is a workaround.  Here's what's going on.

When the list of actions for an existing web part is enumerated (such as Move, Delete or SetProperties), each action is added to a dictionary.  The key for that dictionary is the Type name of the web part assembly.  That is done so that when we are getting a reference to the actual web part on the page later in the code, we can compare what we need to change with what's in the page in a language-agnostic way (i.e. works the same in Spanish as it does in English).  The problem then is if we had more than one action for a single existing web part, the process will choke because it says hey, you've already added an entry to the dictionary with that key.  Fortunately, I think the Move in combination with the SetProperties are the only two actions that would occur for the same web part.  So...the work-around is to delete the web part with one action, and then add it back in with another action.  When you add the part back in you can put it in whatever zone you want and also set the properties - so you effectively accomplish both tasks in a single action.  The reason this works is because when you choose to Add a web part we use a new random GUID as the key in the dictionary of actions.  Since it's a new web part we don't need to compare it to the list of web parts on the page, that's why we use the random GUID as the key.  It also allows you to add multiple instances of the same web part on the page.

So, to wrap it up, here's a snippet of the MySiteStaplee.xml file that I used to verify that this approach works - hope it helps.

<WebPartAction>

<assemblyName></assemblyName>

<className></className>

<zoneID>BottomZone</zoneID>

<zoneIndex>5</zoneIndex>

<typeName>Microsoft.SharePoint.Portal.WebControls.OWACalendarPart</typeName>

<Action>Delete</Action>

</WebPartAction>

<WebPartAction>

<assemblyName>Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</assemblyName>

<className>Microsoft.SharePoint.Portal.WebControls.OWACalendarPart</className>

<zoneID>BottomZone</zoneID>

<zoneIndex>5</zoneIndex>

<typeName></typeName>

<Action>Add</Action>

<Properties>

<Property Key="Title" Value="Outlook Stuff by Steve"/>

<Property Key="OWAServerAddressRoot" Value="http://steveMailServer/exchange"/>

<Property Key="MailboxName" Value="[ACCOUNTNAME]"/>

</Properties>

</WebPartAction>

Steve

Monday, May 07, 2007 12:44 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Is there any way to guarantee a stapled feature to fire after the MySite has been completely provisioned? A way I can be sure the lists and libraries created in Onet.xml are in place and ready to be used?

I only need to add them when making a new MySite anyway.

Tuesday, May 08, 2007 4:42 AM by Dirk

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve, its urgent for me, please look into it:

i have one .net page(as page viewer webpart) in MOSS, thier i am capturing user details. and validating from my custom database. When user click on sumbit button i want to take him to MySite pagee. if user is first timer then new MySite should create and if not then existing MySite should open. where can i write code to check for existance of MySite.

waiting for ur Reply

Tuesday, May 08, 2007 6:46 AM by praful

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Dirk.  There is not a way to fire a stapled feature after the site has been completely provisioned - sorry.

Steve

Tuesday, May 08, 2007 5:09 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi praful.  You should be able to redirect to the My Sites host site collection /_layouts/mysite.aspx.  If the My Site is not created yet it will create it automatically; if it is created it will just redirect the user.  That way you don't need to check for anything.  If you really want to check for some reason then you can look at the UserProfileManager class to get an individual's profile, and then check their PersonalSite property.  If it's null (C#) or Nothing (VB.NET) then they haven't created a My Site yet.

Steve

Tuesday, May 08, 2007 5:13 PM by Steve

# Page Viewer Web Part on My Site?

Page Viewer web part is not an option for me on MySite.  

Do we have something misconfigured?  I can add page viewer web parts to the site home page, but not in my sites.

Wednesday, May 09, 2007 11:23 AM by Jim

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve - thanks for the update. Not sure why I didn't think of the workaround myself.

While it has helped considerably, I still find that some of the time the feature doesn't run. Up to now I had not been attempting to debug, and having now installed Visual Studio 2005 directly on the server I find that 98% of the time the debugger does not load symbols for the project, thereby preventing any breakpoints from being hit. Although I am a VB6 person rather than .Net or C# if I can get the debugger to link to the process correctly I can sort out the remaining issues.

I have attached to both instances of w3wp.exe. Any other suggestions?

Wednesday, May 09, 2007 1:08 PM by Rob M

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve - Mea Culpa - Once I fixed the type I had (as in I had deleted it) on the Register Tagprefix="IWPart" - mysitecreatewebpart started working like a charm.  I was switching back and forth between your sample master page and my own....since I can be slow at times - it took a while to see the relationship.  Now....I can still get the feature to through an exception error in the app event log...but right now this seems to be related to my multiple  vpc images on VPC 2007 gettting out of sync on the time.  I am running a vpc image of a dc, another for SQL 2005, andother for EX2k3, and finally, another for MOSS 2007.  When they get more than 900 msec abpart on time..stuff quits working.  But that is obviously because of my virtual netwwork...not your feature.

NICE JOB and even BETTER JOB pinging us all back!

Now if I could just load some content into a cewp when I usue your feature to drop it on the private mypage...I would be in heaven.

CafeArizona

Wednesday, May 09, 2007 9:50 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Jim.  I don't have an image to look at right now but I'm wondering if it's just not showing up because it's not one of the suggested web parts for that page.  Can you export the Page Viewer web part to a .webpart file locally, and then import it into a My Site?  I'm assuming that will work (I could be wrong), but if it does you could follow the same process to import as was demonstrated in this project.

Steve

Thursday, May 10, 2007 1:23 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Rob M.  A couple of things to try:

1.  Once you've attached to the w3wp.exe process(es), you might also want to look in the Modules windows (under Debugging...Windows) and try loading your pdb manually.

2.  My favorite fallback is just to insert a single line of code where you want it to break:

System.Diagnostics.Debugger.Break

When it hits that line it will throw a standard "you gotta problem" dialog and let you open up an instance of Visual Studio (or use an existing open instance).  So you can have VS.NET open with your source code and just step right in and start walking through the code.

Steve

Thursday, May 10, 2007 1:26 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi CafeArizona.  As far as your CEWP, I don't have an image handy to examine the web part.  However, I do know that the content for the web part is actually stored as a property on the part.  Is it possible for you to use the SetProperties action to set the content on the part?  If not I will try and take a look at that particular part when I get some free time.

Steve

Thursday, May 10, 2007 1:28 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve,

If I were to make another XML file besides your MyFileStaplee and used the following code:

<Module Name="DWS" Url="" Path="dws">

 <File Url="default.aspx">

   <View List="104" BaseViewID="3" WebPartZoneID="Top"/>

   <View List="103" BaseViewID="3" WebPartZoneID="Right" WebPartOrder="2"/>

   <View List="101" BaseViewID="6" WebPartZoneID="Left">

     <![CDATA[

       <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">

         <Title>Members</Title>

       </WebPart>

     ]]>

   </View>

</File>

</Module>

Would it work in putting additional information on MySite? And do I need to modify your code to include these changes?

Thursday, May 10, 2007 3:52 AM by Dirk

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve - thanks again for the quick response. After further testing (and hunting around on the newsgroups) I found that putting VS2005 into Debug rather than Release mode for both projects will hit my breakpoints, but the errors about symbols not being loaded only disappears when the creation of a new My Site actually triggers the feature. I will try your suggestion when I have time.

I have successfully installed the feature on my live server and it is working perfectly, setting the OWACalendarPart properties when adding it back has indeed solved the issue I had previously.

A couple of final notes - one of the web parts I would like to add in is the My Links part. This does not appear in the Object Browser, so I assume that it is not accessible via the feature. I would also like to set the Height of the web parts I am adding, but this property seems to be ignored. Is there any documentation on the LimitedWebPartManager which would help to explain these issues?

Thursday, May 10, 2007 6:36 PM by Rob M

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve, I'm getting ready to try and set the property for the url of the source on the CEWP.  That - of course - is a better way to populate the CEWP - as I am using them on the private & public mySITE's that I will provision with your feature.  Thanks for the feedback.  I will post results of the CEWP within next couple of days.

CafeArizona

Thursday, May 10, 2007 9:10 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Dirk.  If you encapsulate your xml above into a feature that you get working successfully, then you can make another stapler feature for it like this blog did to have it added to your My Sites.  You can have more than one stapled feature for a site definition.

Steve

Friday, May 11, 2007 12:30 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Rob.  Don't worry about parts that don't show up in the browser, you can add any part as long as you know it's type name, fully-qualified assembly name, and it's in a location where SharePoint can find the bits (like in the GAC).  You might be able to intuit those values for the My Links part from other stuff in this blog, or you can also try using Reflector to open up the assembly where the My Links part lives (should be microsoft.sharepoint.dll).  For LimitedWebPartManager my only real suggestion is to look in the SDK on MSDN.

Steve

Friday, May 11, 2007 12:32 AM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

I get a "Failure adding assembly to the cache: unknown error" message when I'm trying to add mysitecreatepart.dll to the GAC. Do you know how I can fix this?

Thanks in advance.

Erik

Friday, May 11, 2007 5:44 AM by Erik

# config quick launch for use by the provisioning mysite feature

Steve....can you think of a solultion that would allow me to "configure/customize" the quck launch at the same time I am using the mysite feature.  My application wants some static links (urls) added to the quick launch - and they want to hide the "documents" ---everything but myprofile and  mysites....on the quick launch at the mysite level.  Of course I realize I can do that site by site...but then the mysite owner needs to be taught how...in this case....I want to have a preset configuration for quick launch.  TNX

cafearizona

Friday, May 11, 2007 4:37 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve.  

I am having a problem using the ADD action.  All other actions work - i.e. I can delete, move and set properties of web parts but I cannot add any web parts.  Using the example in the MySiteStaplee.xml all the actions were performed except for the first one - adding the Pictures Web Part.  

Any ideas?

Jean-Pierre

Friday, May 11, 2007 7:20 PM by Jean-Pierre

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Erik.  Are you adding the dll to the GAC via command line or File Manager?  Are you adding it on the SharePoint server?  I haven't had any problems of this type yet, but I normally just do it from the command line with <path to my .net 2.0 files>\gacutil -i foo.dll

Steve

Wednesday, May 16, 2007 4:21 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hey cafearizona, I don't have precise code for you off the top of my head, but if you get the SPWeb for the My Site root you should be able to get at the SPNavigationNodeCollection off the spweb.navigation.quicklaunch, or something like that.  And then hopefully the SDK should be obvious enough about how to add or remove SPNavigationNodes from the collection.

Steve

Wednesday, May 16, 2007 4:29 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Jean-Pierre.  Are you sure your typename is correct for your ADD?  Have you looked in the event log and ULS logs for error info?

Steve

Wednesday, May 16, 2007 4:31 PM by Steve

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

This article is very useful, great job!

Are you familiar with Knowledge Network? We have created a custom site definition for the My Site Host and created a site using that template. After installing Knowledge Network, we tried to activate the KN Feature in the My Site Host but the web parts and pages that were supposed to be added were not added to the site. After doing some investigation, it turned out that the KN feature is not activated properly if SPSMSITEHOST is not the template used to create the site.

We are planning to delete the existing My Site Host that used the custom site definition and create a new one using the OOB site definition. We'll just create Features that will apply our customization to the My Site Host. Do you know how we can smoothly move the existing personal sites hosted in the My Site Host into the new one without causing harm to them?

Thanks in advance! =)

Wednesday, May 16, 2007 10:05 PM by anne

# Customizing MySites

Here is a great article on the right way to customize MOSS MySites. Thanks to Jingmei for bringing this

Thursday, May 17, 2007 3:05 PM by Technical Weblog of Eric Charran

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi anne.  I'm familiar with KN but haven't done anything with it recently.  As far as your scenario I would test it out in a lab obviously, but I would think about just using a database detach and then reattach once you've got your my site host reconfigured.

Steve

Friday, May 18, 2007 1:06 PM by Steve

# Anpassung der MY Site

Monday, May 21, 2007 9:19 AM by Daniel's Blog

# How To: Add a feature to an out-of-the-box site definition

I often get asked how one should approach adding features to the out-of-the-box site definitions. On

Wednesday, May 23, 2007 7:30 PM by edhild's WebLog

# re: Customizing MOSS 2007 My Sites within the enterprise

I have your solution installed, but I am having a little problem with configuring OWA web parts. My webparts require the mailbox to be the entire email address. When I just use just the account name, I get page cannot be displayed. Please advise. Thanks!!

Saturday, May 26, 2007 5:07 PM by Terry Morris

# Customizing MOSS 2007 My Sites within the enterprise

Steve Peschka one of SharePoint Rangers team, he is writing in the official blog of the SharePoint Product...

Saturday, May 26, 2007 6:36 PM by Content Management Techniques [Shady Khorshed - MVP]

# Problem changing property of the Collegue Tracker webpart?

Hi, and thank you so much for this feature. I've resently installed it with a customer, and it's solved my two main issues: Change default masterpage, and automatically set the correct properties to the calendar webpart. :)

In adition the customer wants to change a property for the Collegue Tracker webpart. They do not want to track membership changes. I've edited the xml file, adding another WebPartAction section as follows:

<WebPartAction>

<assemblyName></assemblyName>

<className></className>

<zoneID></zoneID>

<zoneIndex></zoneIndex><typeName>Microsoft.SharePoint.Portal.WebControls.ContactLinksMicroView</typeName>

<Action>SetProperties</Action>

<Properties>

<Property Key="ShowMembershipChanges" Value="false"/>

</Properties>

</WebPartAction>

I can't get this to work. After a personal page has been created, this property is still checked. It seems like the property is not available until the user has accessed "Edit shared webpart" and "OK". When I "Export..." the webpart right after the site has been created, this property is not present in the dwp xml file. If I do another export after "Edit shared webpart" and manually uncheck the property, the property is present in the dwp xml.

Do you have any tips for me?

Regards

Elin Kolloen

Tuesday, May 29, 2007 3:41 AM by Elin Kolloen

# re: How to Customize OOTB Welcome Message in My Home at My Site?

Experts!

Does anybody know how to customize the welcome text in My Home, i.e. "Describe yourself and help others find you and know what you do ..." to something else? It seems that the webpart responsible for this display welcomewebpart.dwp is pulling the data from the content database. Is it possible to have it look up data from somewhere else? Our client wanted the text customized to reflect the organization culture. I needed to make it work in two days. Please help.

Thanks in advance!

Weitong

Wednesday, May 30, 2007 1:30 AM by Weitong Liu

# Thanks and minor tweak

Hi Steve,

Thanks for putting this together.  This post has obviously helped a lot of people.

I ran into a little gotcha and wanted to share a hack-around to the release from CodePlex.  If you try to set the Height property on some web parts via the config file you may run into an 'ambiguous match' error.

Here is some code, added to the SetWebPartProperties method, right at the top of the try block:

                   // NOTE: Hack to get around the 'ambiguous match' error

                   //       for the Height property.

                   if (String.Compare("Height",

                       wpa.Properties.Property[p].Key, true) == 0)

                   {

                       xWp.Height = wpa.Properties.Property[p].Value;

                       continue;

                   }

It isn't pretty but it does work.

Wednesday, May 30, 2007 1:22 PM by Jason Weber

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve, I'm working on an installaton where I'm using your mysite create and my site create part.  I seem to be getting some errors when I am doing a full crawl of the content.  The errors are in the application log.  Most of them are related to a cewp where I am tryhing to set the frame property and the web part visibility property.  It happents on both my test syhstem and my production system.  Have you experienced any situation where the search content crawl is impacted with the  mysitecreatepart stuff?

Wednesday, May 30, 2007 4:49 PM by cafearizona

# re Weitong

Hey Weitong, I had a customer that didn't want one of the lines ine  the Welcome web part...so I used Steve's example of deleteing that web part and added a content editor web part with the text that Iwanted.  The url's are relative to the site the user is one.....so my cewp displays the same thing as the welcome web part but doens't display the line that tells them how to add web parts (customer requirement)  I set the name (title) of the web part to the same text as the welcome part....so no one knows the diff.

Wednesday, May 30, 2007 9:28 PM by cafearizona

# errors with cewp when loaded with the mysitestaplee.xml

Following up on my question regarding the mysitecreatepart errors. I found that setting the frame and visibility and content for a cewp in the mysitestaplee.xml throw errors in the application event log.  They also did not set the properties on the part- so I deleted those propeerteeis from the xml and the errors that the were generated when I run the content crawler went away.  I still don't know why the content crawler would catch/create erros from the mysitecreatepart....but the corrective action seems to make the issue go away.

Thursday, May 31, 2007 11:40 AM by cafearizona

# rss aggregator web part

How do you set the feedurl property of the rss aggregator web part from the provisioning script. Do you have to delete it first and then add it setting the property value?  If so, what is the class name of the rss aggregator web part?  Thanks

Thursday, May 31, 2007 1:14 PM by cafearizona

# re: Cafearizona

Hey Cafearizona, thanks very much for your suggestion on using a custom CEWP to display the custom welcome message in My Home instead of the OOTB personalwelcomewebpart. I am battling with setting the properties in the xml file for CEWP to load the content, i.e. text and links in there. If you have a working sample, could you possibly share the knowledge by posting the code here? guys like me in the SharePoint land would certainly appreciate that!!

Thanks a lot, Cafearizona!

Weitong

Thursday, May 31, 2007 3:23 PM by Weitong

# re: weitong here is the .xml to load a cewp..the entire mysitestaplee

<WebParts>

<WebPartAction>

<assemblyName>Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</assemblyName>

<className>Microsoft.SharePoint.Portal.WebControls.ThisWeekInPicturesWebPart</className>

<zoneID>MiddleRightZone</zoneID>

<zoneIndex>10</zoneIndex>

<typeName></typeName>

<Action>Add</Action>

<Properties>

<Property Key="ImageLibrary" Value="Shared Pictures"/>

<Property Key="Title" Value="My Pictures"/>

</Properties>

</WebPartAction>

<WebPartAction>

<assemblyName>Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</assemblyName>

<className>Microsoft.SharePoint.Portal.WebControls.ContactFieldControl</className>

<zoneID>MiddleRightZone</zoneID>

<zoneIndex>12</zoneIndex>

<typeName></typeName>

<Action>Add</Action>

<Properties>

<Property Key="Description" Value="Use to display details about a contact for this page or site"/>

<Property Key="Title" Value="My Contacts"/>

</Properties>

</WebPartAction>

<WebPartAction>

<assemblyName>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</assemblyName>

<className>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</className>

<zoneID>Bottom</zoneID>

<zoneIndex>13</zoneIndex>

<typeName></typeName>

<Action>Add</Action>

<Properties>

<Property Key="Title" Value="      "/>

<Property Key="ContentLink" Value="http://moss2007_portal:8081/bottom_links.html"/>

</Properties>

</WebPartAction>

<WebPartAction>

<assemblyName></assemblyName>

<className></className>

<zoneID>MiddleLeftZone</zoneID>

<zoneIndex>3</zoneIndex>

<typeName>Microsoft.SharePoint.Portal.WebControls.RSSAggregatorWebPart</typeName>

<Action>Move</Action>

</WebPartAction>

<WebPartAction>

<assemblyName></assemblyName>

<className></className>

<zoneID>Bottom</zoneID>

<zoneIndex>5</zoneIndex>

<typeName>Microsoft.SharePoint.Portal.WebControls.OWACalendarPart</typeName>

<Action>Delete</Action>

   </WebPartAction>

   <WebPartAction>

        <assemblyName>Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</assemblyName>

        <className>Microsoft.SharePoint.Portal.WebControls.OWACalendarPart</className>

        <zoneID>MiddleLeftZone</zoneID>

        <zoneIndex>2</zoneIndex>

        <typeName></typeName>

        <Action>Add</Action>

        <Properties>

        <Property Key="Title" Value="My Outlook Calendar"/>

        <Property Key="OWAServerAddressRoot" Value="http://moss2007_ex2k3/exchange"/>

        <Property Key="MailboxName" Value="[ACCOUNTNAME]"/>

        </Properties>

</WebPartAction>

<WebPartAction>

<assemblyName></assemblyName>

<className></className>

<zoneID></zoneID>

<zoneIndex></zoneIndex>

<typeName>Microsoft.SharePoint.Portal.WebControls.PersonalWelcomeWebPart</typeName>

<Action>Delete</Action>

</WebPartAction>

<WebPartAction>

<assemblyName></assemblyName>

<className></className>

<zoneID></zoneID>

<zoneIndex></zoneIndex>

<typeName>Microsoft.SharePoint.Portal.WebControls.SiteDocuments</typeName>

<Action>Delete</Action>

</WebPartAction>

<WebPartAction>

<assemblyName></assemblyName>

<className></className>

<zoneID></zoneID>

<zoneIndex></zoneIndex>

<typeName>Microsoft.SharePoint.Portal.WebControls.BlogView</typeName>

<Action>Delete</Action>

</WebPartAction>

<WebPartAction>

<assemblyName>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</assemblyName>

<className>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</className>

<zoneID>MiddleLeftZone</zoneID>

<zoneIndex>1</zoneIndex>

<typeName></typeName>

<Action>Add</Action>

<Properties>

<Property Key="Title" Value="Get Started with My Site"/>

<Property Key="ContentLink" Value="http://moss2007_portal:8081/bottom2_links.html"/>

</Properties>

</WebPartAction>

</WebParts>

Thursday, May 31, 2007 6:15 PM by cafearizona

# re: Cafearizona

Thanks a million, Cafearizona! I tried your xml file and it worked great except that I had some trouble displaying the content in the CEWP.

I got this error: "Cannot retrieve the URL specified in the Content Link property. For more assistance, contact your site administrator."

I've tried pointing it to SharePoint pages such as /Pages/mypage.aspx and /_layouts/mypage.aspx and /_layouts/mypage.htm and none of them worked.

I've also tried creating a dummy site with an html page on the same web server which is probably what you did in your sample. It didn't worked for me either.

What am I missing here?

Thanks again and look forward to your reply.

Weitong

Friday, June 01, 2007 2:29 AM by Weitong

# re: Cafearizona

Actually, it worked when I pointed it to an html page on a different site, the last approach I tried in the previous post. Is there any way to make pointing to SharePoint pages work so that site admins can maintain the content themselves?

Thanks,

Weitong

Friday, June 01, 2007 2:44 AM by Weitong

# weiton - cewp on my site

Yeah, I had similar problems.  I wanted to point it to a doc lib...so everything would be in moss.  with an OOTB cewp..you could put the link to file in a doc lib...and press the test link ..and it would display what you want.  But it would through that same error you see when you viewed the page.  So I put it in a virtual web...the guy at the site I am working on had to use a moss svc account for anynoum access to make it work on his production system.  

If you get it working for a sps 2007 library...let me know.  I had to drop that.

Friday, June 01, 2007 7:22 PM by cafearizona

# Adding the Personal Documents Web Part

Is there a way to automatically load the "Personal Documents" web part?  I've been experimenting on what web parts I can load when the My Site is created, but I cannot find a way to have the Personal Documents added.  I know you can click on that item in the left side navigation, but I also need it on the main section.  Do you know if that's possible and if so, what is the name of the web part?  Thanks!

Tuesday, June 05, 2007 11:33 AM by Derek

# re: Derek....try this for the docs on the site (personal docs)

<WebPartAction>

<assemblyName>Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</assemblyName>

<className>Microsoft.SharePoint.Portal.WebControls.SiteDocuments</className>

<zoneID>MiddleLeftZone</zoneID>

<zoneIndex>1</zoneIndex>

<typeName></typeName>

<Action>Add</Action>

</WebPartAction>

Tuesday, June 05, 2007 9:54 PM by cafearizona

# re: Terry Morris - OWA

Terry, the way Steve has programed the mysitecreate...I believe you need to enter something like "http://moss2007_ex2k3/exchange" for the value on the key: Key="OWAServerAddressRoot"

In this case....you replace moss2007_ex2k3 with the name of your exchange server.

Also, when you use the accountname key and value...remember, this is the AD accountname...if your app uses a different name for the actual email address...you will get results like you have described.  ie...account name is baker.craig but the email address is craig.baker.  In the latter case, you will need to apply a reciepant policy to add an email alias to all of your mail boxes so owa can find the email address.

Wednesday, June 06, 2007 12:13 AM by cafearizona

# re: Elin Kolloen colleague tracker

Hi Elin....I had trouble trying to set properties on the cewp...I think I saw somewhere that Steve's code will only handle simple string properties.

Wednesday, June 06, 2007 2:12 PM by cafearizona

# file not found when deploying slightly modified master page

Hi Steve,

I seem to have a similar problem to what Rob M was having. I can deploy your master page without a problem. I can deploy the minimal.old page without a problem.

But the minute i try removing the quick launch out of the steve.master and deploying it, when it creates a mysite, it comes with the 'file not found' error.

Also, when I try modifying the minimal.old.master page, i also get the file not found error when i try to deploy.

I tried looking at the event log but i can't find anything.  

Any ideas?

Thursday, June 07, 2007 9:16 AM by sun

# re: sun

Sun...a work around is to put the following style in your working pages.  It will make the quick launch invisible.  Put this above the body tag in your master page that works.

<style>

.ms-quicklaunch {

visibility:hidden;

}

</style>

Thursday, June 07, 2007 11:16 AM by cafearizona

# re: view profile of user that has not created a my site

Steve, Your feature and staple are Great!  I am trying to understand a quirk.  If I don't have the feature installed...I can view the profile of anyone that has had their profile imported - regardless of weather they have created a my site.  HOWEVER - if I install and activate the feature - only a user with "full control" can view the profile of a user that has not created a my site.  user's with read but not full control permission on my site get access denied screen instead of the actual profile.  Thoughts?

Thursday, June 07, 2007 11:25 AM by cafearizona

# re: Derek....try this for the docs on the site (personal docs)

Thank you cafearizona for your quick response on using "SiteDocuments"!  I had looked into that before and it's very close to what I need, but unfortunately, it's missing the "Add new document" link which we need.  If there was a way to get that to show for SiteDocuments and remove the "tasks" portion for that webpart, that would be perfect.

Basically what I need is a listed of documents for the user with the ability to add a new document right on the webpart.  I found this (Microsoft.SharePoint.WebPartPages.UserDocsWebPart), which again is close, but it still does not have that "add new document link".  I believe it's because that web part just rolls-up all documents for a user and that's it.

Any other idea?  Thanks!

Cheers,

Derek

Thursday, June 07, 2007 12:47 PM by Derek

# re: public profile of users that have not created mysite

I've set up a clean portal....did an import of usser profiles  from ad.....did a full crawl....and then (without installing mysitecreate feature) searched for a user that did not have a personal site created but was in the profile import.  the search results yield the name of the user, and when you click on the link...the public profile page for that user comes up - even though the user has not created a my site yet.

Next - I installed and activated the feature.  Without creating a my site - simply searching for a user that was in the profile import - you get the expected search results - however - when you click the link you get a sharepoint page that says  Error: access denied and some additional verbage that says request access or sign in as different user.  So activiating the mysitecreate - when activated - prevents you from viewing public profile of a user that has not yet created a my site.  For large enterprises - with several thousand profiles - this is not desirable.  

So - after you activate the my site create feature and staple - you can only view the public prfile of users that have actually created their own my site.

after I uninstall the feature...and do a search for a user - i get the search results page..when I click on the link - I get

An error occurred during the processing of /_catalogs/masterpage/steve.master. Could not load file or assembly 'MySiteCreatePart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cb1bdc5f7817b18b' or one of its dependencies. The system cannot find the file specified.

Thoughts

Thursday, June 07, 2007 4:03 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Thanks for this. Now can we add, say an announcement web part with pre-populated message in it, in the xml manifest file.

Friday, June 08, 2007 6:27 PM by Peter

# re: Customizing MOSS 2007 My Sites within the enterprise

Thanks, I will try it. We got bitten when an early user created a My Site, and now he can't access it.

Tuesday, June 12, 2007 1:39 PM by SigDeveloper

# re: Customizing MOSS 2007 My Sites within the enterprise

I am trying to create a KPI list on MY Site but the option is not available.  It is available on any other site except My Site. Is it possible?

Thursday, June 14, 2007 11:00 AM by Ron

# re: create a KPI list on MY Site

Create a top level site and add the kpi stuff you want on that.  Then go to central admin....Shared Services Administration: SharedServices1 > Personalization site links  .add the url of the top level site that has your kpi stuff...add permissions...and a short nanme...and you will find this page shows up as a tab on the horizonatal nav bar at mysite (between the my home & my profile tab).  BTW...I think this is the same way they do the Role Based mysite stuff for the splendid 7.

Thursday, June 14, 2007 3:03 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

I am having issues with updating mysite templates and applying them to mysites that were created prior to the update. Any thoughts on this.. basically, how do we update mysites templates on the fly for both existing and new mysites created on the

Thursday, June 14, 2007 5:50 PM by Saumya Parameswaran

# re: Saumya Parameswaran

Hey Saumya...I thought that any change to the master page (steve.master or whatever) was reflected in your next page refresh.  However - if you change the web part provisioning - in the xml file....this only applies to new sites created...not the ones you have already created.  Is this what you are asking about?

Friday, June 15, 2007 12:50 AM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Where can I find the  assembly and class names of the different Microsoft buit-in web parts I can add to the manifest xml? Any links would be appreciated.

Thanks.

Friday, June 15, 2007 1:03 PM by Peter

# re: Peter - assemblies and class for web parts

Peter, the *.dwp and *.webparts are the place to find this info.  For example in the hive...at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MySiteLayouts\DWP you will find a dwp for each OOB my site web part.  Open one of the dwp's and you will find the class name and the unique assembly name.  You may have to poke around the hive to find the rest of the webparts...I have not had much success installing 3rd part web parts...even though it would appear that if they are in the gallery of my sites you should be able to install them.  

Also...if you export any existing web part at any location on the portal...the resulting dwp or *.webpart will show the class and assembly.  Hope this provides some assistance to your query.

Friday, June 15, 2007 5:04 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

I cannot get my RSS working in My Site

It gave me this error:

"An unexpected error occured processing your request. Check the logs for details and correct the problem."

although it is working in other pages outside My Site

helllllp !

Wednesday, June 20, 2007 2:22 AM by Emma

# re: Customizing MOSS 2007 My Sites within the enterprise

My master page relies on a css file for style layout, etc.  We're using this same master page for the top level site collection.  When updating the master page viaa Site Settings, there is an option to include the CSS file used for that master.  Would you know how to include this CSS for the MySite customizations via Features?   Thanks!

Wednesday, June 20, 2007 10:39 AM by JakeJ

# re: Customizing MOSS 2007 My Sites within the enterprise

I deleted a users mysite via stsadm. Now when the user clicks on the mysite link to recreate his site the creation process ends with a webpage cannot be found error.

I have the problem only when the stapling feature is installed. Any ideas?

Wednesday, June 20, 2007 12:20 PM by MikeD

# Issue with MySiteStaplee and a proposed Workaround

Issue with MySiteStaplee and a proposed Workaround

I have posted here and at codeplex on an issue I encountered with the MySiteStaplee feature.  I found - with my installation - that once I activated the MySiteStaplee feature - sharepoint users could no longer view the public profiles of users imported via AD - unless said user created a mysite.  In large enterprises - this is not desirable - one of the great OOB stories on search and profiles is you can see them as soon as they are imported and a new crawl has occured.....people search OOB is great.  My experience with the MySiteStaplee feature is that it broke this feature - and I have not been able to get a response - Believe me - I have tried.  

So - as a novice to Steve's code - I think the issue lies in the master page.  I would like to take the web part provisioning part of Steve's code - and combine it with Steve Hillier's Themechanger feature.  It has been my experience that the themechanger feature can be deactivated without adverse affect to your my site collections...you can do most of the branding with the theme changer - specifiying your own css.  Then if I could get the web part provisioning to work as stand alone feature - I could get the best part of Steve's effort to be reflected in a branded corporate enterprise my site.  

I haven't seen much of Steve on this blog recently - I need to get some cycles so I can try this out - would be very curious what the rest of you think about this.  In reality I had to deploy an alternative site provisioning at a corporate enterprise - the mysitestaplee had one to many issues.  Steve...what are your thoughts?

Wednesday, June 20, 2007 9:57 PM by cafearizona

# re: JakeJ ThemeChanger web part will provide a solution

Jake...try using Steve Hillier's ThemeChanger feature on Codeplex ( http://www.codeplex.com/features) .  It allows you to specify a default theme for a site definition...as well as a default (alternative) css.  I've used it with my site OOB provisioning without any undesirable consequences.  Nothing breaks if you deactivate the feature - nothing breaks if you change the xml code for the feature either.  LMK if this is what you are looking for.

Wednesday, June 20, 2007 10:01 PM by cafearizona

# re: MikeD --webpage cannot be found

Hi Mike, I got this when I change the xml to a new master file ( say from steve.master to cafearizona.master) and then deleted steve.master (steve.master was used to provision some sites).  I am very impressed with Steve's direction and contribution to the community - but this part mysitestaplee is a bit quirky.  See my post on June 7th about the public profile for some more details.  At any rate, just put back a master file with the name that was originally used ...and that error will go away...doesn't even have to be the orignal master file (i think)..just the name.  LMK if this addresses your issue.

Wednesday, June 20, 2007 10:05 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

We want to do a bulk "upload" employee Profile pictures, and not allow the users to change them.

Would this involve a customization of My Site's, or could it be done by modifying _layouts/EditProfile.aspx ?

We could either remove the Picture part of Edit Details page, OR disable/remove the Choose Picture and Remove buttons.

Thursday, June 21, 2007 7:26 PM by CliffC

# re: CliffC - user pic url's from ad

I've looked into this for a client.  You may want to check out central admin -->

Shared Services Administration: SharedServices1 > Manage Policy  

you can mess with the policy for the picture property for the enterprise

you've got 3 choices...enabled, none, disabled.

However, you may ALSO want to check central admion - shared services ...

_layouts/MgrProperty.aspx

bread crumb  -->

Shared Services Administration: SharedServices1 > User Profile and Properties > View Profile Properties  

and map the url for the picture to a field that comes from the AD import.  That way you can bulk upload pictures to the AD profile info  (a url) and then pass the url to the picture property when the profile is imported.

You may find you don't have to modify editprofile.aspx (microsoft will like that) and just pump a url into a field in AD..map that to the picture property.....bingo bango....upload all pictures and disallow the user from changing it.  LMK if this helps.

Thursday, June 21, 2007 8:34 PM by cafearizona

# re: ThemeChanger web part will provide a solution

Thank you for the suggestion, CafeArizona.  I will try the ThemeChanger feature.  As a workaround for MySite customization, I simply embedded my entire stylesheet within my master page in a <style> tag.  I did have to update the paths to image files, but it seems to be fine so far.  It's not the best solution since the master page is developed seperately as it is the master page for the entire Site Collection.  Thanks again! -JakeJ

Friday, June 22, 2007 2:29 PM by JakeJ

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

 I kept getting an error in FeatureActivated at line "SPWeb curWeb = SPContext.Current.Web;"

To get to the current web object I had to use this:

"SPSite currentSite = (SPSite)properties.Feature.Parent; SPWeb currentWeb = currentSite.OpenWeb();"    

As shown here:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1257975&SiteID=1

and here: http://blogs.msdn.com/sridhara/archive/2007/05/19/customizing-mysite-in-moss-2007.aspx

Tuesday, June 26, 2007 1:48 PM by phil

# re: Phil and url for SridhaRa's post

I checked out your reference to the sridhara blog.  Interesting...but I'm just wondering why the sridhaRa post doesn't do stapling to the SPSPERS#0 site definition.  I am not an expert - however - I can't imagine the scaleabilty of that code if it executes every time a site is created.  The nice thing about Steve's example is he shows us how to staple it to a site definition.  I've tried posting to sridhra's blog....but it never shows up.  Also, why "if" for the mysitehost - it seems the administrator can change the layout of the public facing site and everyone else then sees those changes......so again...why add the overhead to the enterprise if you can just do this once and be done ?  What do the rest of you think?

Saturday, June 30, 2007 5:19 PM by cafearizona

# re: Customizing MOSS 2007 My Sites within the enterprise

Great blog,

How would I create a list(calendar) in the My Site area for all new users?

Thanks for the help!

Sunday, July 01, 2007 11:49 PM by jmager

# customizing my site feature staple won't work on german sharepoint edition

Hey there,

i'm using the german edition of sharepoint, we did a full install on a single server, and installed the sql server separately after the installation of sharepoint.

when i take the example code and xml files everything works fine, but if i slightly change the xml files by changing the mastersite name or rename my masterfile as steve.master an unexpected error cccurred creating the mysite. also tried different codings for the xml files but no chance to get the feature running. is there any workaround? what am i doing wrong?

thanks in advance!

Olaf

Monday, July 09, 2007 8:38 AM by Olaf

# re: Customizing MOSS 2007 My Sites within the enterprise

So I have followed your instructions to the tee, but after everything is done nothing happens.  When I look in the list of deployed features these features are not even listed as being depoyed or anything.  What do you think the issue could be?

Monday, July 09, 2007 11:41 AM by Corey

# re: Corey

if so, did you make sure it has the tags to the webpartcreate.dll or whatever the name is.  I've always done his install manually, without the *.bat files.  that way I can see the command working or not in the cmd window.  Hope this helps.  

Monday, July 09, 2007 9:50 PM by cafearizona

# re: olaf

Are you wanting to populate the list...or just have it included as an empty list?

Monday, July 09, 2007 9:51 PM by cafearizona

# re: Corey

Corey, can you look at your event log files and see if you are catching some errors when you try to create a site.

Monday, July 09, 2007 9:56 PM by cafearizona

# re: Olaf

hey cafearizona, i'm new to sharepoint, and haven't any clue what you exactly mean by populating the list?

you think of filling a doclib with data, or show specific webparts, or the list of sites, or a list definition?

at first i just wanted to brand the mysite with the design of our company. therefore i need to change the masterpage, step two would be to change the webparts and menu items...

if i take steve's masterpage and just add two images save it, install die dll's in gac, install and activate the features i get an unexpected error during the creation of the mysite.

thanks for helping me out!

Olaf

Tuesday, July 10, 2007 5:03 AM by Olaf

# Deploy a SharePoint list template to SharePoint MySites

A collegue of mine prepared a list in her SharePoint 2007 MySite. Her question was how she could make

Tuesday, July 10, 2007 4:49 PM by Ton Stegeman [MVP] weblog

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

Many thanks for the post, it is very useful and it looks exactly the sort of thing I wish to achieve. I am looking to modify MySites depending on persona's or role profiles. I have a couple of questions regards the stapler feature, not being a coder myself:

1) Would a .Net developer be able to easily modify the code so that it will build the mysite features based on audiences or user groups and then build a page with web parts, lists and libraries based on that role profile.

2) Without attempting to restrict the users too much, after all the purpose of mysites is an individual space, but can we remove the availability of web parts for them to manually add to their site.

3) Can this feature also be used in tandem with the 7 MySites role profiles that have been developed by Microsoft?

Kind regards

Darren

Wednesday, July 11, 2007 5:07 AM by Dazza

# re: Customizing MOSS 2007 My Sites within the enterprise

Hello

I have the problem that I always get an access denied error, when I try to access a users my profile page. This even doesn't work for users that already have a created a mysite. And I get the error even then, when a users wants to access his own my profile page.

I can only access a myprofile page, when I'm logged in as administrator.

Any thoughts on that?

Thank you very much

MikeD

Wednesday, July 11, 2007 5:37 AM by MikeD

# re: Customizing MOSS 2007 My Sites within the enterprise

Thank you for creating this.

How would I create a list (calendar) for all new users on there MySite.

Can I use MySiteCreate 1.0 to do this?

Thanks for any info!!

Wednesday, July 11, 2007 9:38 AM by jmager

# re: Customizing MOSS 2007 My Sites within the enterprise

Thank you for creating this.

How would I create a list (calendar) for all new users on there MySite.

Can I use MySiteCreate 1.0 to do this?

Thanks for any info!!

Wednesday, July 11, 2007 9:40 AM by jmager

# re: Customizing MOSS 2007 My Sites within the enterprise

Ok, so my new issue is the following:  All I want is the UI to change currently for mysite's, so I do not need the stapler just the staplee.  I added my masterpage instead of steve.master and I made the appropriate code changes.  Now when I install and activate it renders the entire portal useless.  I get an error 403 for everything.  I then have to force uninstall to get back to where I was.  Any thoughts to this?

Wednesday, July 11, 2007 12:19 PM by Corey

# re: Customizing MOSS 2007 My Sites within the enterprise

THanks for such a great post. I have the feature stapeling working great with the excpetion of 2 issues.

1) http://www.mysite.com/personal/derekc/default.aspx  is showing the custom master page but http://www.mysite.com/sites/mysites/Person.aspx?accountname=domain\myname is not.

2)http://www.mysite.com/sites/mysites/Person.aspx?accountname=domain\myname is not publicly accessible to the outsite world.

Does anyone have a thought on why these things would be happening?

thanks,

dcp

Tuesday, July 17, 2007 2:38 PM by DCP

# re: Customizing MOSS 2007 My Sites within the enterprise

I am having problems adding a Page Viewer Web Part. It is not a web part that is naturally within a My Site but I have added it so that it appears within the Web Part gallery, but when I try to put it on the page at creation it throws errors.

Error checking web parts: Value cannot be null.

Parameter name: webPart

Any help on this would be appreciated. I am trying to add the page viewer to pull in outlook web access as we don't like the views of My Inbox web part.

Thanks

Wednesday, July 18, 2007 9:54 AM by shoot66

# re: Customizing MOSS 2007 My Sites within the enterprise

This is a good article.  We are in the process of planning for MOSS 07 deployment.  In our situation, we don't plan to use MySite.  Instead, we want to incorporate some of my MySite items such as the MyProfile page onto the main portal.  In short this is what we want to do within the main portal:

1) Add a navigation tab on top to say "My Page".  Under this, I would have "My Mail", "My Profile".  Note, the My Porfile page can be exactly the same as the one in MySite so that users can also modify hi/her profile.

2) The My Mail page would be pre-populated with the Exchange email portlets and it is locked down so that users won't be able to customize.  The challenge here is, how do your automatically populate each user's login ID, password, Exchange server name for each of the mail portlets?

To sum things us, we don't want to use MySite but want to incorporate the features in the main portal instead.  We don't want to give the user the ability to customize these pages.  Has anyone done something similar to this or have suggestions how I might be able to accomplish this?

Thanks

Thursday, July 19, 2007 10:32 AM by ultragc

# re: Customizing MOSS 2007 My Sites within the enterprise

Ok, I have this feature running and it's great, but I have one question that I can't seem to get to the bottom of.  

I want to now add in addition to the other web parts the OWA tasks part and a link part populating it with links.  Please any thoughts?

-Corey

Friday, July 20, 2007 11:44 AM by Corey VanDyke

# re: Customizing MOSS 2007 My Sites within the enterprise

I have the problem. I would like to show calendar on Mysite which type of the calendar is ListviewWebpart (Do not use OWACalendar)on middle page to show all day and all event. I wish when fist time user click on mysite it will generate all webpart and show calendar automatically.

I used to add webpart 'ListViewWebpart' and set property into MySiteStaplee.xml but do not success.

Thank you so much,

Thursday, July 26, 2007 1:05 AM by Kitt

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve. Create Blog tab is rendered from default.aspx page of MySite (from MiniConsole), not from master page. Also, it is not in WebParts collection, so the above code does not help. Nonetheless, somehow we have to get rid of it. Any ideas?

Thank you,

Viktor

Friday, July 27, 2007 10:25 AM by Viktor

# re: Customizing MOSS 2007 My Sites within the enterprise (portal site connection)

Hi steve,

Unable to apply "portal site connection" setting to all.

Below is how i setup:

1. go to My Site: Site Actions: Site Settings,

under Site Collection Administrator, select Portal Site Connection. (** is this the correct place to do the setting? because from the Site Information, i can see the URL points to my site folder. not default one for all)

2. login using my own account. and i site collection administrator.

3. tick the connect to portal site and enter the address detail.

after this setting, i get the breadcrumb correctly. then i go to add a new user and go to my site, this new user have no breadcrumb.

please help.

thanks.

Monday, July 30, 2007 3:11 AM by ashley

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi.

I have run into a problem with broken MySite links after runnin the stsadm migrateuser command to rename a web after the corresponding user is renamed in AD.

After running the command (stsadm -o migrateuser -oldlogin "ACTGOV\ian ipsox" -newlogin "ACTGOV\ian ipsoy" -ignoresidhistory) we found that the user was still able to log on with the same Sharepoint access (site membership etc) as before, except that clicking on the MySite link first showed the error "An unexpected error has occurred.  

Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator."

It appears that the MySite was not migrated.  Subsequent attempts to migrate this manually using the "stsadm renameweb" command generated the error "Cannot move the root web of a site collection."

Tuesday, August 07, 2007 9:10 PM by Bob

# re: Customizing MOSS 2007 My Sites within the enterprise

Further to my last post, when I repeated the exercise today, logging on as the user after the migrate, then clicking on the "My Site" link, I got the following error:

"Your personal site cannot be created because a site already exists with your username. Contact your site administrator for more information."

Wednesday, August 08, 2007 2:38 AM by Bob

# re: Customizing MOSS 2007 My Sites within the enterprise

... and furthermore, the user profile was able to be manually altered to fix the reference to the "my site".

Wednesday, August 08, 2007 3:10 AM by Bob

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi

I saw some talk about removing "Create Blog" tab on mysite. Was anyone successful? If so, would you mind sharing it?

thanks

Dee

Thursday, August 09, 2007 1:17 PM by Dee

# re: Customizing MOSS 2007 My Sites within the enterprise

I want to populate list web parts associated with lists based on my selection from drop down in another web part. Can sme1 guide me how to achieve this functionality

Friday, August 10, 2007 6:34 AM by Nishant

# Modifying Mysites in MOSS2007

Great article on how to modify the &quot;out of the box&quot; MySites across the organisation using Master

Monday, August 13, 2007 6:49 AM by codeandstuff's blog

# MySite Customization

This continues to come up during customization discussions. This is a good place to start. Another great

Wednesday, August 15, 2007 4:27 PM by Steve Caravajal's Ramblings

# MySite Customization

This continues to come up during customization discussions. This is a good place to start. Another great

Wednesday, August 15, 2007 6:45 PM by Noticias externas

# Social Networking and My Sites

The buzz these days at least in some circles seems to be social networking. What's cool about this is

Monday, August 20, 2007 4:33 AM by Joel Oleson's SharePoint Land

# re: Customizing MOSS 2007 My Sites within the enterprise

Hello

I am still have the problem that I always get an access denied error, when I try to access a users my profile page. This even doesn't work for users that already have a created a mysite. And I get the error even then, when a users wants to access his own my profile page.

I can only access a myprofile page, when I'm logged in as administrator.

I tried a thousand of things to make it work. But with no success.

Please help

Thank you very much

MikeD

Wednesday, August 22, 2007 11:59 AM by MikeD

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve,

Where are the flags persisted for the web.Properties.Add(KEY_CHK, "true"); ? Can I examine the state of this property through the SharePoint admin web UI?

Also, I assume they are not commited until the update method is called. Is this correct?

I ran into a problem where the the key check code was returning true for a MySite that was in the process of being instantiated. I had deleted the site collection for this user but it seemd like the property was still hanging around. This is a dev box so it could be some corruption due to wild a** programmers at work.

Finally, why not set the property and call update immediately after the check to ensure that the code is logically grouped with with close proximity? Is it that you can only call the update method once per AllowUnsafeUpdates session? Should you read and apply the property update in a serialized code section?

Perhaps I am over-thinking this thing, but my concern is that that this code is hit at least 3 times during provisioning and I fear that this could set up a race condition. Is all provioning and execution of your code serial and synchronized?

kg

Wednesday, August 22, 2007 3:48 PM by Ken garove

# re: Customizing MOSS 2007 My Sites within the enterprise

I would like to set the default to "yes" for requiring check-out when you open a document for edit when someone creates a new document library.  Is this possible?  If so, how?

Also, I would like to know if there is a way to globally change this setting on existing document libraries.  Again, is this possible?  If so, how?

Finally, I would like to have all newly uploaded documents automatically checked-in when they are uploaded.  This would apply to existing and new document libraries.  Is this possible?  If so, how.

Thanks

Mark Smith

Thursday, August 23, 2007 12:19 PM by Mark Smith

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve,

I've implemented your mysite customization and it works really well (I used the source of codeplex). However I've run in to an issue when the code is unistalled.

My scenario is.

1. Install the MySiteCreate feature (All OK)

2. Create my MySite based on the custom Mysite (All OK)

3. Delete my Mysite site (Deletes OK)

4. Uninstall the MySiteCreate feature (Uninstalls OK)

5. Create my MySite with should now be based on the standard OOTB Mysite. (Error occurs and cannot be created.

6. Create a Mysite for someone who did not create a site based on the MySite create feature  (Create OK)

Is this a know issue with this method of mysite modification or is there something I can do to remove the dependency on the MysiteCreate feature for those individuals that have used it to create their site.

The error that occurs is as follows:-

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'MySiteCreatePart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cb1bdc5f7817b18b' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 5:  <%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/Welcome.ascx" %>

Line 6:  <%@ Register TagPrefix="wssuc" TagName="DesignModeConsole" src="~/_controltemplates/DesignModeConsole.ascx" %>

Line 7:  <%@ Register Tagprefix="IWPart" Namespace="Microsoft.IW" Assembly="MySiteCreatePart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cb1bdc5f7817b18b" %>

Line 8:  

Line 9:  <HTML dir="<%$Resources:wss,multipages_direction_dir_value%>" runat="server" xmlns:o="urn:schemas-microsoft-com:office:office">

Source File: /_catalogs/masterpage/FrondeMySite.master    Line: 7

I hope it's just something I've missed.

Thanks

Duncan

Monday, August 27, 2007 6:03 PM by Duncan H

# re: Customizing MOSS 2007 My Sites within the enterprise

So, I have been looking into customizing the My Site pages for my company's site for a few days now and this is the first page I have found to actually give me some good information. But, I am slightly lost. I am not new to Sharepoint but I am new to coding.

So, here are my questions:

Could you please tell me, will these instructions make it so that all the my site pages will look the same as my company's website that I have created a new master for?

Where do I find the feature.xml file to modify?

I am completely lost on these instructions since the master for my collaboration site looks completely different. Am I better off modifying the my site master page to look like my collaboration site?

Ruth

Thursday, August 30, 2007 3:41 PM by Ruth

# re: Customizing MOSS 2007 My Sites within the enterprise

I am unable to find any reference document on steps to rename a mysite. I am sure users changing names would be a common scenarion for companies but not sure how SharePoint would handle this. I understand that MOSS profile gets updated automatically (as a part of AD sync) and running migrateuser command updates all references but does the URL of my site change or is a new site created or URL remains the same?

Wednesday, September 05, 2007 3:36 PM by Sumit

# Personalice y aplique su propio dise&amp;#241;o a Sitios hechos en SharePoint 2007

Algunas preguntas relacionadas: ¿Cómo personalizo mi sitio de trabajo de SharePoint? ¿Cómo puedo personalizar...

Friday, September 07, 2007 1:58 AM by Luis Du Solier G. - SharePoint en Español

# Personalice y aplique su propio diseño a Sitios hechos en SharePoint 2007

Algunas preguntas relacionadas: ¿Cómo personalizo mi sitio de trabajo de SharePoint? ¿Cómo puedo personalizar

Friday, September 07, 2007 1:58 AM by SharePoint en Español - Luis Du Solier G.

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

I have a problem whith

SPFile thePage = curWeb.RootFolder.Files

it only contains a file (Blog.xsl)

Do you know why I don't have the default.aspx file ?

Sunday, September 09, 2007 6:41 PM by mschoum

# re: Customizing MOSS 2007 My Sites within the enterprise

I started modify MySiteCreatePart\PartCheck.cs

you find Begin Edit , End Edit

in this code snippet demonstate  how to add sitedocument webpart and Calendar to mysite.  

The first time user click mysite it will generate My Calendarr automatically to mysite ,you will see on left menu in submenu Lists

//get the web part manager

SPLimitedWebPartManager theMan =

thePage.GetLimitedWebPartManager

(System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);

foreach (WebPart wp in theMan.WebParts)

{

//check each web part to see if matches our typeName

if (wpList.ContainsKey(wp.GetType().ToString()))

wpList[wp.GetType().ToString()].wp = wp;

}

         // Begin Edit            

                           SiteDocuments site = new SiteDocuments();

                           site.Title = "SharePoint Sites";

                           site.ChromeType = System.Web.UI.WebControls.WebParts.PartChromeType.TitleAndBorder;

                           site.ShowTasks = true;

                           site.UserControlledNavigation = true;

                           site.UserTabs = "<?xml version=\"1.0\" encoding=\"utf-16\"?><ArrayOfSerializableTab xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><SerializableTab Type=\"UserChoice\"><Pair Text=\"Document Center\" Url=\"http://dev001/Docs\" /></SerializableTab></ArrayOfSerializableTab>";

                           wpList.Add(Guid.NewGuid().ToString(), new WebPartAction(site, WebPartAction.ActionType.Add, "MiddleLeftZone", "0"));

                           Guid folderId = curWeb.Lists.Add("My Calendarr", String.Empty, SPListTemplateType.Events);

                           SPList folderList = curWeb.Lists[folderId];

                           folderList.OnQuickLaunch = true;

                           folderList.Title = "My Calendarr";

                           folderList.Update();

         // end Edit

//now enumerate items in hash; can't do it in WebPart collection

//on SPLimitedWebPartManager or it fails

                           foreach (string key in wpList.Keys)

                           {

                               wpa = wpList[key];

                               switch (wpa.Action)

                               {

                                   case WebPartAction.ActionType.Delete:

                                       theMan.DeleteWebPart(wpa.wp);

                                       break;

                                   case WebPartAction.ActionType.Move:

                                       theMan.MoveWebPart(wpa.wp, wpa.zoneID, int.Parse(wpa.zoneIndex));

                                       theMan.SaveChanges(wpa.wp);

                                       break;

                                   case WebPartAction.ActionType.Add:

                                       theMan.AddWebPart(wpa.wp, wpa.zoneID, int.Parse(wpa.zoneIndex));

                                       break;

                                   case WebPartAction.ActionType.SetProperties:

                                       SetWebPartProperties(wpa, wpa.wp);

                                       theMan.SaveChanges(wpa.wp);

                                       break;

                               }

                           }

Tuesday, September 11, 2007 6:26 AM by kittiphong from revolictech

# Personalice y aplique su propio diseño a Sitios hechos en SharePoint 2007

Algunas preguntas relacionadas: ¿Cómo personalizo mi sitio de trabajo de SharePoint? ¿Cómo puedo personalizar

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

All I like to do is apply a different style sheet to My Site. How do I do this?

Wednesday, September 12, 2007 4:39 PM by Gopal

# My Site Creation Timeouts and managing MOSS's mess

Body: I’ve been working in my demo VM again today and had an issue where the creation of a MySite was

Monday, September 17, 2007 9:49 AM by Mirrored Blogs

# thax

Adding,moveing,deleting .dwp is fine but when it comes to .webpart then PartCheck gives an error when checking the typeName. Any idea what might be wrong?

Monday, September 17, 2007 10:22 PM by thorhannes axelsson

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

 I manage to apply the MySiteCreate with success. Now I am trying to add a pageviewer webpart and a xmlformview webpart using the feature stapling method but it seems to give problems saying that the webparts are either deleted or invalid. I do know those webparts are they but just couldn't get them to show up. Any ideas?

Tuesday, September 18, 2007 11:58 PM by Nicholas

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

I have a problem when I want to create mysite.

I get an error: "An error occured during the compilation of the requested file, or one of its dependencies. 'Microsoft.IW.PartCheck' is inaccessible due to its protection level.

Do you have an idea why ?

Thx

Wednesday, September 19, 2007 11:42 AM by mchloum

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi, isn't there a way for the admin to just centrally change the default theme of the profile page?

Thursday, September 20, 2007 6:37 AM by Onyeka

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

when I tried to load Asp.Net WebParts I always got errors. I am new to SharePoint 2007 and did not realize the differece between System.Web.UI.Controls.WebParts and Microsoft.SharePoint.WebPartPages.

Steve uses Microsoft.SharePoint.WebPartPages in his example so WebPart in his example is a Microsoft.SharePoint.WebPartPages.WebPart.

To be able to use Asp.Net webpart in this example  I just took out using Microsoft.SharePoint.WebPartPages and set instead using System.Web.UI.Controls.WebParts and one can use both "old"-webparts and "new"-webpart in this example because all is derived from Asp.Net-framework.

Hope this will help those how are new to SharePoint.

Saturday, September 22, 2007 11:50 AM by thax

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi

In my company managers want to prevent administrators from accessing their sharepoint personal sites(My site) and aslo sites that have sensetive data (salary, stock ...)

is this applicable with sharepoint 2007 or not? if yes how?

Sunday, September 30, 2007 2:52 AM by Muhammad

# re: Customizing MOSS 2007 My Sites within the enterprise

Does anyone know of a workaround for the issue with missing support for automatic feature activation on site | web scope?

While I think feature stapling is a great approach to customizing, if you dont like XML hell,i also think that its a potential problem that alot of novice sharepoint users have to navigate to the "Site Features" section of the SiteSettings admin page to accomplish the desired customization.

Monday, October 01, 2007 7:17 AM by Zaradar

# re: Customizing MOSS 2007 My Sites within the enterprise

can you tell me how to change the Quick Launch headings - My Profile, Documents, Pictures, etc...to something else (e.g. Documents to My Documents) on My Sites page?

Friday, October 05, 2007 4:54 PM by matt

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

I want to know how Organizational Hierarchy web part works on MyProfile page of MySite. Is there any way to hide that control?

Wednesday, October 10, 2007 10:33 AM by Rahul Suryawanshi

# re: Customizing MOSS 2007 My Sites within the enterprise

Matt

In the FeatureActivated method you can access the nodes in quicklaunch with the following

SPNavigationNodeCollection quickLaunchNodes = curWeb.Navigation.QuickLaunch;

You can look throught the node collection and change the Title property of the nodes

do curWeb.Update(); after updating the nodes.

Wednesday, October 10, 2007 2:38 PM by KodeCruncher

# re: Customizing MOSS 2007 My Sites within the enterprise

Do you guys know how to make onet.xml template dinamyc for mySite Creation???

Wednesday, October 17, 2007 6:04 PM by Juan Castellanos

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi, I'm trying something similar to Matt except instead of renaming I want to delete nodes. I've been successful in deleting everything except Pictures, Discussions, Sites and MyProfile. We don't want to delete MyProfile and Sites. I only need to figure out how to delete Pictures and Discussions.

Here is the code that has been put into the FeatureActivated method.

                      SPNavigationNodeCollection spNavCollection = curWeb.Navigation.QuickLaunch;

                      foreach (SPNavigationNode spNode in spNavCollection)

                      {

                          UpdateLog("Nodes URL: " + spNode.Url, EventLogEntryType.Information);

                          spNavCollection.Delete(spNode);

                          UpdateLog("Node deleted URL: " + spNode.Url, EventLogEntryType.Information);

                      }

                      curWeb.Update();

Thursday, October 18, 2007 4:35 PM by Eric

# Delete mysite quicklaunch re: Customizing MOSS 2007 My Sites within the enterprise

I really should have found this before submitting. A co-worker found the problem after I realized everything was deleted if I call the routine three times. Here is the code that works, notice it starts at spNavCollection.Count and decrements.

                      //Delete the left side menu items called

                      //documents, pictures, discussions, surveys,lists, and sites

                      SPNavigationNodeCollection spNavCollection = curWeb.Navigation.QuickLaunch;

                      for (int x = spNavCollection.Count - 1; x >= 0; x--)

                      {

                          spNavCollection.Delete(spNavCollection[x]);

                      }

Friday, October 19, 2007 1:25 PM by Eric

# re: Customizing MOSS 2007 My Sites within the enterprise

I faced problem here is the error An error occurred during the compilation of the requested file, or one of its dependencies. The type or namespace name 'SPWeb' could not be found (are you missing a using directive or an assembly reference?)

Note: i program the page in the sharepoint using inline code how can i add reference in the page to define the missing assembly refernce.

Thank you for your support

Monday, October 22, 2007 2:12 PM by Tariq Mardawi

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve

I installed MySiteCreate 1.0 follow your guide but I receive a error when I create new mysite :

An error occurred during the processing of /_catalogs/masterpage/steve.master. Could not load file or assembly 'MySiteCreatePart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cb1bdc5f7817b18b' or one of its dependencies. The system cannot find the file specified.

I used gacutil to add MySiteCreatePart.dll to GAC.

Please help me fix the error. Thanks Steve.

Monday, November 05, 2007 3:40 AM by BinhLuong

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi.  I am trying to adjust the alternate access mapping in the Central Admin portion of Sharepoint.  I would like to use the fully qualified domain names for the URLs.  Everything works fine until I click on "Mysite," where I get an error.  The mysite link does not display the FQDN.  What can I do so that I can use the FQDN for the portal and the Mysite?

Monday, November 05, 2007 2:47 PM by Kale Ness

# Re: re: [Steve May 7] Customizing MOSS 2007 My Sites within the enterprise

-

"hey, you've already added an entry to the dictionary with that key"

I wonder if that is why I get the IDictionary SearchService error

OWSTIMER.EXE (0x12F8) Office Server Office Server Shared Services SearchServiceInstance (fb57240e-0614-4ef3-b9b0-3d56ca3927d7).  

An item with the same key has already been added.  Techinal Support Details:

at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.SynchronizeDefaultContentSource(IDictionary applications)

Wednesday, November 07, 2007 10:54 AM by phydroxide

# re: Customizing MOSS 2007 My Sites within the enterprise

Thanks Steve!

I am able to move ,delete the webparts. but I can't add a custom webparts extended from System.Web.UI.WebControls.WebParts.WebPart class. I deployed the dll in to GAC.Following i have added to the xml file, and added as safe control in wbconfig.

<WebPartAction>

<assemblyName>HelloWorld</assemblyName>

<className>HelloWorld.HelloWorld</className>

<zoneID>MiddleRightZone</zoneID>

<zoneIndex></zoneIndex>

<typeName></typeName>

<Action>Add</Action>

</WebPartAction>

what I am i doing wrong? it's been deployed and I can see in the site gallery and i can add this webpart to other pages, it works fine,but i can't add it to my site. any help is appreciated!

Friday, November 09, 2007 4:18 PM by shareuser

# Branding a MOSS Corporate Intranet Portal, Part 2: Site & System Pages

Introduction This post covers a sample technical design for the most common branding task you’ll encounter

Monday, November 12, 2007 7:51 PM by Brett's SharePoint Blog

# Branding a MOSS Corporate Intranet Portal, Part 2: Site & System Pages

Introduction This post covers a sample technical design for the most common branding task you’ll encounter

Monday, November 12, 2007 8:15 PM by Noticias externas

# re: Customizing MOSS 2007 My Sites within the enterprise

I can add the custom webpart now. In the code i was checking for Microsoft.SharePoint.WebPartPages.WebPart type, and my webpart was extendng from System.Web.UI.WebControls.WebParts.WebPart

thanks

Tuesday, November 13, 2007 2:29 PM by shareuser

# re: Customizing MOSS 2007 My Sites within the enterprise

As a sharepoint admin, is it possible to edit information on other user's personal sites such as about me, picture, etc?  The path for my site is http://sharepoint/mysite/_layouts/editprofile.aspx

If i try to go to another user, it redirects me to their public my site page.  Thanks!

Thursday, November 15, 2007 12:36 PM by glish

# re: Customizing MOSS 2007 My Sites within the enterprise

Hello,

I'm a great cut and paste expert, and I'm sure I could get the staple, staplee thing working but I'm not sure how to get started.  Where is the master page for the 'MySite'?  I am using the blueband.master and have modified it for the portal and want to use pretty much the standard BlueBand look and feel on the Mysite (i.e. large blue top nav. bar) .  The standard MySite is fine for now, so I don't need to add parts or custom code or anything like that.  I guess my question is; where is the .master for the mySite so that I may modify it in Designer?  Thanks

Tuesday, December 04, 2007 11:06 AM by Bob S

# re: Customizing MOSS 2007 My Sites within the enterprise

I have excactly the same question as Bob. I've customized the default.master and the application.master and everything looks fine except for the MySites.

I've searched the complete Server for *.master but couldn't find a mysite.master or something like that.

Wednesday, December 05, 2007 3:22 AM by Nicole

# re: Customizing MOSS 2007 My Sites within the enterprise

hello, i've been trying to customize "my site" in my MOSS2007 portal without success. I'm working with a spanish version of sharepoint in a server farm configuration. I've followed all the steps described in the blog and it just doesn´t work. However, i tried the same using a english version of sharepoint in a single server configuration and it worked. Does anyone knows how to make it work in the first scenario???

Wednesday, December 12, 2007 7:26 PM by Jairos

# re: Customizing MOSS 2007 My Sites within the enterprise

Sorry my english is so bad, but I will try to explain you. I have a problem, I deployed this feature in a farm and eveything it seems ok, when I search a person i have an error abiut permissions, but this error only happens if tha person's site it doesn't exist, when this person create his site, I search a person and the mistake dessapears. Please, any idea?

Wednesday, December 19, 2007 5:50 PM by Juan Carlos

# Customizing MOSS 2007 for public access

I am interested to know how to allow acccess for users eg WWW to see my sharepoint site without being a user or in a group. The stages of anonymous and the other two settings to allow this have been set but the link i have given my friends still comes up with access error from over the internet plz help me in solving this problem as it has become anoying thx Adam

Wednesday, January 09, 2008 1:47 PM by Adam

# re: Customizing MOSS 2007 My Sites within the enterprise

I have created a site in MOSS 2007 using Colloboration site template. It has a "My Site" feature for personalization. These "My Site" have standard "Getting Started" web part to assist users with the use of SharePoint. The Getting Started web part should be removed automatically from a users "My Site" after two weeks if, it has not been manually removed by the user. Once the user has removed the web part, it can only be added back manually by the user.

Kindly Request you provide the guidelines, any links, or best practices to

achieve this functionalities.

Wednesday, January 16, 2008 9:21 AM by gunaga

# re: Customizing MOSS 2007 My Sites within the enterprise

I did a clean install of SP, then used the codeplex batch files (which include a gacutil in the beginning, while the manual states I should do it in the end of the procedure!) and ended up with a "File not found" error when my new user tried to access his mySite.....

This obviously does not work!!

Tuesday, January 22, 2008 1:47 AM by Cees

# re: Customizing MOSS 2007 My Sites within the enterprise

This is the longest blog discussion I have seen in my life !

"I like"

Tuesday, January 22, 2008 7:31 PM by Yogi

# re: Customizing MOSS 2007 My Sites within the enterprise

  Hi Steve

I have installed both the feature as you mentioned in your blog like,

stsadm -o installfeature -name MySiteStaplee

stsadm -o activatefeature -name MySiteStaplee -url http://Server:port/personal/samiran

stsadm -o installfeature -name MySiteStapler

    Its installing properly now problem is that the feature is activated for a particular user (samiran)

 is there any way to activate the feature for all my site users?

Thursday, January 24, 2008 12:53 AM by Samiran

# Branding in SharePoint Technologies (PART 4)

Today we will look at the option of Site Definitions and Features for modifying the Master Pages....

Monday, January 28, 2008 5:15 AM by Infosys | Microsoft

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

i've got a application created in visual studio for moss2007 as a .stp file. now that i've uploaded it to site template gallery it is displayed there as template, but when i try to create a new site it's not listed under "custom".

Do you have any idea what went wrong?

Greetings,

Johannes

Tuesday, January 29, 2008 5:58 AM by Johannes Seyfried

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

Help me;

I have a sharepoint site where there is a group of users. User clicks on mysite, one of the web part displayed is the getting started web part with other few default web parts.

I want to hide/delete/close that getting started web part after a period of time(say 2 days). How best i can achive this task.

Thanx in advance.

Sreejesh.

email me: sreejuchak@gmail.com

Wednesday, January 30, 2008 6:27 AM by Sreejesh

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,  I need some help.  I inherited a test enviroment with the "portal site connection " customized to link to the test portal.  When I move the main portal to other enviroments staging and production and put the mysitecreate code. When the users create  their sites the portal site connection is still pointing to test.  I have searched the master page and cannot find the link. I have also following the instructions above and still not successful.

Friday, February 01, 2008 12:37 PM by Ruth

# re: Customizing MOSS 2007 My Sites within the enterprise

This is a very Good blog.....

Thanks for Sharing

Thursday, February 07, 2008 11:41 PM by Akash,Mansoft

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

I find very useful information in your site, about customising MySite.

In my organisation, I have designed a customised masterpage and a number of websites underneath it, in Sharepoint 2007.

Howvere, I can't get 'MySite' to look identical to all my other sites.

Do I just need to use the two feature files, which you have listed earlier (stapler and staplee), to achieve a 'MySite' which is idententical to all my other sites, regardless of who the user is, at any given time?

Regards,

Dan

Thursday, February 14, 2008 8:13 AM by Dan

# re: Customizing MOSS 2007 My Sites within the enterprise

Environment: MOSS 2007

portal adress:   http://sharepoint.company.com

my site adress: http://mysite.company.com/personal

I don't know when this started happen or what triggered it, but "My Site" link on top right section of the screen, prompts users for credentials three times and fails eventually with "401 Unauthorized" text on the screen.

After realising the  problem I went to Shared Services Administration and have modifed My Site Settings, and change personal site provider to http://sharepoint.company.com/personal . This worked but all previously created "My Sites" were missing due to change in URL, so I revert back to original My Site setting which is http://mysite.company.com/personal . Now, the direct URL to http://mysite.company.com/personal/username.aspx works but "My Site" link on the top right section of portal takes all users to this exact URL: http://mysite.company.com/_layouts/MySite.aspx and prompts for user credentials three times and finally gives "401 unauthorized" error.

Could anyone please point me to right direction?

Friday, February 15, 2008 11:38 AM by Tugay

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

I was wondering where I can find the source code for "WebPartAction" class. I don't seem to find on this blog.

Nick

Friday, February 15, 2008 1:47 PM by Nick

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi;

I am restricting the user not to upload their picture on thier own ,instead  I want to write an application which code does the part in uploading the pictures . do u have any ideas how to acheive this???

Saturday, February 16, 2008 9:22 AM by Danya

# re: Customizing MOSS 2007 My Sites within the enterprise

Environment: MOSS 2007

portal adress:   http://sharepoint.company.com

my site adress: http://mysite.company.com/personal

I don't know when this started happen or what triggered it, but "My Site" link on top right section of the screen, prompts users for credentials three times and fails eventually with "401 Unauthorized" text on the screen.

After realising the  problem I went to Shared Services Administration and have modifed My Site Settings, and change personal site provider to http://sharepoint.company.com/personal . This worked but all previously created "My Sites" were missing due to change in URL, so I revert back to original My Site setting which is http://mysite.company.com/personal . Now, the direct URL to http://mysite.company.com/personal/username.aspx works but "My Site" link on the top right section of portal takes all users to this exact URL: http://mysite.company.com/_layouts/MySite.aspx and prompts for user credentials three times and finally gives "401 unauthorized" error.

Could anyone please point me to right direction?

Saturday, February 16, 2008 6:21 PM by jaminthepark

# re: Customizing MOSS 2007 My Sites within the enterprise

It looks like it worked for me, but when i look in the log file i can see the following error:

Description:

Error serializing MySiteStaplee.xml file: There is an error in XML document (0, 0).

What could go wrong here?

Wednesday, February 20, 2008 5:58 AM by Aassim

# MySite Pages and Architecture

MySites are very interesting on many levels. When you start to think about how to architect, deploy or

Friday, February 22, 2008 11:03 PM by Mark Arend

# MySite Pages and Architecture

MySites are very interesting on many levels. When you start to think about how to architect, deploy or

Friday, February 22, 2008 11:28 PM by Noticias externas

# SharePoint Kaffeetasse 45

MySite Mark Arend hat in einer Visio-Grafik die Zusammenhänge der MySite grafisch aufgearbeitet Schon

Monday, February 25, 2008 8:46 AM by SharePoint, SharePoint and stuff

# SharePoint Kaffeetasse 45

MySite Mark Arend hat in einer Visio-Grafik die Zusammenhänge der MySite grafisch aufgearbeitet Schon

Monday, February 25, 2008 9:29 AM by Mirrored Blogs

# re: Customizing MOSS 2007 My Sites within the enterprise

I just came across an error that I saw mentioned here back in August:

"Your personal site cannot be created because a site already exists with your username. Contact your site administrator for more information."

In our situtation, it turned out that someone had added "Administrator" to the SharePoint users and then created a "MySite".  Evidently they "unknowingly" added the local administrator and not the domain admin (as they thought).  When we logged on as "Administrator" and clicked on MySite, we would get the error because of SharePoint thought the "/personal/adminstrator" site already existed (which it did for "local" admin), but it was still trying to create a new MySite for the current user ("domain" admin).

I deleted the MySite site collection for the "local" administrator and recreated as the correct user.  Everything went back to normal.

Friday, February 29, 2008 11:39 AM by gpoland

# re: Customizing MOSS 2007 My Sites within the enterprise

its not run

how can i change default to steve

Sunday, March 02, 2008 6:54 AM by brave

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve,

I've installed and activated the feature but upon failing, I deactivated and uninstalled.  My fear is I've done something else behind the scenes because now I'm getting a "Page cannot be displayed" error for MySite.aspx.  

When I create a new collection, I click on "Set as MySite Host" but then get the aforementioned "Page cannot be displayed" message; I find this odd because the URL for "Set as Host" is the same.  

Upon getting this error, I opened MySite.aspx in VS2005 and noticed "application.master" couldn't be found; I opened "application.master" and it said "TopNavBar.ascx" couldn't be found.  This leads me to believe there's something wrong with a web.config file somewhere but I'm not sure where to look.  

On my development box, MySites reside on port 80 and in the wwwroot folder of Inetpub, there is a web.config file.  On my production box, where these errors are occuring, we've developed MySite as a seperate web app under port "42264."  In the wwwroot folder of Inetpub on port 42264, there isn't a web.config file or folders such as "_app_bin" or "bin."  

Is the web.config file in wwwroot supposed to exist on "42254?"  Could this be why I'm getting an error?

Monday, March 03, 2008 8:05 AM by Brian

# re: Customizing MOSS 2007 My Sites within the enterprise

if i want to add anew webpart example owainboxpart or owainboxtasks its not run

plz give me the correct xml of this two webparts

give me correct example of how add myinboxpart and tasks to mysitestaplee.xml

Wednesday, March 05, 2008 12:01 AM by ahmad

# re: Customizing MOSS 2007 My Sites within the enterprise

I refactored all the code.

I also changed the MySiteCreatePart to load web controls inherited from asp webcontrols, as opposed to sharepoint web controls.

Also has sample code for serializing web part, this so that you can put the web parts details in the MySiteStaplee.xml.  And code for CDATA for content query webparts in the MySiteStaplee.xml.

dig it here...

http://hacksharepoint.blogspot.com/2008/03/extending-enterprise-mysite.html

Tuesday, March 11, 2008 8:50 AM by Jason Wainwright

# Removing Web Parts from the ‘My Site’ Web Part Gallery

For my first post I am going to illustrate how someone can limit the web parts available to users on

Wednesday, March 12, 2008 11:13 PM by Cliff Green's Blog

# Removing Web Parts from the ‘My Site’ Web Part Gallery

For my first post I am going to illustrate how someone can limit the web parts available to users on

Wednesday, March 12, 2008 11:55 PM by Noticias externas

# WebPartAction class

Hi,

I was wondering where to find WebPartAction class code because I just couldn't find it.

I am new in SharePoint but I must remove one web part from 'my site'.

Please help.

Thanks

Tuesday, March 18, 2008 5:32 AM by UroZ

# re: Customizing MOSS 2007 My Sites within the enterprise

I installed your feature successfully, which is Big thank YOU!

do you know how to modify links which inside <SPSWC:PersonalWelcomeWebPart> on the default mySite page to make all the mysites(other user mysites) can see it.

and add one more link to the <asp:SitemapPath>

Wednesday, March 19, 2008 5:59 PM by sunny

# property of rss webpart and link

how can i use link and rss webpart in my site

plz give me property of link and link to auto configure

thnks

Sunday, March 23, 2008 3:32 AM by ahma

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi, I have a few questions:

1) My master page references a custom CSS located under _layouts/1033/Styles (as per Heather Solomon's SharePoint 2008 conference). The home page and profile page look great, but when I create a blog under the my site, it referts to the default.master template. How do I make this use my masterpage?

2) I noticed that My Sites have a lot of application pages. What's the best way to brand these. I thought that perhaps defining an alternate CSS would do this (through code), but it doesn't seem to work. I understand that Alternate CSS comes with MOSS (not WSS), so should I activate the standard MOSS/Publishing features in the My Site to do this?

3) Have you looked at moving your sample code into Ted Patterson's STSDEV utility? That is, through a solution package? If so, would you recommend creating two separate solution packages, or just one (with both features included)?

Tuesday, March 25, 2008 6:09 AM by ms-advantage

# re: Customizing MOSS 2007 My Sites within the enterprise

I downloaded the project from CodePlex but there does not seem to be a manifest.xml. Is there another download?

Tuesday, March 25, 2008 8:20 AM by Apryl

# re: Customizing MOSS 2007 My Sites within the enterprise

I am Using Web Single Sign-On (Web SSO) With ADFS. I set default zone to Windows Authentication and Extranet Zone for Web Single Sign-On follow by technet article http://technet.microsoft.com/en-us/library/cc262696.aspx

In sharepoint web, I can get and add user from Web Sigle Sign-On, But cannot get users from Web Single Sign-On added to the Shared Service Provider's security page that controls wether a user can have a personal site (ssp/admin/_layouts/ManageServicePermissions.aspx).  The user/group field only appears to be authenticating against the domain and NOT my AD Membership provider.

Tuesday, March 25, 2008 12:17 PM by Sarawoot

# re: Customizing MOSS 2007 My Sites within the enterprise

I am Using Web Single Sign-On (Web SSO) With ADFS. I set default zone to Windows Authentication and Extranet Zone for Web Single Sign-On follow by technet article http://technet.microsoft.com/en-us/library/cc262696.aspx

In sharepoint web, I can get and add user from Web Sigle Sign-On, But cannot get users from Web Single Sign-On added to the Shared Service Provider's security page that controls wether a user can have a personal site (ssp/admin/_layouts/ManageServicePermissions.aspx).  The user/group field only appears to be authenticating against the domain and NOT my AD Membership provider.

Tuesday, March 25, 2008 12:26 PM by Sarawoot

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

I followed your instructions about creating a customised MySite and when I log on as a new user, for the first time and try to create a personalised MYSite I get an message saying ' An unexpected Error has occurred'.

I am using Sharepoint 2007 and I really need to be able to customise MYSites.

Regards,

Dan

Thursday, March 27, 2008 12:59 PM by Dan

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

After upgrading SPS 2003 to MOSS 2007, the mysite link is working fine.  But when I try to amend my profile in MySite in MOSS 2007 I get this error message:

An unknown user profile error has occurred.  Try recreating this user profile or updating this user profile from the directory service to resolve this problem.

That mean no one is able to amend their private MySite area.

Do you any idea why?

Thanks

Tuesday, April 01, 2008 7:05 AM by Daniel Demie

# Programmatically deploying an InfoPath Form Library

Body: I was finding it hard to find a specific answer on how to write a Solution Package with a Feature

Friday, April 04, 2008 3:58 AM by Mirrored Blogs

# IWPart:PartCheck prevents users from adding new web parts

I have noticed in my testing that following activating and using the feature, the IWPart user control is causing the following error in Edit Mode whenever users try to add ANY web part:

Unable to add selected webpart(s)

My Tasks: exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))

There needs to be a check around the code to see if we are in edit mode. I tried to use SPControlMode to see if we are in Edit, Display, Invalid or New mode. Unfortunately, whether I am in Edit mode or not, the mode returned is 'Invalid'.  It appears that this check only works for Publishing sites, not My Sites.

Any ideas anyone?

Saturday, April 05, 2008 8:16 PM by Alan

# Access denied for public users read only

I have deployed your solution and I am having this Access denied problem and i cannot connect to the sharepoint with the users which has not full control. Please help i've tried almost everything. Help please.

Friday, April 11, 2008 12:05 PM by PeterU

# MOSS 2007 - Breadcrumb issue

Hi Steve,

i am having problem related to breadcrumb within in masterpage (I am using my own portal design) its, coming fine in sharepoint designer (editor) but when i check the masterpage within in subpages in the browser than the position of the breadcrumb is not right it coming the body content section area, else everything working fine in terms of functionality etc... Also, when i check my document library page the breadcrumb position is coming fine the place where I need.

Tafseer

Monday, April 21, 2008 3:19 AM by Tafseer

# default.aspx - always same name?

The next thing is to get a reference to the home page in the site:

//look for the default page so we can mess with the web parts

SPFile thePage = curWeb.RootFolder.Files["default.aspx"];

--------------------------------[END QUOTE]------

How do we know that default.aspx wasn't customized on site to a different page name?

Is there a way to retrieve the default page file name for the Personal site (SPWeb)?

Sunday, April 27, 2008 6:48 AM by Asaf Mesika

# re: Customizing MOSS 2007 My Sites within the enterprise

Steve. This is a great article. I am new to SharePoint and am wondering what is the best way to modify or replace the public MySite. We want to change some stuff that is actually on the person.aspx page (mainly the ProfileViewer). I have done some research and I see many people are customizing the actualy person.aspx page but I am worried that we will run into issues when applying future hot fixes etc. Is there a solution where I can create a MyCompanyPerson.aspx to replace the OOB person.aspx and have all the links point to my new public mysite?

Thursday, May 01, 2008 11:00 AM by shane

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi, do you have the code of both assemblies? I don't seem to be able to get them from the blog.

--Vamsee

Thursday, May 01, 2008 1:52 PM by Vamsee

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi

We are using this method to remove all web parts from the mysite but we have a problem with the owacalendar. There seems to be something calling it after we have removed it as we get this error message in the logs and an error was shown to the user:

Microsoft.SharePoint.Portal.WebControls.OWACalendarPart, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Failed to set SaveProperties=true on GET. Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))    

This happens after our control have deleted the web part so my guess is that when it's added in first place some process starts that then tries to reconnect to the calendar web part. The only solution we have found this far is to manually remove the calendar from onet.xml but that is as you all know a crappy solution. Have any one had the same problem?

//Niclas                

Wednesday, May 14, 2008 6:43 AM by Niclas

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi there,

How do i disable a user from creating document libraries and list in his mysite only.

Any help

Sriniko

Monday, May 26, 2008 6:06 AM by Sriniko

# re: Customizing MOSS 2007 My Sites to Show Shared Documents

Hi Steve,

Our My Site public profile page does not display a users Shared Documents lirary.  I can't find any way to customize persons.aspx to show that on all users sites as the web part doesn't seem to be available when trying to customize.  The Shared Documents folder on a users profile can be found by hunting (clicking on View All Site Content in left nav) but can't seem to find anyway to provide access to this directly from the Public Profile Page.  All documentation seems to suggest this should be there by default.

Please help - no one is answering my posts on other message boards about this.

Thanks

Wednesday, May 28, 2008 11:21 PM by Sakendrick (Scott kendrick)

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve. I have changed html code (layouts, css) of your steve.master but it didnt apply to the My Profile page. But I can see new format on the My Home page. Please give me some tips

Wednesday, June 11, 2008 8:20 AM by Igor

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve:

    I'm trying to add a new popup option from the dropdown list of each item in a ListViewWebPart, where it shows: View Properties, Edit Properties, etc; I'd like to add my own option. Where could I get info about this (Always in a ListViewWebPart).

Thanks!

Monday, June 23, 2008 2:40 PM by Acaspita

# My Site Recommendations

My Site Recommendations The following My Site recommendations are a composite of best practices taken

Tuesday, July 01, 2008 8:19 PM by Jimmie's Sharings

# re: Customizing MOSS 2007 My Sites within the enterprise

Thank you, this a huge help and asset to the community of sharepoint developers and consultants.

Wednesday, July 02, 2008 2:28 PM by Chuck SAlvo

# re: Customizing MOSS 2007 My Sites within the enterprise

Great Post.

Thanks for sharing.

I have two set of query, could you throw some light on how to add cutom web parts to Web Parts Gallery of My Site using Staplee.Then add this web part to My Site so that it could be viewed by all users.(Assuming none of the site were provisioned before).

Thursday, July 03, 2008 12:10 AM by Saroj Jha

# Custom Page Layout with Default Web Parts

Hi Steve, I have been struggling for a week to get my custom page layout populated with custom webparts when an instance of this page layout is created. I have adopted your approach and using your web control to place the web parts on the page for which I have to make certain changes to take page from the context rather than the default page and add the key to page properties instead of the web.

Finally, the solutions seems to be working for me but it doesn't show up until I refresh the page. I have tried Response.redirect and Server.Transfer with relative and full url's but none of the thing is working. Also I have to checked in the newly created page otherwise I also requires me to check in the page from UI and then shows up the web parts which I have been able to resolve by thePage.checkin("Draft"). But for this page refresh I am unable to display webpart when the until i press F5.  

Saturday, July 05, 2008 6:09 PM by Nafees

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

Great article. Kudos.

This is one of the best article for My Site customization.

I had a simple requirement.

1. Adding a custom web part to My Site, When the site is provisioned.

Although it looked only when i got your code.

SPList xList = curWeb.GetCatalog(SPListTemplateType.MasterPageCatalog);

/// this code has to run under elevated  

///priviledge for adding web parts to gallery

/// for all users

                       SPSecurity.RunWithElevatedPrivileges(delegate()

       {

AddWebPartToGallery(curWeb);

                       });

Now the function AddWebpartToGallery(SPWeb web) is given below.

private void AddWebPartToGallery(SPWeb web)

       {

           string strWpPath = @"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MySiteStaplee\MySiteBasicWP.webpart";

           SPList wpGallery = web.GetCatalog(SPListTemplateType.WebPartCatalog);

           SPFolder wpGalFolder = wpGallery.RootFolder;

           try

           {

               if (wpGalFolder != null)

               {

                   FileInfo wpFile = new FileInfo(strWpPath);

                   if (wpFile.Exists)

                   {

                       wpGalFolder.Files.Add(wpFile.Name, wpFile.OpenRead());

                       wpGalFolder.Update();

                       UpdateLog(wpFile.Name + "Web part Added at site " + web.Title, EventLogEntryType.Information);

                   }

                   else

                   {

                       UpdateLog("Web part Could not be at File path mentioned " + strWpPath, EventLogEntryType.Warning);

                   }

               }

           }

           catch (Exception ex)

           {

               UpdateLog( "Web part Added at Gallery has caused this error: " + ex.Message, EventLogEntryType.Error);

           }

       }

Schema XML Contains.

<WebPartAction>

<assemblyName>MySiteBasicWP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=71f19b5f0214456d</assemblyName>

<className>MySiteBasicWP.MySiteBasicWP</className>

<zoneID>TopZone</zoneID>

<zoneIndex>0</zoneIndex>

<typeName></typeName>

<Action>Add</Action>

</WebPartAction>

Still i am unable to perform it fully.

I am able to add the custom web part to Web Part Gallery(this action is performed before the MysiteStaplee.Xml is read). But the code don't add Custom Web Part which is mentioned in the schema XML (MysiteStaplee.Xml).

I tried to figure out the error but couldn't get/resolve the upto the root cause.

I got the error the Parameter Web part Couldn't be null.

I checked the Web part i was using was from System.Web.UI.WebControls.WebPart.

I tried testing with the Microsoft.SharePoint.WebPartPages.WebPart also. But with out success.

Could please any-one tell how to solve this.

I can think only of some error in my Schema XML next.

Thanks in Advance.

Anticipating to hear from some one.

Saroj

sarojk@ocbc.com

Thursday, July 10, 2008 10:42 PM by Saroj Jha

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve,

I am facing one problem,

i have actually followed your

blog to customize MySite. There we set the SPWeb.Properties[key] value to avoid unnecessary execution of the code.

the problem i am facing is, i have created a feature and on activation of that feature i loop through all the personal sites and reset the SPWeb.Properties[key] to null. This works fine. But once the feature is activated, if i open my personal site, it throws the following error - the error is comming at the point where i access the SPWeb object.

this is the error -

"List does not exist

The page you selected contains a list that does not exist.  It may have been deleted by another user.   at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount)

  at Microsoft.SharePoint.Library.SPRequest.GetListsWithCallback(String bstrUrl, Guid foreignWebId, String bstrListInternalName, Int32 dwBaseType, Int32 dwBaseTypeAlt, Int32 dwServerTemplate, UInt32 dwGetListFlags, UInt32 dwListFilterFlags, Boolean bPrefetchMetaData, Boolean bSecurityTrimmed, Boolean bGetSecurityData, ISP2DSafeArrayWriter p2DWriter, Int32& plRecycleBinCount) "

any idea what could be causing the problem ???

Monday, July 21, 2008 9:48 AM by bharg

# re: Customizing MOSS 2007 My Sites within the enterprise

Hello Steve

I read and learnt a lot about mysite. Superb Article !!!

Lets discuss my scenerio

I have 200+ users and everyone want their own site to maintain their information, their site name with their logos.

I reviewed their information and thne decided I should go for My Site. So I have used ADAM based FBA authentication successfully. Now every user having their own sie and they are quite happy. Hoever still it is beta testing, so we can do changes any time

My first question to provide my site to 200+ user is right approach? What problem we can face in future as far as maintenance? If this not the right approach what should be alternate approach to maintain? We are assuming in next 1 year user will grow up to 1000+.

2. How can an admin see their site and their contents to know what information user are maintainig? We want to restrict user if he is violating any information.

3. My Logo and Site title behaviour is inconsistent? When user update these information in site setting using title descripton, that time it show perfectly but when they go to my host or my profile page, Logo and Title replaced with the default information?

4. What is best way to do user maintainence like resetting their password, new user creation and enable for my site? Or is there any tool available for this. I reviewed one that is ePok, but not happy?

Sorry for long posting.

I am waiting for your and other jentlemen valuable advise.

Ani

Monday, July 21, 2008 8:12 PM by Ani

# re: Customizing MOSS 2007 My Sites within the enterprise

Fantastic article, this was the first thing I came across when I ran into trouble working with branding My Sites. Steve, when the feature is deactivated and uninstalled, do the My Sites revert back to default.master or do they remain with steve.master? Also I cannot seem to delete steve.master from SPD nor modified versions of steve.master. Any help from you or your fellow  

Tuesday, July 22, 2008 7:25 PM by Peter

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

I have MySites on http://localhost:2222 and SSP Admin site on http://localhost:4444, i.e. they are in different web application, I have a feature to change the web.config of http://localhost:2222 to add to <SafeControls> list, but to my surprise when I activate the feature on http://localhost:2222 and feature updates the web.config of http://localhost:4444 and not off http://localhost:2222

Here is how I get reference of SPWebApplication

SPWeb web = properties.Feature.Parent as SPWeb;

using (SPSite site = web.Site)

{

     UpdateWebConfig(site.WebApplication);

}

Wednesday, July 23, 2008 4:38 AM by Ketul Patel

# re: Customizing MOSS 2007 My Sites within the enterprise

Ok so I know we can change the master page and web parts but how do we change the layout without modifying the system file, i.e. the default.aspx page used for the private view. I have a custom master page with several placeholders that I need to plug web parts into and I don't want to touch the system file as it is advised not to.

Thursday, July 24, 2008 11:37 AM by Peter

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi Steve, great article and responses.

Just a quick question - we have a need to disable users editing certain fields, in particular not to allow them to upload their own photographs (HR to manage).

How might we accomplish this - perhaps a combination of this method, javascript etc.?

Many thanks,

Steve

Wednesday, July 30, 2008 4:35 AM by SteveJ

#

היי, לא יצא לי לכתוב תקופה ארוכה. אנסה לכתוב יותר מעכשיו. עבדנו קשה על העלאת פורטל MOSS למכללת אורנים

Wednesday, August 06, 2008 12:37 PM by Alex Levitin's Blog

# אתרים אישיים

היי, לא יצא לי לכתוב תקופה ארוכה. אנסה לכתוב יותר מעכשיו. עבדנו קשה על העלאת פורטל MOSS למכללת אורנים

Wednesday, August 06, 2008 12:42 PM by Alex Levitin's Blog

# אתרים אישיים

היי, לא יצא לי לכתוב תקופה ארוכה. אנסה לכתוב יותר מעכשיו. עבדנו קשה על העלאת פורטל MOSS למכללת אורנים

Wednesday, August 06, 2008 12:45 PM by Alex Levitin's Blog

# אתרים אישיים

היי לא יצא לי לכתוב תקופה ארוכה. אנסה לכתוב יותר מעכשיו. עבדנו קשה על העלאת פורטל MOSS למכללת אורנים

Wednesday, August 06, 2008 12:49 PM by Alex Levitin's Blog

# אתרים אישיים

היי לא יצא לי לכתוב תקופה ארוכה. אנסה לכתוב יותר מעכשיו. עבדנו קשה על העלאת פורטל MOSS למכללת אורנים

Wednesday, August 06, 2008 12:53 PM by Alex Levitin's Blog

# Custumize default.aspx

This feature is pulling a default.aspx file from somewhere, but I can't seem to find it. Does anyone have an idea where I could find it? I want to change the column layout.

Thursday, August 14, 2008 11:49 PM by Mark

# Staplee Help

This is a great blog, but I am thinking that it needs to be continued else where. Is there a URL that is expanding on this feature? A place that others are using it and that others can share.

Saturday, August 16, 2008 10:33 PM by Mark

# Event log error

I have done everything to track this error down:

Error checking web parts: Value cannot be null.

Parameter name: webPart

Has anyone been able to determine where this is coming from?  I am able to use a custom masterpage with no issues, however not able to move,add,delete or modify a webpart. Any help is appreciated!

Monday, August 18, 2008 2:31 PM by Randall O

# re: remove SPNavigationNodes from the collection

Hi Steve,

Thank you for the wonderful article.

Im trying to delete and add some NavigationNodes to the QuickLaunch.

I added these Lines in PartCheck.cs:

SPNavigationNodeCollection QuickLaunchNodes = curWeb.Navigation.QuickLaunch;

QuickLaunchNodes.Delete(QuickLaunchNodes[2]);

curWeb.Update();

And its not working!

You answered before that you need to get the "SPWeb for the My Site root", can you please show me how that is accomplished?

Thanks in advance

Moses

Thursday, August 21, 2008 12:50 PM by MP

# [Best Practices] Customisation du My Site : Comment le modifier en amont et en aval

Sous entendu comment modifier les My Site de MOSS 2007 avant création et leur maintenance après création.

Friday, September 05, 2008 4:48 AM by The Mit's Blog

# Please help, When I try to enter in Mysite...

Hi all,

When I try to enter MySite with any user credentials, I am redirected to the same Mysite (different user) each time..

For example -

for hytem it is Mysite for hytem

and for mossadmin its again Mysite for hytem,

Friday, September 12, 2008 5:46 AM by azhar.kazi

# re: Customizing MOSS 2007 My Sites within the enterprise

Has anyone had difficulty, when they add the following line to the master page?

<IWPart:PartCheck runat="server"/>

I added it, as per instructions, then when I try to open the master page, later, I am prevented.

I get an error message saying: -

"That <IWPart:PartCheck runat="server"/> control type is not allowed on this page. It is not registered as safe"

What can be done to overcome this?

regards,

Dan

Friday, September 12, 2008 8:35 AM by Dan

# re: Customizing MOSS 2007 My Sites within the enterprise

Whenevr, I try to create MySite, following the above instructions, I get the following error:

You do not have permissions to have lists and pages within My Site.

What is the cause of this?

Regards,

Dan

Friday, September 12, 2008 11:15 AM by Dan

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi,

Can anyone help me here in regards to this article. I am having error on the masterpage.

the error is it can not find the assambly file.

can someone let me know what i can try ?

Monday, September 15, 2008 6:43 AM by Ziggy

# re: Customizing MOSS 2007 My Sites within the enterprise

Hi there, Is there anywhere on the web that gives a full detailed account on how to customise 'MySite'.

I have tried various approaches, which I found on the web, and they all failed.

I am using MOSS 2007 and I can't find adequate support, anywhre, for the customising of MySite.

It is my opinion that this issue needs to be addressed urgently, by Microsoft. I think that some solution needs to be found and incorporated into the next release of Sharepoint.

Despite trying various methods, they all failed, for me.

Regards,

Dan

Tuesday, September 23, 2008 4:46 AM by Dan

# re: Customizing MOSS 2007 My Sites within the enterprise

Dan,

Have you checked the Personalization permission to see , if you have permission to create mysite.

Tuesday, September 30, 2008 11:27 PM by Ray

# MOSS 2003 Mysite timeout during Creation

Hello,

We are facing an issue that's causing Mysite to sometimes timeout during creation.

We tried the following:

-Create my site for 10 users at the same time.

Result: 7 users created successfully and 3 timeout(not corrupted, you can refresh to create them again)

-Disabled the features we are activating and repeated the same scenario.

Result: 7 users created successfully and 3 timeout(not corrupted, you can refresh to create them again)

-Disabled the stapler feature(feature that override default SharePoint My Site and apply our webparts and master page, so My Site now are created with default SharePoint)

Result: 7 users created successfully and 3 timeout(not corrupted, you can refresh to create them again)!

Any ideas about the problem root cause?

Thanks,

Wednesday, December 17, 2008 3:46 AM by Mabdelkader

# Developing a custom MySite host site definition using VSeWSS 1.3

In MOSS 2007 as part of the SSP provisioning process “SPSMSITEHOST” site definition is being used to

Saturday, February 21, 2009 5:39 PM by Ali Mazaheri

# re: Customizing MOSS 2007 My Sites within the enterprise

I installed this feature, but am having an issue with the web.config.

I get the following page when trying to go to a mysite after installation. Please note, when I replaced the web.config with the original version, this error does not display.

Can someone tell me what I did wrong? I followed the instructions without any issues, and everything appeared to install correctly.

Please note, I was not creating a new My Site, but navigating to my existing My Site when this error displayed. I have not tried creating a new site yet, as I wanted to ensure there were no errors with existing sites first.  

--------------------------------------------

Runtime ErrorServer Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom

error settings for this application prevent the details of the application error

from being viewed remotely (for security reasons). It could, however, be viewed

by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on

remote machines, please create a <customErrors> tag within a "web.config"

configuration file located in the root directory of the current web application.

This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>

   <system.web>

       <customErrors mode="Off"/>

   </system.web>

</configuration>

Notes: The current error page you are seeing can be replaced by a custom error

page by modifying the "defaultRedirect" attribute of the application's

<customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>

   <system.web>

       <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

   </system.web>

</configuration>

Tuesday, February 24, 2009 8:58 AM by bsherrod

# re: Customizing MOSS 2007 My Sites within the enterprise

This removes the blog button on the MySite, but none of my other master page changes are appearing in the MySite.  However, my changes appear in the MyProfile page for each user.  What could I be doing wrong?  Btw, I have MySites setup in their own web application.

Wednesday, March 25, 2009 12:28 PM by SharePointJen

# re: Customizing MOSS 2007 My Sites within the enterprise

I should have mentioned in my previous post that to remove the blog button, all I did was add the change that Gary Lapointe suggests here: http://stsadm.blogspot.com/2007/11/customizing-mysites.html

I still don't understand how that change worked, but none of my other modifications applied to the MySite.

Wednesday, March 25, 2009 12:30 PM by SharePointJen

# Site Definition Provisioning Order

When you use site definitions to create sites it&#39;s often pretty unclear what the order is in which

Wednesday, April 29, 2009 11:17 AM by Mirjam's blog

# SharePoint Site Definition Provisioning Order

When you use site definitions to create sites it&#39;s often pretty unclear what the order is in which

Wednesday, April 29, 2009 5:27 PM by Mirjam's blog

# re: Customizing MOSS 2007 My Sites within the enterprise

thank you super http://www.parcakontorbayiniz.com  beatıful

Sunday, August 09, 2009 12:17 PM by web tasarım

# re: Customizing MOSS 2007 My Sites within the enterprise

This is a very detailed blog and I am sure that it would take a least a couple of days for a code expert to work through.  As I am no 'code master' it would take me a couple of weeks.  I though SharePoint was supposed to make life easier for the admin's  :-s

There are a couple of things that stand out for me in this post.

1. Dan's comment

Tuesday, September 23, 2008 4:46 AM by Dan  

I am using MOSS 2007 and I can't find adequate support, anywhere, for the customising of MySite.

It is my opinion that this issue needs to be addressed urgently, by Microsoft. I think that some solution needs to be found and incorporated into the next release of SharePoint.

2. The 100+ times that error is mentioned.

3. Steve Peschka's comment in the few paragraphs.

First, let’s start with how NOT to customize My Sites.  As with SPS 2003, some people might think “Hey, I can modify things pretty quickly if I just go to the file system and change the template for My Sites there.”  This is absolutely the wrong approach, and it will leave your site in an unsupported state.  This means modifying any of the .aspx pages or onet.xml or any of the other out of the box templates files is off limits.

This was a lot easier to do with SP03 and feel this is a step back and like Dan does, don’t feel MS are doing enough to address this problem.  Most MS apps are normally pretty straight forward but this one leaves me thinking should I bother attempting it with the number of times 'error' is repeated in the blog.  It looks like editing the template for My Sites there is looking like a tempting possibility even if Steve says 'This is absolutely the wrong approach'.

Here’s hoping for a better solution.  Something in Central Administration would seem too easy.

Adam

Wednesday, August 19, 2009 7:37 AM by Interceptor

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker