QuerySting paramerters in the URL can help you edit pages where the edit button is missing (ex. SharePoint 2007 list views) or you need to throw away a web part that’s messing with your page from the web part maintenance view.

Function URL
Add Web Parts/Browse ToolPaneView=2
Add Web Parts/Search ToolPaneView=3
Edit Mode mode=edit
View mode mode=view
Shared view PageView=Shared
Personal view PageView=Personal
Maintenance view contents=1

You can combine some of the urls ex Edit personal view: …aspx?PageView=Personal&mode=edit

Tags: , , , | Categories: Tips and tricks | SharePoint Configuration

Problems with disabled accounts from former employees in your SharePoint User Profile Store ?

This will help you set up Exclusion Filters in the User Profile Synchronization

 

1) Browse to Central Administration Site > Manage Service Applications > User Profile Service Application.

2) On the Manage Profile Service: User Profile Service Application page, click the  Configure Synchronization Connections. This will take you to a page where all the synchronization connections are.

follow this excellent post from Spencer Harbar at harbar.net (http://www.harbar.net/archive/2011/02/22/323.aspx)

He explains how to set up filters with the userAccountControl attribute from AD user object.

  

Tags: , , | Categories: Tips and tricks | SharePoint Configuration | SharePoint related

Accessing a SharePoint server from outside a network with a Forefront TMG.

The following 2 scenarios can give you an Internal Server Error

  • View properties on document
  • Editing a list view

Full error text:

Error Code: 500 Internal Server Error. The request was rejected by the HTTP filter. Contact the server administrator. (12217)

 

?Solution

The reason why this happens is that the HTTP filter in Forefront has a URL protection mechanism wich will block URLs containing escaped characters after normalization.

To fix this:

  1. Open the properties of the firewall policy.
  2. Under the Traffic tab. Click Filtering
  3. Uncheck Verify normalization in the URL Protection section

 

Verify normalization will block URLs containing escaped characters after normalization.

 

Tags: , , | Categories: SharePoint related | SharePoint Configuration

In SharePoint you can only view alerts per site. That means you cannot see all your alerts at once.

View my alerts on a site

At the top of the site, click User name , and then click My Settings, click My Alerts.

View alerts for other people on a site

As a Site Administrator you can view alerts of other users on your site through Site Actions -> Site Settings -> Under Site Administration -> User Alerts select the person whose alerts you want to view and select Update.

View all my alerts

There are several solutions for this, CodePlex and other SharePoint companies have some.
Outlook to the rescue! If you are using Exchange your Exchange mailbox will keep track of all your alerts and where these are subscribed from.
Choose Rules and Alerts.. select the Manage Alerts tab.

blog-manage-all-alerts - small

Tags: , , , | Categories: SharePoint Configuration | Tips and tricks

Recently found this excellent post explaining the SharePoint UserProfile picture sizes and naming convention.

 

Naming convention for the thumbnail files:

Thumbnail Image File Name Size
Large domain_username_LThumb.jpg 144x144
Medium domain_username_MThumb.jpg 96x96
Small domain_username_SThumb.jpg 32x32

The full URL of the medium thumbnail (like, “ http:///User Photos/Profile Pictures/__MThumb.jpg”) is stored in the user profile database.

You can use this information like:

var picUrl = profile[PropertyConstants.PictureUrl].Value as string;
this.imgUser.ImageUrl = picUrl.Replace("_MThumb", "_LThumb"); 

 

 read the full post Photo Management in SharePoint 2010 

 

Tags: , | Categories: SharePoint Development | Tips and tricks

Got the message:

>>The document could not be opened for editing. A Windows SharePoint Services compatible application could not be found to edit the document. <<

ssp

This is a challange and there is several possibilities:

Tags: , | Categories: SharePoint related

Using the in the the wrong parameter with the SPWeb.GetList method you will receive a FileNotFoundException with the following very SharePoint-ish error message:

System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr>
<nativestack></nativestack><nativehr>0x80070002</nativehr>
<nativestack></nativestack>

The stacktrace will often give more information but the ULS log it wil simply show:

<nativehr>0x80070002</nativehr>
<nativestack></nativestack>

So the parameter is incorrect; Either the URL does not specify a valid path to the website, or the list does not exist in the website.

The GetList method gets the list that is associated with the specified server-relative URL to the root folder of a list, such as /sites/sitecollection/subsite/Lists/Announcements.

HINT

You can use the SPUrlUtility.CombineUrl with your webs server relative URL like this:

var list = web.GetList(SPUrlUtility.CombineUrl(web.ServerRelativeUrl, 
"lists/" + listFolderName));

I prefer to use the SPWeb.GetList over the SPWeb.Lists Property. Endusers can easy change the list title in the GUI but it is harder to change its URL.

Be aware; there are other methods casting System.IO.FileNotFoundException!

Tags: , , , | Categories: SharePoint Development | Tips and tricks

EditModePanel is perfect to add your own style or control in the edit mode form of publishing webs.

You can use it to add your own CSS file in the edit mode. 

EditModePanel

Properties

PageDisplayMode
Gets or sets a value that indicates whether this control is visible in Edit mode or Display mode.
SuppressTag
Gets or sets a value that indicates whether this control will render an outer <DIV> element.

more info on this MSDN http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.editmodepanel.aspx

 

 

Tags: , | Categories: SharePoint Development

The SharePoint Config log DB can grow quite large!

The following way can help you shrink the config databases. But do only use these in test or development enviroments!

SharePoint 2010 on SQL 2008 R2

  1. Right click on you DB -> Properties
  2. Select Options
  3. Change the Recovery Model to SIMPLE and Click Ok
Once that is done ,
-Right click on DB -> Tasks - > Shrink -> Files
- In File type select log and click OK
 
Note : Simple recovery model is not suggested for Production Systems
 

SharePoint 2007 on SQL 2005

Make two new Queries

BACKUP LOG [Sharepoint_Config] WITH TRUNCATE_ONLY
USE [SharePoint_Config]
GO
 

DBCC SHRINKFILE (N’SharePoint_Config_log’ , 50)
GO



Tags: , , | Categories: Database | SharePoint Development

Problems when trying to open a SharePoint Document Library in explorer view from Windows?

With errors like:

“Your client does not support opening this list with Windows Explorer.”

or in danish

”Klienten understøtter ikke åbning af denne liste med Windows Stifinder.”

Explorer view uses the WebDav protocol to connect to SharePoint from the client.

In Windows 7 or Windows Vista
Ensure the WebClient service is not disabled. The WebClient service is critical to the Open in Windows Explorer feature.

If already running and still not working try to restart the service.


In Windows Server 2008
The Windows Server is not designed to be a client and the WebDav client is not installed or enabled by default.
In order to enable the WebDav client on a server simply enable the Desktop Experience feature.

Tags: , | Categories: SharePoint Configuration | Tips and tricks