Gentleman warm up your SharePoint Engines

Ever thought things on ASP.NET were a bit slow the first time accessing them? Many of you are aware that ASP.NET from a web admin perspective know that things have to recompile and things just aren't as fast the first time. In fact some times things are incredibly slow the first time and are incredibly slow. Ever had users say, for some odd reason some times when I hit my SharePoint site it takes 30 seconds to load, then after a refresh it goes sub second, even clearing their cache the page is fast. That's because it's not a user issue, its simply compiling, caching, etc… on the server after an IISReset or app pool reset or worker process cycle.


Joel Oleson's post is very very interesting:

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Enable self-service site creation

When you want your users to be able to create a mysite you might get the following error:

'Your personal site cannot be created because Self-Service Site Creation is not enabled. Contact your site administrator for more information.'

this is because default this feature is turned off. Administrator must explicitly turn this feature on in order to permit users to create a mysite.

Perform the following steps to enable self-service site creation:
1. Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint 3.0 Central Administration.
2. On the Central Administration home page, on the top navigation bar, click the Application Management tab.
1. On the Application Management page, under the Application Security section, click the Self-service site management link.
2. On the Self-Service Site Management page, select http://MYSITE-2222/ from the Web Application drop-down list, if it is not already selected.
3. In the Enable Self-Service Site Creation section, select the On option and click OK. This enables users to create sites under the selected Web application.

problem solved.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

How do I enable auditing MOSS 2007

There are several options:

For a whole site collection:
In 'Site Settings' click on 'Audit Settings' or navigate to http://xxxx/_layouts/auditsettings.aspx
Select the actions you want to audit.

For a particular document library:
In ' Document Library Settings' : 'Information management policy settings'
Click to create a local policy and select Auditing and actions

For a particular content type:
Just create a content type and click on 'Information management policy settings'
Click to create a local policy and select Auditing and actions

To view the Audit Log Reports you have to activate the Reporting feature :

Navigate to: http://xxxx/_layouts/ManageFeatures.aspx?scope=Site
Find Reporting and click on 'Activate' (if not activated)
Go to 'Site Settings' then you should see 'Audit log reports'.
You can click on the link and then you can select the report you would like to generate.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

SPListItem properties metadata columns with C# Part2

Part 1

To change Propertie fields that are not plain text fields there are some problems in addign specific data to these columns.

for example:
You want to add a user to the assigned to field from an item in a TaskList

This won't work!
oNewTask[“Assigned To”] = “DOMAIN\\Tom.VanGaever”;

Instead you should use

when you are in a WorkFlow you can use
m_selectItem = WorkflowProperties.Item;
newTask[“Assigned To”] = m_selectedItem.Web.AllUsers[“DOMAIN\\Tom.VanGaever”];

Otherwise use the SPWeb object of your sharepointsite
SPWeb oWebsite = collWebsites[“Site_Name”];
newTask[“Assigned To”] = oWebsite.AllUsers[“DOMAIN\\Tom.VanGaever”];

Why?
A User field contains a string in the form ID;#User_Display_Name, where ID is the member ID of the associated user. The following example parses the value of an Assigned To field to return an SPUser object.

string strUserValue = oList["Assigned To"];
int intIndex = strUserValue.IndexOf(';');
int intID = Int32.Parse(strUserValue.Substring(0, intIndex));
SPUser oUser = oWebsite.SiteUsers.GetByID(intID);

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

SharePoint WorkFlows, Visual Studio 2008 and VSTO Power tool: SharePoint Workflow package generator

The development of SharePoint Workflows is not so complicated as you might think.

But you need the right tools:

Visual Studio 2008 and VSTO Power tool: SharePoint Workflow package generator combined enables you to debug realtime on your development server and everytime you build your workflow the SharePoint Workflow package generator creates a wsp file that you can install on the productionserver…fantastic!

The combination between the powertool and VS2008 is not out of the box, you need to add a few XML code lines to your csproj/vbproj file to get a wsp file after every build.

What do you need:

Visual studio 2008
VSTO Powertools

Start Visual Studio on your development server for debug purposes. Create your workflow and hit F5! :)

If you want to create a wsp (solution) file every time you build at the following code at the end of your csproj/vbproj file,

First of all instal the Powertools from the site above.

Secondly enter these lines of code




Finally hit Ctrl+b

Now you see that there is an [solutionname].wsp in your project directory.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Office support for document format standards

If you're an Office 2007 user, the image above probably looks pretty familiar. But look close, and you'll see some Save-As options you've not seen before here: OpenDocument, and (unless you have the existing add-in) PDF & XPS.

This is a screen shot of a pre-release copy of SP2 (Service Pack 2) for the 2007 Microsoft Office System, showing the new document format standards that we'll be supporting starting with SP2.

read More here

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

LINQ and Entity Framework breakfast event

You are invited to attend our LINQ and Entity Framework breakfast event

Over the last 12 months, Microsoft has been talking a lot about two major innovations related to representing and querying data.

The first is a set of extensions to the .NET Framework for integrating queries into the programming language known as LINQ.

The second is the new Entity Data Model exposed as part of the ADO.NET Entity Framework.

What are these technologies and how do they relate to one another?

Come and join us during one morning and get breakfast, the complete picture on Microsoft

VN:F [1.9.22_1171]
Rating: 5.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)