The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

1
vote
1answer
27 views

Site collection not created programmatically only in LIVE Server

I am using SharePoint 2007 and was not able to create site collection and add sites pro grammatically using c# code. Some times it creates the site collection and some times it doesn't. works fine ...
0
votes
1answer
80 views

TopNavigation Bar is shown Null for Report Centre site in Sharepoint 2007

I have create a Publishing site collection in Sharepoint 2007 and when i try to get the TopNavigation Bar for 'Report Centre' site I get it null. Why ? However for Document Centre,News etc it is not ...
1
vote
1answer
44 views

Cross-Site Search in Sharepoint 2013 Foundation

My question is simple. How can I configure Sharepoint 2013 Foundation to have cross-site searches. For example: I have 4 sites in all. Marketing, Advertising, Human Resources and Office. If I am in ...
0
votes
1answer
106 views

Code Download file from Doc icon image in sharepoint 2010

I have written code where it will show the Sharepoint document library in sp grid view. In the grid view it will show the doc icon Image correctly. Now i want to Download the uploade document from ...
1
vote
0answers
32 views

Few Projectproperty and Listproperty fields returning empty values (CrossListQueryInfo)

I am running a CrossListQueryInfo and the ViewFields for the CAML includes <ProjectProperty Name="Title"/> <ProjectProperty Name="Url"/> <ListProperty Name="Title"/> ...
2
votes
3answers
107 views

Sharepoint 2013 Site Content > New Webpart Page

Please take a look at this link: http://msdn.microsoft.com/en-us/library/dd583147(v=office.11).aspx In that link it explains how to add custom templates into SharePoint for when you create a new ...
1
vote
2answers
162 views

Check if site exists from client side

I am currently running the following code to check if there is a site with a title equal to my string myname. This code is however very time consuming because I have a large number of sites. Is ...
2
votes
2answers
25 views

Controlling which feature a project element is added to

How does visual studio decide which feature to add an element to? My features have a specific order which they need to be enabled (and its set using Feature Dependencies) but I need a simpler method ...
3
votes
2answers
63 views

Getting spuser from multiple types of information

If this sounds confusing it's because I'm al little confused on it myself. Basically I have an application (originally written by someone else but never finished) that needs to perform various actions ...
2
votes
2answers
214 views

Use SharePoint web service to return a People/Group column value

When I call a SharePoint web service in a .Net ASPX website, the people column returns null (Instance of the object not found). using System; using System.Collections.Generic; using System.Linq; ...
0
votes
1answer
21 views

I want fill dynamically the lookupFields with method Insert in class + C#

