sharepoint

The search request was unable to connect to the Search Service

Hi, I am developing a sharepoint site using sharepoint object model. I am getting "The search request was unable to connect to the Search Service" message on execute FullTextSqlQuery. Office Sharepoint Server Search and Indexing Service are running. How can I solve this problem? Here is code: FullTextSqlQuery qry = new FullTextSqlQuer...

Custom Action Menu for particular Sharepoint List

I want my Custom Action Menu to be applied to particular list; currently its specified with the following XML and it gets applied to all the lists! More specifically speaking; I even want this custom action to be applied to a particular view of the particular list... <CustomAction Id="MyCustomActionId" Title="My Custom Action" ...

How bad is it to not dispose() in Powershell?

Sometimes we need to perform small administrative tasks in SharePoint. A simple PowerShell script is a really good tool for that. For instance, such script can enumerate event handlers of a list: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $site = new-object Microsoft.SharePoint.SPSite($args[0]) $site.Ro...

How do I make a webpart's settings configurable in Sharepoint?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am publishing a portal template. I want to develop a WebPart and make some settings configurable (just like we can configure parameters for a console application in app.config) For example, authorized users could set parameters of WebPart in Edit Pa...

What are the pros and cons of developing a SharePoint component versus a standalone app?

A client wants us to develop a Picture Library system for them. The requirements are pretty typical - need to add pictures, tag them with metadata, store different sized versions and so on. The client is keen on it being developed as a component which plugs into their existing SharePoint system. However, my feeling is that we would be b...

How to register a stylesheet on a Master Page within a Web Part

How would I register a Style Sheet on the Master Page within a SharePoint Web Part. In other words how would I add a CSS link on the master page, at run time, and the code which does this is present in a custom web part. I do not want to change the Master Page directly. I could not see anything in the API (this.Page.Master) which woul...

SharePoint AJAX Web Part 401.2/3 errors

I recently began writing an AJAX web part for use in SharePoint and I am having a strange error. It seems that EnsurePanelFix() is causing the web part to throw a 401 error; in the log, both 401.2 and 401.3 errors are showing up right around the same time. I made some changes to EnsurePanelFix() after doing a bit of research on here and ...

Sharepoint - Do not order column info

I have a column in a list I created that is using lookup and the lookup is referencing another list. The referenced list has just a list of times(1:00 AM, 1:30 AM, 2:00 AM). The problem I'm having is that when I show the referenced list in my column it is sorting it so that is shows like: 1:00 AM, 1:00 PM, 1:30 AM, 1:30 PM. The referen...

SPView.Clone Method

I'm showing a view within a webpart and I update this view to filter the list items according to the logged on user's groups. Is there a way to clone the view and update it leaving intact the original one? I need this cloned view to be temporarary since I don't need it after rendering it. I know there's a SPView.Clone method but it's lit...

Extending WSS3 task lists to support recurring reminders

WSS 3.0 will let me send an email to a group when a new task is added to a task list. What I would like to do is to run a weekly task that sends out reminders of tasks due within certain periods, i.e. 2 days, 7 days, 14 days etc. I thought the simplest way would be to build a little C# app thatr sits on the WS2K3 box and qeuries the WSS ...

Retrieve the name of SharePoint Document Library name using Document Library URL

Hi, We have a requirement to retrieve document library name based on the URL of a document library. We have searched through all the methods offered by "List" web service in SharePoint, but could not find any method that takes the URL of the document library as input and provides the document library name. Appreciate any thoughts. Than...

Bulk cancel deployment SharePoint

Is there and easier way to cancel all WSP files currently being deployed to a SharePoint farm? I'm currently using the STSAdmin function CancelDeployment but this requires me to run STSAdmin EnumDeployments first and manually copy and paste the job IDs into another script. I need an easier way to do this, as I might have to ask someone...

Windows Sharepoint Services 3.0 and Search Service

Hi there We've setup the sharepoint services sites and works nicely. We've also setup multiple sites such as: http://192.168.100.52/, http://192.168.100.52/sites/IT, http://192.168.100.52/sites/Finance and couple other sites under the root. We've setup the search service as per Ms said BUT my impression that when you search you only s...

Check if MOSS resource exists generating unexpected 401's

I have a webdav function listed below: The behavior is completely unexpected.... When I first run the function and pass a URL to a resource (folder in sharepoint) that does not exist, I get a 404 which is expected. I then use another function to create the resource using THE SAME credentials as in this method. No problems yet... Howev...

Policy Exception SharePoint

Hi, I have a web part and the dll is deployed to the bin of the web application.I have created a custom cas policy and deployed( wss_custom). Just for the sake of testing i have given Unrestricted access to whatever IPermission i knew (around 10). Most of the IPermissions i got is from the PermCalc.exe. Yet i get the following error gen...

Windows Sharepoint Service (WSS) 3.0 search Issue

Based on this http://servergrrl.blogspot.com/2008/02/how-to-use-wss-30-to-search-more-than.html blog, I've created a domain account for testing and sets the permission at the side level as well as Document Library to allow specific user (DOMAIN/TestUser1) allow accessing this folder. Now, it's interesting that the user can see the docum...

how to send alert to person chosen during the creation of new item in the list in sharepoint 2007

I am using microsoft office sharepoint server 2007. i have a sharepoint list in which one collumn is assinged operator. this column selects a single user from a group called operators. i understand that there is an option to send alert to users using alert me setting of the list. however the problem is that i dont want to send alert to...

Is it possible to add a folder that holds our documents to a sharepoint site on another server?

Ok, so we have two servers. One with Sharepoint on (amongst other things) and one with our company documents on. Is it possible to link the two together so the documents get stored on the file server but can be displayed through sharepoint on the other server? We want to be able to access the files through sharepoint when outside the of...

Unable to response quickly to AD retrieval

Hi, I am developing a SharePoint application which needs users from a specified Windows Server 2003 Active Directory Organizational Unit. Firstly I wasn't concerned about the 'Dispose' and 'Close' operations on DirectoryServices objects. In this point the retrieve operations were quick and successful. But this was causing 'Server is...

TagNames and Identifiers for "Person or Group" Column

does anyone knows the tagname and identifiers for Person or Group column in sharepoint 2007? I've got these one: Single Line of Text identifier: TextField tagName:input Lookup (single)* identifier: Lookup tagName:select Yes/No identifier: BooleanField tagName:input so i could use this function getTagFromIdentifierAndTitle("input"...