TwitterLinkedInBlog

Sunday, December 7, 2008

SP2007 - How to delete a site with subsites

Site Actions > Site Settings > Site Administration > Content and Structure
In the left column, move to the parent of the main site to be deleted
In the right column, choose the site to be deleted
Actions > Delete

Friday, August 22, 2008

SP2007 - Time Zone

Central Administration > Application Management > Web Application General Settings > Default Time Zone

Site Collection > Site Settings > Regional Settings > Time Zone

SP2007 - Web Part Error: One of the properties of the Web Part has an incorrect format.

Web Part Error: One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again.

Windows directory
%WinDir%\Temp
Administrators - Full Control
SYSTEM - Full Control
WSS_WPG - Read, Write
Network Service (for a domain controller only) - Read, Write

%WinDir%\system32\logfiles
STS Administrators - Full Control
SYSTEM - Full Control
WSS_WPG - Read, Write
Network Service (for a domain controller only) - Read, Write

SP2007 - web.config debug settings

SharePoint 2007 web.config debug settings

<configuration>
  <SharePoint>
    <SafeMode CallStack="true" />
  </SharePoint>
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" />
  </system.web>
</configuration>

SP2007 - The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to Temporary ASP.NET Files

"The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to Temporary ASP.NET Files"

aspnet_regiis -ga "NT AUTHORITY\NETWORK SERVICE"

Tuesday, July 22, 2008

SP2007 - User Information List

/_catalogs/users/detail.aspx
/_catalogs/users/simple.aspx

Wednesday, July 16, 2008

VS2005/2008 - I want my SharePoint Start Page news channel

Tools > Options > Environment > Startup > Start Page news channel > http://www.microsoft.com/feeds/msdn/en-us/sharepoint/rss.xml

Tuesday, July 15, 2008

VS2005/2008 - How to track the active item in Solution Explorer

VS2005 > Tools > Options > Projects and Solutions > General > Track active item in Solution Explorer

SP2007 - How to import users from Active Directory if their email addresses are wrong

Central Admin > Shared Services > User Profiles and Properties > Start Full Import > Repeat

Thursday, July 10, 2008

SP2007 - Getting cozy with InfoPath Workflow Task Edit Forms and ItemMetadata.xml

The relationship between a workflow task and the InfoPath task edit form is a confusing one at first. To pass information from the workflow task to the InfoPath task edit form, use ItemMetadata.xml as a secondary datasource in InfoPath. Great, but how do you pass information from the InfoPath task edit form back to the workflow task?

Turns out this is handled automatically. For example, if you add a column to the workflow task list with the same name as the ExtendedProperty, you get to see the values in the list view. Make sure to create the column with the exact name of the ExtendedProperty. You may immediately change the name to a friendly name after creating the column since the actual field name that matches the ExtendedProperty remains intact.

Monday, July 7, 2008

SP2007 - Exception has been thrown by the target of an invocation

Exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.

Possible Explanation(s):

You were debugging, you deleted your replicator, you forgot to put the replicator back.

Tuesday, July 1, 2008

SP2007 - Attachments in InfoPath Form that is a Task Workflow

http://blogs.msdn.com/wael/archive/2007/12/26/attachments-in-infopath-form-that-is-a-task-workflow.aspx
File:
%Program Files%Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\application.master
Change:
<form runat="server" onsubmit="return _spFormOnSubmitWrapper();">
To:
<form runat="server" onsubmit="return _spFormOnSubmitWrapper();" enctype="multipart/form-data">

Monday, June 23, 2008

VS2005/2008 - SharePoint Intellisense

Set the Schemas Property of each document to:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\wss.xsd

VS2005/2008 - Workflow Snippets

Tools > Code Snippets Manager > Language: XML > Add >
C:\Program Files\Microsoft Visual Studio 8\Xml\1033\Snippets\SharePoint Server Workflow

SP2007 - View All Site Content

/_layouts/viewlsts.aspx

SP2007/2010 - Web Part Page Maintenance

Add the following to the end of the URL of the web part page:
?contents=1

SP2007 - Default and Custom Workflow History List URLs

The Default Workflow History List
http://base_site/Lists/Workflow%20History/AllItems.aspx

Custom Workflow History Lists
http://base_site/sub_site/Lists/list_name/AllItems.aspx

Thursday, June 19, 2008

SP2007 - Two Contact Selectors in One InfoPath Form

From the InfoPath Team Blog:

# re: Using the Contact Selector Control
Tuesday, May 22, 2007 1:56 PM by Scott Heim
Hi neoearth,
Assuming you have followed the naming conventions in this post, you have a group node named: gpContactSelector under the "myFields" node. To utilize another Contact Selector control:
- Add a new group node under myFields named, for example, gpContactSelectorNew
- Expand the existing gpContactSelector node
- Right-click on the Person repeating node and choose Reference
- Select the new group node, gpContactSelectorNew, and click OK
- You should now see the Person node under gpContactSelectorNew - simply drag gpContactSelectorNew to your view and select Contact Selector!
Scott

SP2007 - Workflow SequenceActivity inside a ReplicatorActivity

When using a SequenceActivity inside a ReplicatorActivity, set the OwnerActivityName SubProperty of the CorrelationToken Property to the SequenceActivity, not the Workflow. If the OwnerActivityName is set to the Workflow, you might get the following error: Correlation value on declaration "taskToken" is already initialized.