my code is public static void AddNew(string title,string AddedDate, string Discription, string AddedByLoginName) { using (SPSite sps1 = new SPSite(SPContext.Current.Web.Url)) { ...
3
votes
3answers
4k views

WCF service in SP2010

I want to use WCF service in SharePoint 2010 but have problem. First, in mapped Sp2010 folder(ISAPI) I created newfolder/myfile.svc and in that file I put a reference to my DLL: <%@ServiceHost ...
0
votes
1answer
71 views

adding fields in SharePoint 2013 C#

what is the different in adding a field and creating a field ? SPFieldChoice category = (SPFieldChoice)list.Fields.CreateNewField(SPFieldType.Choice.ToString(), Constants.category); or SPFieldText ...
0
votes
0answers
103 views

Get IP Address of client

I was wondering if it was possible to get the IP address of the client machine accessing a 2013 website. Is it possible to do this with an ajax call by utilizing one of the sharepoint RESTFUL ...
1
vote
1answer
534 views

How to specify a masterpage on a sharepoint web part page

I have this code courtesy of Alex Angas in Programmatically instantiate a web part page in Sharepoint. I already posted this question on stackoverflow but didn't get any answer so I decided to ...
0
votes
0answers
54 views

Sharepoint 2010 application(code) migated to Sharepoint 2013 giving error like Exception message: virtualPath

Sharepoint 2010 application(code) migated to Sharepoint 2013.When browsing the site giving error message as below: Exception information: Exception type: ArgumentException Exception message: ...
1
vote
1answer
61 views

How to get content from Content Editor WebPart (CEWP) to a custom WebPart on the same Page?

I have two webparts on a single page: Content Editor WebPart My Custom WebPart I need to send content from 1 in HTML format to 2. Is there a way to achieve this? I was thinking of, maybe, adding ...
3
votes
1answer
548 views

Display Parent Navigation Items via API

I'm creating a custom team site from a site definition and I can't seem to set the site to display the same navigation items as the parent site for the Global Navigation. I've tried using this code: ...
1
vote
1answer
47 views

Remote SharePoint 2010 Test Server running on VM

Currently I'm looking for a way to improve our test environment. I found it very useful to have a remote SP test server. So I created VirtualBox VM images for a domain controller and for a SharePoint ...
1
vote
2answers
89 views

Error in my CAML Query? COMException (0x80004005)

I was wondering if anyone could verify or see an error in this CAML query: SPQuery query = new SPQuery(); query.Query = string.Format( ...
2
votes
1answer
166 views

Word-Wraping for the calendar

The first image named calendarSample1 is a screenshot of the sharepoint calendar in IE10. The second image named calendarSample2 is from Google Chrome. I am trying to make the text within the ...
1
vote
1answer
38 views

Add a folder to a document library and break permission inheritence

I have a web part that is being used to manually add folders to document libraries (Part of the requirements is that only administrators can add folders, contributors must only be able to add ...
0
votes
0answers
32 views

How to create list from excel sheet located inside document library?

I need to create and calender control/list in share point from an excel file, there are many tutorials available for this on net, but unfortunately this excel file needs to be updated timely and hence ...
3
votes
2answers
742 views

How to download the historical file version content using CSOM

I am trying to download the previous version of a document from _vti_history location of the file using client object model but the OpenBinaryDirect is giving not found 402 error for URL. My ...
1
vote
1answer
74 views

Check user read access to a particular list item

I need to check if a user has read level access to a particular list Item. What would be the best approach 1) listItem.DoesUserHavePermissions(currentUser, SPBasePermissions.ViewListItems); //here ...
1
vote
2answers
311 views

SharePoint 2013: How to get workflow status?

I need to be able to get the status of a SP 2013 workflow using C#. I've tried getting the WorkflowManager for the SPSite and calling the GetItemWorkflows, but I never get any results from that. The ...
3
votes
1answer
41 views

How to use Application Pages for a content type's form

I want to use a custom application page for my workflow task view/edit form, I searched the internet and find it is possible to set url for content type's edit/view form, my code to update task's form ...
10
votes
1answer
416 views

The remote event receiver callout failed

I've created an AppEventReceiver for my High Trust Remote app, when I deploy the app through Visual Studio 2012 I get the following error The remote event receiver callout failed The HTTP request is ...
0
votes
2answers
664 views

how to made new post for sharepoint newsfeed webpart through custom webpart

i have a requirement to made new post through custom web part and this must be shown on sharepoint 2013 news feed web part i am new with share point after the lot of googleing find a list of news ...
1
vote
2answers
33 views

How to undo code option, “edit Form code”

I was playing around with InfoPath and then i click on "Edit Form Code...". Now I am unable to publish the forms without getting "An administrator must approve this form temaplte before it can be ...
7
votes
5answers
928 views

Is it possible to package, deploy, and use my own image for a ribbon CustomAction in a SharePoint-hosted App for SharePoint 2013

I've been working on a SharePoint-hosted app for SharePoint 2013. In order to "extend the reach" of the app a bit, I've included a CustomAction that will add a button to each document library's ribbon ...
1
vote
4answers
436 views

Collection was modified; enumeration operation may not execute.

I have made it work to delete attachment but can not delete listitem Error: Collection was modified; enumeration operation may not execute. private void DeleteFromSharePointList(HyperLink hp) { ...
1
vote
2answers
60 views

Pass Values to Event Receiver

I have an event reciver which sends an email when a listitem is being deleted. When the user clicks on the item, a popup prompt is displayed on the page and the user is requested to give a reason for ...
1
vote
1answer
2k views

ClientContext security won't work with claims-based SP2010 security enabled

I want to connect to SP2010 server with claims based authorization via client context. But I have security issue. First I didn't managed to connect with default credentials. Then I wrote: ...
0
votes
0answers
60 views

Consuming SharePoint Web Services OR Client Object Model through UAG

I am using Visual Studio 2010 to write a Windows Forms application to consume either Web Services (via old SOAP web reference 2.0) or via the Client Object Model, by using the methodology (and code ...
1
vote
2answers
481 views

How can I export external content type as a BDCM file with powershell?

I can export external content type from SharePoint Designer or Central Administration. However, I want to export ect as bdcm file with powershell in order to export ect automatically. There is an ...
4
votes
2answers
232 views

Using Distributed Cache programmatically. “Cache referred to does not exist” error

I'm trying to take advantage of Distributed Cache in SharePoint 2013 programmatically from a console application. I want to store custom objecst inside App Fabric Cache. Here is the code that throws ...
3
votes
4answers
13k views

How to get current user with javascript?

I have a list . I want select items of list with a special quary.(get items that created with current user). Then get count of items. I use this code for get current user : function Initialize() { ...
3
votes
1answer
136 views

Check- in & check-out files using client object model

As the title says, how can I Check- in & check-out files using client object model?
0
votes
0answers
25 views

set properties for ShimFileCreationInformation object

I am writing some unit test cases using fakes framework. I am using an object ShimFileCreationInformation from Microsoft.SharePoint.Client.Fakes namespace. Now, I pass this object to a function. ...
3
votes
2answers
119 views

Sharepoint unit testing using fakes framework

I have an application which uploads a file to SharePoint via client object model. Now I need to write unit test cases for this application. The problem is, I how do I write test cases for the ...
3
votes
3answers
96 views

what is a feature?

I am starting to read up on SP development but none of the books I have checked have been able to answer this seemingly simple question. I am pretty new to the dev side of things and feel like I ...
1
vote
0answers
139 views

SP DataTimeControl validation issue (error message does not disappear after choosing correct date)

I write simple WebPart with few asp.net controls. I have problem with validation control and SharePoint date time control. The markup: <SharePoint:DateTimeControl ID="dtc" runat="server" ...
4
votes
2answers
596 views

Get Approvers Group - C#

I'm working on a workflow project, where I have to get all the users in the Approvers group. In order to get the approvals group, I run the following code: SPGroup approvals = ...
1
vote
1answer
272 views

SPFieldUserValue User is null

I have a list in which I can also view the version of each item. Suppose I have an item ItemX which has been modified by UserX, I then delete UserX and try to view the version item of ItemX which had ...
0
votes
1answer
42 views

What would be the best approach for assigning permission for the document in library?

I working on a requirement in which there are contributor list for each document in sharepoint library. The contributor may be unique set of users for each document. I wanted to know what would be the ...
0
votes
1answer
72 views

ApplyChanges not working from Toolpart

I've tried every solution, and searched every part of the internet, and yet, I do not seem to understand why my properties aren't saved. I've attacked the code. And maybe someone can help me out here: ...
1
vote
1answer
47 views

duplicate field with guid was found Managed Metadata Fields

I've two Content Types, both are inherited from "Item" and both Contain the Same Field called "Analysis". This is a Managed Metadata Field. When I want to add both Content Types to the same list with ...
0
votes
1answer
61 views

Send email with sharepoint

I'm trying to send an email using c# sharepoint library. Though I'm getting an error that reads... Error in test: Object reference not set to an instance of an object. The code I'm executing is ...
30
votes
6answers
15k views

How to update custom master page and page layout, which is already deployed

I have a feature which deploying custom page layout. It's done by this code: <Module Name="MasterPageModule" Url ="_catalogs/masterpage"> <File Path="MasterPageModule\defaultTemplate.aspx" ...