sharepoint

TFS vs SharePoint: what is the best location to store documentation?

Usually, business people keep their documents in the SharePoint portal. I am (as a developer) would rather keep them in TFS (or any other source code repository) closer to the source code. Also in the latest case I would make folders structure in way like "Src", "Doc", "Data" to keep everything more consistent. Could you please share wh...

asp.net Session variables inside of SharePoint

Hello, So, here is a problem that I am having with asp.net app inside of SharePoint (as page viewer). When the Default page is loaded, it works fine. However, when I try to go to next page, i am getting a null reference exception. It looks like my session variables are becoming null on the next page (even though I set them on the pre...

custom workflow visual studio 2010 for SharePoint 2010

Hi Everybody, I have written a custom workflow in visual studio 2010 with custom Task Edit Form which is associated with content type and that content type is in turn associated with Task List. When an item is created in the target list to which my custom workflow is attached, a task item is created when I click on that task item it l...

Alert is using a language other English to display the alert's title (SharePoint 2010)

I have a SharePoint 2010 portal, and it seems as though some people receive alert's with a language other than English for the alert's title. You have successfully created an alert for '럢镛乪佟犋֣␓' Can someone help me understand how that would happen? Is that a configuration on the SharePoint side? Configuration on each site? Configurati...

SharePoint 2007 State Machine Workflow project in VS2010 CAS Policy error on deploy.

Recently, I've started getting the following error whenever I try to deploy certain State Machine Workflows to my local SharePoint instance: This method implicitly uses CAS policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the NetFx40_LegacySecurityPolicy conf...

Determine Total Count Of Items Returned By SPQuery

Hi, I'm running a number of CAML queries against a large list in SharePoint 2010, and displaying the results in a gridview to the end user. I wish to page through the results returned by the query to improve performance. However, I am required to display a total count of the items returned by the query on the paging control. My questi...

Error updating Sharepoint List item, when called from web service.

I'm using ajax to call a webservice which updates a sharepoint list. It works when I call the code from unit tests, but running the code in a browser causes an exception: System.InvalidOperationException: Operation is not valid due to the current state of the object. at Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPCo...

Programmatically adding columns to Sharepoint List Views.

For a project I am working on, I am trying to do the following thing. There's a Sharepoint 2010 environment, with a few Custom Lists created in Visual Studio. I am adding some fields to them using background code in the FeatureActivated function in the EventReceiver. What I am doing there is adding a lookup field to the Sharepoint Lis...

Getting value from SPFieldBoolean

How do I get the value from a SPFieldBoolean object? Do I simply cast it to a boolean or do I need to do something further with it? I am fetching it in an EventReceiver class during an ItemAdded event from properties.ListItem["fieldname"]. If there is a chance the field might not exist (and be null), how do I check for that? ...

SharePoint concurrency issues (users accidentally checking out older versions of files)

This is a strange issue that I'm wondering if others have encountered when editing documents in a SharePoint document library. Basic problem is as follows: User1 edits document X User1 checks in document X (say this new version is version 12) Days later, User2 checks out document X, but the document they begin editing is actually vers...

How to get direct Reports from Active Directory

It was previously asked but I won't include it for me. Here is the code I'm using to include users from active directory to MS sharepoint: private static Collection GetDirectReportsInternal(string ldapBase, string userDN, out long elapsedTime) { Collection result = new Collection(); Stopwatch sw = new Stopwatch(); sw.Start(); str...

Set Custom Properties for a custom field type within a content type feature

Hi, I have created a custom field type (derived from SPFieldText) and added a custom property "MyProperty". Now what I am looking for is, I need to use this field type in my Content Type feature. How can I specity my custom property within a Content Type definition file, just like what we do with OOB field types? I've seen a workarou...

How do I create a SharePoint 2007 list from a template via web service?

I have a SharePoint 2007 custom list that I have saved as a list template. I am looking for a way to create a new list from the saved template via a web service call from an outside application. I have already looked into the the basic web services available for SharePoint 2007 http://msdn.microsoft.com/en-us/library/bb862916(office.12...

How can I authenticate SharePoint user credentials

I need to access a sharepoint application from my desktop application (written in C#). How should I pass credentials and verify authentication? ...

Adding a SharePoint feature with multiple class files

I am in the process of making a feature that consists of multiple items. Currently it contains a Feature.xml file with 4 ElementManifest entries; two for a specific contenttype (Field definitions and FieldRefs), one for some webparts and the last is for a custom pagelayout. All of that is working fine. I have altered the file with the ...

'Non-supported field type change' when modifying a feature

So, now that my previous problem was fixed, I was trying to organize the files a little bit. I found out a 'Note' type field (A multi-line textbox) was supposed to be a Multi-Pick User field. So, I decided to change that. I seemed to change everything, but it just doesn't want to change the type. Which is much a good thing to do, seeing...

remain on the same page when cancel button clicked in sharepoint login

hi all, in my sharepoint site, there is anonymous access. When the user clicks "Cancel" button in login dialog box, 401 unauthorized is coming. I want the page to remain on the welcome page of the sharepoint site with anonymous access, when he clicks cancel button. how to do this? ...

sharepoint hardware recommendation for public sites

Hi We have built 2 web sites on MOSS 2007 which have many customizations on pages and many ajax web parts. Currently one of the sites is live and the configuration is as follows Web server Xeon 4 core processor 12 GB RAM 50 GB harddisk SQL Server Xeon 4 core processor 16 GB RAM 150 GB disk space Servers are deployed as virtual ma...

Dynamic columns based on rows

What I am doing might be really stupid, if so, please correct me, but I am trying to do the following thing: I want to have a list with (for example) the following items: List Addresses -Name -Address -City -Country But, based on their Country, I want to display different columns that I want to record in a List. For instance: Count...

SharePoint 2010 Service Application Proxy & My Site Settings

I have a SharePoint 2010 Site Configured with Claims based FBA. I have also made My Site work with FBA. My question is: In 2007 I would create a seperate SSP for FBA based my site and Set all configuration there. As SharePoint 2010 supports Service Application Proxy how can I isolate FBA based My site and Other AD sites. While I was ...