moss

Scope of a timer job feature

我怕爱的太早我们不能终老 提交于 2019-12-05 20:49:50
问题 I am writing a timer job for the first time. I am following the examples that can be obtained by googling as my reference. In many such articles, I am coming across the timer job features being activated to the Site Collection level or the Site level. I feel this is weird, since there can be only one instance of a timer job for a particular web application. Should't all the timer job features be scoped to a Web application? Am I missing anything here? 回答1: It depends entirely on your scenario

How can I integrate Laconica update stream into SharePoint?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 16:08:57
I have Laconica (self hosted twitter ) configured on my local intranet and would like to integrate the public stream into SharePoint site with a web part. How can I do this? spoon16 You can point an RSS Viewer web part at the laconi.ca public stream RSS feed and use this XSLT to ensure attractive output. Result screen shot: Screenshot of Laconica update stream in SharePoint Team Site http://friendfeed.s3.amazonaws.com/9e1759e689923f47ed4aa8721c9e104980db4b1c XSL transform: <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" exclude-result-prefixes="xsl ddwrt msxsl

Get Directory Path to 12 Hive programmatically

淺唱寂寞╮ 提交于 2019-12-05 14:06:48
Is there any way to get the directory path of the 12 Hive programmatically? I am creating a feature which delivers a file to the XML directory in the 12 hive, and I don't want to hardcode the directory path in my code. Is there any Object Model property which exposes the 12 Hive directory path string as a property? You can use the Microsoft.SharePoint.Utilities.SPUtility.GetGenericSetupPath() method. See for more information the WSS SDK: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.utilities.sputility.getgenericsetuppath.aspx Why would you need to put xml files in the 12 hive?

Determine which edition of SharePoint is Installed?

孤街浪徒 提交于 2019-12-05 10:52:04
What is the most reliable way to determine which version of SharePoint is installed. Whether it is WSS or MOSS. If MOSS, whether it is standard or enterprise. I want to programmatically detect the exact SharePoint version installed.. PS: I already have posted this question at SharePoint.SE but could not find a convincing answer. Rubens Farias You could try to use SPFarm.Local.BuildVersion or SPWebService.ContentService.Farm.BuildVersion (from this previous question ) and to build a lookup table based on this: How to find the level of SharePoint you are running? Another option is to read

How do you instruct a SharePoint Farm to run a Timer Job on a specific server?

删除回忆录丶 提交于 2019-12-05 08:11:54
We have an SP timer job that was running fine for quite a while. Recently the admins enlisted another server into the farm, and consequently SharePoint decided to start running this timer job on this other server. The problem is the server does not have all the dependencies installed (i.e., Oracle) on it and so the job is failing. I'm just looking for the path of least resistance here. My question is there a way to force a timer job to run on the server you want it to? [Edit] If I can do it through code that works for me. I just need to know what the API is to do this if one does exist. I

Regarding MOSS or WSS 3.0, What parts of the API might have been implemented better?

孤人 提交于 2019-12-04 23:42:05
问题 Such as: Sealed Methods you might have liked to extend Exceptions thrown are more vague than is helpful Elimination of Connected Content which was a major feature in MCMS 2002 HTML is stripped from fields when stored and returned. No easy option to work around this problem Creating an SPWeb takes an eternity. Nonexistant migration path from MCMC 2002 回答1: I wish that the Sharepoint object model was purely managed code. Although having .NET wrappers is convenient, having to worry about

Saving a document to SharePoint brings up “Web File Properties” dialog with incorrect metadata

牧云@^-^@ 提交于 2019-12-04 20:21:18
Situation: A custom "Master Document" content type inherits from Document The "Master Document" content type has five additional choice fields There are five custom "Document Template" content types that inherit from the "Master Document" content type Each of the "Document Template" content types uses a different Word document template (.dot) file Each of the "Document Template" content types have been added to a document library Problem: I click on a document in the library Document opens up in Word 2003 for me to edit I make some changes and save A box pops up called "Web File Properties".

Creating custom URL tokens in ASP.NET (a la MOSS)

杀马特。学长 韩版系。学妹 提交于 2019-12-04 19:16:31
In ASP.NET, the tilde (~) is treated as a token in URLs and treats paths prefixed with that as relative to the application root. This is well-known functionality. In MOSS, there are other tokens, such as ~sitecollection/mypath... which behaves in a similar way, but treats the path as relative to the site collection root. How is this accomplished? After a cursory search I could not find any info on how to add tokens like this to the .NET URL resolution mechanism. It may not be the only place, but SPUtility.GetServerRelativeUrlFromPrefixedUrl() will parse URLs with ~site and ~sitecollection.

SharePoint Personalization With Application Pages

别说谁变了你拦得住时间么 提交于 2019-12-04 18:12:33
I am trying to implement personalization (WebPartManager and WebParts) on ASP.NET application deployed to SharePoint as application pages (Separate application and aspx pages deployed to _layouts). I'd like to take advantage of SharePoint personalization provider, so I can just wire up the provider to WebPartManager in the ASP.NET application. However SharePoint seems to call SPRequest object to perform these tasks, and does not have a provider for personalization. The second option I tried was to use SharePoint WebPartManager on these pages but it does not seem to work because application

SharePoint column default values - add 10 working days

风流意气都作罢 提交于 2019-12-04 17:04:48
In SharePoint MOSS 2007, I have created a custom content type that I will be applying to a document library. One of the required fields is "Incoming Date" and another is the "Due Date". The Due Date is always 10 working days from the Incoming Date. The Incoming Date is when the mail room received the letter, not necessarily when the document is posted to the library. From here: http://msdn.microsoft.com/en-us/library/bb862071.aspx =DATE(YEAR([Incoming Date]),MONTH([Incoming Date]),DAY([Incoming Date])+10) adds 10 days, but how can I add 10 working days? I don't have the luxury of VS.NET either