wss

Windows SharePoint Services Search won't stop

Background: I had been asked to create a second Sharepoint application server to reprovision the one that is currently in the SharePoint Farm. I installed the os, SharePoint, and SP1. I then began the process of moving all the services on to the new server. (The central farm consists of 2 WFE and 1 App server, each on W2K8). Problem: I...

Sharepoint OOTB Survey List Exception

I have created an OOTB Survey list with a single question. The question is a choice type with radio buttons. When a user navigates to the survey and they click "Respond to Survey" they get the screen where they can select there choice. Once the user clicks submit I get the following exception: “One or more field types are not installed ...

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use localhost as hostname it works, but when I use machine name I get an error 401 Unauthorized. I am setting the credentials like this: Networ...

SharePoint : Translating links for me, and its unwanted

I am inserting a list item using sharepoint web services.... Here is my code: item += @"<Field Name=""HyperLinkField"">" + this.SharePointSiteAddressLinks + @"/lists/" + this.ListName + @"/" + this.ID + "_" + this.MessageID + ", " + this.MessageID + ".ext</Field>"; the value of SharePointSiteAddressLinks is http://machineName The ...

SharePoint 2007 : Get all list items in a list regardless of view from web service?

I need to check for duplicates. Currently I have items stored in sub folders in a list. How can I retrieve all items in the list from a web service, so I can check for duplicates? Here is code from object model: I want to do exactly this, but from a web service private static void PrintItemTitles() { string strUrl = "http://loc...

Consume a webservice - WS Security

I am about to develop a windows applikation which need to communicate with an Axis2 webservice using Web Service Security - all the documentation says is, that the SOAP security communication is configured to TIMESTAMP, SIGNATURE, ENCRYPT and the the certificate of my company must be installed in my keystore and the SOAP client I am abou...

SharePoint : how to get the list static name via web service method

When I create a list in sharepoint using a feature I specify the staticName which becomes part of the URL to the list. When I query the list, and want to get the name - now all the sharepoint web service sends back is the ID, for example: Name=\"{1836D8BB-77D3-4266-AA09-1ABB68E5C672}\" How can I get the static name again? Thanks ...

Sharepoint Smartpart Issue

Hi, I am very new to Sharepoint programming, like the rest of my team is. We have decided to use smart part as our bridge between sharepoint and our development efforts. After some effort we got it up and running. However, the problem is, that when i use a simple user control for test, with sharepoint om code that gets names of files in ...

How to disable the editing of the item after it was approved in SharePoint (WSS)?

Is there a way to disable editing after the the item was approved? One option I thought about is writing an event handler that will fire when user tries to edit the item and allow the operation based on the approval state. Does anyone have more straight forward solution to this problem? P.S. Owner of the item should stay the same. ...

Deploy Web part as a feature

Hi all, I have a web part dashboard.cs which render some HTML according to records in a list. No I have a site definition created. I want to integrate this web part in my site defination as a feature so when I Build my project with the help of install.bat i want to install this feature which will deploy this web part on respective site....

Adding a WebPartZone using a feature

In a number of different WSS and SharePoint sites we typically add a LeftNavZone to the default.aspx page using MS Office SharePoint Designer. I'd like to write a feature to do this programatically so it can be activated only on certain sites. Is this possible? I would like to add it within <asp:Content ContentPlaceHolderId="PlaceHol...

Moss 2007 Site Action -> Site Settings have disappeared

For some unknown reason for the admin user of our Moss site (and all other users who had full control permissions) the Site Action -> Site Settings menu option have disappeared from the home page. I can navigate to it by going to mysite/_layouts/settings.aspx but I can't change anything it says I do not have permissions. Any ideas what ...

WSS error when trying to check out PDF files

I have a strange issue in WSS 3.0. It uses forms-based authentication and is under ISA. I can check out any file except PDF files. When I check out a PDF I get "Value does not fall within the expected range." I suspect this has something to do with ISA and where SSL is terminated. I have had problems before where links that should be htt...

Add a document and metadata to a document library without creating 2 versions.

I have a requirement to programmatically add a file along with metadata to a document library and in an event handler. I am using the following code in the asynchronous “ItemAdded” and “ItemUpdated” events: SPFile destFile = web.Files.Add(newUrl, newFile, true); SPListItem destItem; if (destFile.Item != null) { destItem = destFile.It...

Is there some way in SharePoint to change document library views on a per-user basis?

We are using WSS 3.0 and I was asked to see if users can set default views on a per-user basis. Is anyone aware of any method (programatic or through the GUI itself) to give users the ability to change default views on a per-user basis? The 30 minutes of googling and poking around in the administrative menus turned out to be unfruitful...

SPDisposeCheck reports an error on SiteProvisioning.RestoreDataViewOutZone method

Hi, I ran the SPDisposeCheck tool on my SharePoint assemblies but it reported three errors on a SiteDefinitionAssembly which also has the site provisioning handler. As far as I understand it this code is generated by the project template itself and we are not supposed to change it. The error I get is ID: SPDisposeCheckID_160 Module: Sy...

Adding a cloned SPView to a list

Ok, does anyone know how/if you can clone a SharePoint view and then add it to a list. The SPViewCollection.Add overloads will not take an instance of SPView and I couldn't find any documentation that indicated how to do so. For example I would like to essentially do this: var myList = SPContext.Current.Web.List;//or something similar...

How to add a new WebPart in a specific Group after it is deployed

Hi, I am constantly writing custom WebParts but after I deploy them, they always get added to the "Miscellaneous" category. How do I add a WebPart to a specific category? The category that I am referring to here is the one we see in the "Add Web Parts..." pop up, which is activated when the "Add a Web Part" is clicked on a zone. Thank...

SharePoint list CAML query using CONTAINS

I am trying to query a sharepoint list using the following CAML query in a webpart. I have tested the query in U2U CAML Query Builder and Stramit CAML Viewer and it works fine, only returning the matching records, but when I use it in my webpart it return all list items. It is driving me crazyyyyy. Here is the code: string camlQuery =...

SharePoint / WSS: How to localize a feature

I have a WSP package that contains some features. I need to be able to localize the following in the features: Site Column Field Display Names Description of Content Types List Instance Description List Schema Fields I am looking for a method to achieve all of this as easily as possible. ...