moss

Retrieving the associated shared service provider's name?

梦想的初衷 提交于 2019-12-13 15:36:42
问题 How do you programmatically retrieve the name of a shared services provider that's associated with a specific Sharepoint web application? I have a custom solution that needs to: Enumerate all web applications that it's deployed to Figure out the Shared Services provider that each of the web applications is associated with Access a Business Data Catalog installed on the SSP to retrieve some data Enumerate through all site collections in those web applications Perform various tasks within the

Adding a Content Type to all Document Libraries

Deadly 提交于 2019-12-13 08:37:57
问题 We have hundreds of document libraries, spread all throughout various site collections in a MOSS 2007 SharePoint site. The problem is, that I want to add Content Type to show up in addition to the "New Document" and "New Folder" content types: the "Link to a Document" content type (0x01010A). This new content type should should up for all existing and new document libraries. What I've tried: I thought that I would be able to add the following to a schema.xml somewhere inside the <ContentTypes

Sharepoint errors

老子叫甜甜 提交于 2019-12-13 04:16:46
问题 I have created a .net web part and deployed it on the sharepoint site. When I preview it, the sharepoint throws up an error saying "An error occured when previewing the Web Part" The code in the web part is as follows Dim myweb As Microsoft.SharePoint.SPWeb = Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(Context) 'Dim mylist As Microsoft.SharePoint.SPList = myweb.Lists(System.Configuration.ConfigurationSettings.AppSettings("BedList").ToString()) Dim mylist As Microsoft.SharePoint

SharePoint - Invalid Field Name Error

自作多情 提交于 2019-12-13 02:56:33
问题 UPDATE Worth noting that this is only happening when the site definition is called from SPWebApplication.Sites.Add, if I use the UI then this works fine. My code is impersonating the system account when calling this code. Am I right in thinking that the ApplyWebTemplate() method of SPSite is asynchronous? If this is the case then my issue is probably one of timing. I.e. the required infrastructure is not yet in place when this code is run. ORIGINAL QUESTION I have a custom site definition

Sharepoint Master Pages and Session State

南笙酒味 提交于 2019-12-12 22:32:31
问题 I’m using Heather Solomon’s minimal publishing master page, I’ve got a simple feature with an apsx page and a code behind file that does this public class SSInformPage : Page { protected Literal Literal1; protected override void OnLoad(EventArgs e) { //base.OnLoad(e); try { HttpContext.Current.Session["Name"] = "Mr Ben"; Literal1.Text = string.Format("{0} {1}", HttpContext.Current.Session["Name"].ToString(), Session.SessionID); } catch (Exception ex) { Literal1.Text = string.Format(ex.Message

Override SPList.WriteSecurity behaviour?

丶灬走出姿态 提交于 2019-12-12 19:31:15
问题 As MSDN states, then WriteSecurity has 1 of 3 states possible: 1 — All users can modify all items. 2 — Users can modify only items that they create. 4 — Users cannot modify any list item. But if I want behavour nr. 2 plus users can modify items that are assigned to them ? Well if I grant a user full permissions (put in owners group) for list, then those can edit any item (not good). So why wouldn't it work by setting item level permission "full control" just for AssignedTo user (good)? I did,

CAML return only 10 results

纵然是瞬间 提交于 2019-12-12 18:12:00
问题 Is it possible using CAML to limit the amount of results returned. Say for example my query would pull back 25 results I would like the first 10 only. 回答1: if you are using SPQuery then the RowLimit property should do the trick. 来源: https://stackoverflow.com/questions/2318103/caml-return-only-10-results

Where is the default log location for SharePoint/MOSS?

血红的双手。 提交于 2019-12-12 07:39:54
问题 I found the answer after digging and thought I'd store it here. C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS 回答1: SharePoint uses a lot of different logging mechanisms. Most importantly you can configure the location of the logs through Central Admin. To give you an understanding of the logs involved, here is a quote from http://raiumair.wordpress.com/2007/06/19/quick-a-to-z-of-sharepoint-logs/ All file based logs can be read by text editors and can be parsed

Looking up document library items in a SharePoint workflow

空扰寡人 提交于 2019-12-11 17:49:14
问题 I using SharePoint Designer to create a workflow. I'm trying to get at a sub-folder in a document library in the "Define Workflow Lookup" dialog. There are two issues with this: I can't look up items by URL Path. If I look up by Title, I can output the URL Path, but selecting by path doesn't work. What fields can/can't I use? I can't get at any sub-folders. I can get at the top-level folder, but the sub-folders don't seem to be available. Noticed the same things is true when looking at the

Microsoft SharePoint Search - Ignore sections of the page

坚强是说给别人听的谎言 提交于 2019-12-11 15:26:15
问题 I am using Microsoft SharePoint Search (MOSS) to search all pages on a website. My problem is that when you search for a word that appears in the header, footer, menu or tag cloud section of the website, that word will appear on every page, so the search server will bring you a list of results for that search term: every page on the website. Ideally I want to tell the search server to ignore certain HTML sections in its search index. This website seems to describe my problem, and a guy says