Yesterday, I was working on a SharePoint Workflow. I needed to copy the final InfoPath (xml) to a different library. My first thought was to use the spfile.copyto but that gave me the “Value does not fall within the expected range.” or COM errors.
Instead of wasting my time trying to figure out how to make the copyto [...]
Continue reading about How to copy files across SharePoint libraries.
in web.config set:
<SafeMode MaxControls=”50″ CallStack=”true“/>
<customErrors mode=”Off”>
Profile Import Error: The specified domain either does not exist or could not be contacted. (Excepti
The other day, I had an issue importing User Profiles and Properties from Active Directory. In this case my MOSS server is on a child domain and it could import the child domain’s objects, but it could not import the objects from the parent domain. Checking the log, I saw an error like the following.
spsimport://domain?$$dl$$
The [...]
I’ve seen the question if it is possible to enable Audience Targetting on a SharePoint document library or list trough code, but I’ve never found an answer to it. But this weekend Ryan Ramcharan posted a solution in one of the SharePoint Forums posts. It looks like you can enable Audience Targeting programatically by adding the [...]
Continue reading about Enable Audience Targeting Programmatically
MOSS on a 2 server farm
Create a local admin user on the SharePoint Server
Create a database user with security admin and db creator roles.
Now you can install MOSS on the SharePoint Server, but do not go to the configuration wizard!
After the installation go to the bin directory in the ‘12 hyve’ with a command prompt [...]
using System;
using ASP = System.Web.UI.WebControls;
using System.Web;
using Microsoft.Office.InfoPath.Server.Controls;
namespace WMDD.WebParts
{
public class FormViewer : ASP.WebParts.WebPart
{
protected override void CreateChildControls()
{
XmlFormView formView;
formView = new XmlFormView();
formView.Width = ASP.Unit.Percentage(100);
formView.Height = ASP.Unit.Pixel(100);
formView.XsnLocation = “Path to form XSN”;
formView.ShowHeader = false;
formView.ShowFooter = false;
this.Controls.Add(formView);
base.CreateChildControls();
}
}
}
Continue reading about Embed InfoPath form in SharePoint page as Web Part
As I was playing with MOSS 2007 and ISA today, I wanted to publish a SharePoint subsite, without publishing the root site.
Since I’m not that experienced in ISA Server, I sometimes turned to Bart Bultinck (great guy, great systems engineer) on my MSN Messenger. He’s way more familiar and experienced with ISA Server.
So the situation [...]
Continue reading about Publishing MOSS subsites with ISA Server
by Matthias
When you develop actions (or workflows) that should be executed when an expiration policy occurs you need to test them, and that is problem in MOSS as the Expiration Policy job only is scheduled to run once a day. Probably you can’t sit around waiting all day for the job to run so you [...]
Continue reading about Force execution of expiration policies in MOSS
private string GetSmtpServer()
{
SPWebApplicationCollection spWebApplicationCollection = SPWebService.ContentService.WebApplications;
SPOutboundMailServiceInstance smtpServer = new SPOutboundMailServiceInstance();if (spWebApplicationCollection != null)
{
foreach (SPWebApplication spWebApplication in spWebApplicationCollection) {
smtpServer = spWebApplication.OutboundMailServiceInstance;
return smtpServer.Server.Address;
}
}
return string.Empty;
}
Continue reading about Programmatically Using the Outgoing SMTP Server from Central Admin
“The Microsoft Filter Pack for search has been released enabling critical search scenarios across a variety of Microsoft Search products including SharePoint Portal Server 2003, Microsoft Office SharePoint Server 2007, Windows SharePoint Services 3.0, Search Server 2008, Search Server 2008 Express Edition, Exchange Server 2005, SQL Server 2005/2008, and Windows Desktop Search 3.1/4.0.
The Microsoft Filter [...]
You can run stsadm -o enumtemplates to verify that your template was added, and you’ll also notice that it’s been given a name like “_GLOBAL_#1″. If you’ve added a template to the Sharepoint Portal Server Template Gallery (#2 above) you’ll notice that this template is not listed when using stsadm.
Stsadm will not list the default templates [...]
Continue reading about Using Custom Site Templates through the Sharepoint API
To adjust the top level navigation in all My Sites do the following.1)go to the Central Administration and click on the SharedServices. 2)find the link Personalization site links under User Profiles and My Sites.
Add new links here that will be added to the top level navigation.Now you should target your audience. Create audiences or use [...]
Which is the correct way to patch WSSv3 and MOSS farms.
In order to apply the patch, run PSCONFIG?
Everything needed is right here
http://technet2.microsoft.com/windowsserver/WSS/en/library/91649a7e-6b5a-4e5a-9ee5-51951f4b857f1033.mspx, Deploy software updates for Windows SharePoint Services 3.0
http://technet2.microsoft.com/Office/en-us/library/f484f5f2-35bb-4d70-bf56-dd1c4c287c721033.mspx, Deploy software updates for Office SharePoint Server 2007
by El Blanco
By using the SPUser.Groups property you can easily enumerate the groups that a user has been assigned to. However one problem with this approach is that if the user is a member of a domain group that has been allocated to a SharePoint group, then this group does not appear in SPUser.Groups. e.g. [...]
Continue reading about Determining Whether a User is a Member of a SharePoint Group or Not