Questions tagged [.net]

.net refers to the application framework installed on a Windows and SharePoint server.

Filter by
Sorted by
Tagged with
0 votes
1 answer
992 views

Retrieve file version metadata with CSOM

My organization is requiring that we rewrite all of our sandbox solutions as we shift to SP 2013 as provider-hosted apps using CSOM. One of the event receivers I wrote would previously use the ...
Dinerdo's user avatar
  • 749
0 votes
1 answer
2k views

CAML query ignoring OrderBy element

I can't seem to return a set of items in the order I want while using a CAML query. I want to grab the newest item in a specific folder, so I want to query the folder, order it by ID (though I'm ...
Dinerdo's user avatar
  • 749
2 votes
1 answer
497 views

Can't Open file binary in SharePoint.Client

This bit of code works for me: Microsoft.SharePoint.Client.File file = ctx.Web.GetFileByServerRelativeUrl(@"/Shared%20Documents/Email%20Body.html"); var _stream = file.OpenBinaryStream(); The ...
Dinerdo's user avatar
  • 749
4 votes
1 answer
3k views

Rename the uploaded document in document library using the client side object model

I already uploaded the document in SharePoint document library using CSOM. Now I need to Rename the uploaded file using CSOM, how to achieve this via CSOM? pls look the code below and do the need ...
sundhar41's user avatar
0 votes
1 answer
41 views

Opportunities of Sharepoint 2013 Foundation

Can I develop EventReceivers, TimerJobs, WebParts and different components in Sharepoint 2013 Foundation. If it can not, could you give me a link to approve this?
DmitriySidyakin's user avatar
2 votes
4 answers
4k views

Combine Two ListItemCollection objects

I have two ListItemCollection objects created after calling SharePoint GetItems with a Caml query - public Microsoft.SharePoint.Client.ListItemCollection GetItems(Microsoft.SharePoint.Client....
iniki's user avatar
  • 145
0 votes
2 answers
4k views

SharePoint 2010 Solutions using .NET 4.5

I am creating a solution (wsp file) that will be installed on a SharePoint 2010 Server. The solution uses a third party DLL which was built on .NET 4.5. I have created my solution using the target ...
SaulR's user avatar
  • 95
2 votes
3 answers
2k views

SharePoint DateTime conversion issue in ASP.NET

I am facing a strange issue in converting DateTime value received from SharePoint GetListItems method. Here is what the date string looks like - ows_DatePaid="2015-04-28T18:30:00Z". Now the problem ...
Nikhil Chavan's user avatar
0 votes
1 answer
189 views

SharePoint lists and libraries are accessible without any authentication

I am new to SharePoint development, I am building an internet facing website with anonymous permissions for the pages, my current situation is that my lists are accessible without any security upon ...
Abdelrhman Safwat's user avatar
0 votes
2 answers
5k views

Cannot return an item's Author and Editor properties in CSOM

I have a utility which makes updates without affecting the ModifiedBy/Editor field. Before any updates are made, I store the user value in one of two ways: CamlQuery camlQuery = new CamlQuery(); ...
Dinerdo's user avatar
  • 749
0 votes
1 answer
1k views

Why is SPHttpUtility.HtmlEncode preferred to HttpUtility.HtmlEncode?

The SharePoint Code Analysis Framework rule SPC020220: Do not call 'HttpUtility.HtmlEncode' states that: The assembly should not call HttpUtility.HtmlEncode(string) to encode strings [and that] ...
Arseni Mourzenko's user avatar
0 votes
1 answer
254 views

Restrict permissions/access to list items in code

Does anyone know a way to restrict access to list items in code, even if someone has full control on a list item, deny that in code. I know there is a way for updating using event receiver, but I'm ...
GeV 126's user avatar
  • 133
3 votes
1 answer
3k views

SharePoint 2013 SAML/ADFS 403 Forbidden on ClientContext.ExecuteQuery()

To give a little background on my setup, I'm running SharePoint 2013 Foundation configured with SAML authentication using ADFS. I'm able to access the SharePoint site using a web browser from both ...
Jim Jr.'s user avatar
  • 31
2 votes
0 answers
2k views

Update ID field with client object model

I'm trying to create items in a list and set the ID field programmatically (for use in a lookupfield in another list). This works serverside by setting the property ReadOnlyField of the field ID to ...
Mike246912's user avatar
3 votes
2 answers
16k views

Upload files to SharePoint Online using REST API

I'm trying to develop a console application which will upload files from the users client PC to a SharePoint Online site. I've written a version that used CSOM, but the file size is limited to 1.5Mb, ...
Lee's user avatar
  • 31
0 votes
1 answer
761 views

Sharepoint 2010 : Custom List Context menu (ECB) editing and customizing with custom actions

I want to Add a custom Action or link as "Email to" in the EditControlBlock or the Context menu for custom list that i have created as shown in the Picture below. This "Email to" button should send ...
Manish Oswal's user avatar
0 votes
1 answer
3k views

Microsoft.SharePoint.Security namespace missing

I am making a custom timer job in VS 2012 that targets .Net Framework 4.5. I am using namespace Microsoft.SharePoint and Microsoft.SharePoint.Security but problem is it is showing following error: ...
Frank Martin's user avatar
  • 3,658
0 votes
1 answer
1k views

This list is currently being managed by Project Web App, and cannot be edited directly

I got this error when trying to update the Tasks: {"error":{"code":"-2130575223, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"This list is currently being managed by ...
andrefadila's user avatar
0 votes
1 answer
714 views

vb.net client object model: get wikipagelibrarytitle/list by url

I am using the .net client object model for SharePoint 2010. I am able to create a new wiki page in my wikipagelibrary using the following method: Dim wikiLibrary = context.Web.Lists.GetByTitle(...
maartenvdv's user avatar
1 vote
1 answer
956 views

SP2010: Client object model: add new wikipage to document library

Is it possible to create a new wiki page using the client object model and give it some content ("<h1>Welcome to the SharePoint!</h1>")? I'm using VB.Net
maartenvdv's user avatar
1 vote
3 answers
2k views

Create navigation headings in SharePoint Online programatically

Is there a possibility to create headings with multiple links in the navigation bar (i.e. top link bar) in SharePoint online using c3 or PowerShell? My initial guess was to use ClientContext to gain ...
user3297993's user avatar
1 vote
2 answers
1k views

Missing DLL msoidclil in Azure Web Site

I have an application that accesses and updates SP document libraries. Using SP 2013 COM, it works fine locally. When the code is deployed to and executed in an Azure web site, a file not found ...
Pete's user avatar
  • 11
0 votes
1 answer
124 views

Data Table distinct value

dtnew1.DefaultView.Sort = "Modified DESC"; DataTable unique = dtnew1.DefaultView.ToTable(); In this code's "unique" table I'm getting all values but post title value is getting repeated. I need a ...
gowtham's user avatar
0 votes
1 answer
184 views

Unable to add .exe file to SharePoint 2010 using Client Object model after it has been removed from blocked files list

Language: C# Framework: .Net 4.5.1 Environment: SharePoint 2010 - Windows Server 2008 R2 My software is used to upload files to sharepoint. It works perfectly well for the majority of files. However, ...
Mark McGookin's user avatar
0 votes
1 answer
925 views

How do I deep copy a library item to another library?

We have an outside document app (PCM) that has a nightly sync to our SharePoint server. All contracts in PCM are synced into SP then we change the PCM document to a link to SP. Recently, we have a ...
Keith Barrows's user avatar
1 vote
0 answers
140 views

Remove document from in-place hold with CSOM?

Is there any way to remove a document from an in-place hold using SharePoint CSOM?
Joao.Correia's user avatar
0 votes
3 answers
126 views

SPException while geting a folder as an SPListItem

This sounds like something easy but I some how can't find an answer. I am trying to get an SPItem from a SharePoint list (the item is a folder) so that I can set certain permissions on the folder ...
user3297993's user avatar
2 votes
2 answers
124 views

Which is the best possible way to connect to SharePoint Sites using Client Object Model

I came across a complex situation (imo) which is why I am asking this question. I am developing an application where in, I connect to all SharePoint Sites specified by user and all its sub sites using ...
Mani's user avatar
  • 61
0 votes
1 answer
2k views

Sharepoint 2013: SPweb.Groups.GetByName(groupName) throwing exception

I am trying to create a new SharePoint group programmatically (using .Net), for this I am using the following C# code //greate group with no users: web.SiteGroups.Add(...
user3297993's user avatar
0 votes
2 answers
2k views

How can I compare the date of files with REST query?

I am using SharePoint OneDrive for Business and connected to this storage REST API. And I need to get metadata only files created or updated after some concrete time For example, I need all files, ...
user25605's user avatar
2 votes
0 answers
2k views

Token Request Failed: Remote Server returned error (400) while fetching the token

My Requirement is to retrieve a document from SharePoint online using a .NET console application. I followed the steps in this link . But I get a failure Token request failed. {"The remote ...
aniyah's user avatar
  • 21
0 votes
0 answers
810 views

Trying to use the Search API in .NET but I doesnt seem to work

What I am trying to do is to Get all sites from the search API. This REST API url works perfect: http://localhost/_api/search/query?querytext='path:http://localhost/teamsites/*+OR+path:http://...
Rohander's user avatar
  • 411
0 votes
1 answer
294 views

Business Connectivity Services vs. ADO.NET

Why should I prefer Business Connectivity Services (BCS) over plain ADO.NET, if all I want are simple CRUD operations on an external database (e.g. remote Oracle Database), which are made from a ...
Tom Bola's user avatar
  • 381
3 votes
1 answer
1k views

SharePoint running really slow

We have a production environment that hosts 3 SharePoint Web Applications. We have 2 WFEs and 1 DB server. These are dedicated servers which we are hosted by a hosting provider. For almost 2 years ...
user787427's user avatar
0 votes
1 answer
342 views

'Url' for SharePoint item in SocialDataService.GetTags(url)

I am calling the 'SocialDataService.GetTags' web service method to try and obtain the Tags for a specific SharePoint item in a list or for a SharePoint document in a Document library. For the ...
alwayslearning's user avatar
3 votes
2 answers
895 views

SharePoint 2013 Edit & Continue with .NET 4.5.1 and Visual Studio 2013

Looking for an answer to this question since I heard of .NET 4.5.1, I've nearly given up the hope. Looks like no one has written anything about this anywhere. So now that 4.5.1 and VS2013 were ...
Kirschi's user avatar
  • 512
0 votes
1 answer
55 views

OpenID Implementation , paid libraries? [closed]

Is there any paid library available for Openid implementation ,please list any paid libraries available ? Or does Microsoft support openid implementation ? ?
Nikhil J's user avatar
  • 4,934
2 votes
1 answer
3k views

Sharepoint 2013 .NET CSOM CamlQuery Join

I am unable to create a working query with join in my .net csom application. I was using this article: http://msdn.microsoft.com/en-us/library/ff798388.aspx here is my code: ClientContext context =...
user2791953's user avatar
-9 votes
1 answer
103 views

Who earns most, ITPro or Developers? [closed]

I am at the beginning of my SharePoint career and have two paths I can chose between: ITPRO or developer in SharePoint. ITpro sounds more interesting, personally. But I am wondering, who earns most ...
NoWhereToBeSeen's user avatar
0 votes
1 answer
41 views

What is the proper method for installation of a team site with custom solutions?

What is the proper method for installation of a team site that has parts and webparts configured using PowerShell as well as six custom C#.NET applications for select webparts? Should I make a ...
Bellatrix LeStrange's user avatar
0 votes
1 answer
801 views

How do programmatically store the sharepoint document library document to local machine?

i have one question. How do pro-grammatically store the sharepoint document library document(eg Image.png) to local machine(D:/Images)?? Anybody have a solution???
Sakthi's user avatar
  • 113
9 votes
2 answers
30k views

SharePoint client model and setting up lookup field

I have list A with "Title" column which is lookup column to List B. I need to update existing List B documents so that they will be linked to List A. However, SharePoint client context doesn't accept ...
Rishi's user avatar
  • 259
0 votes
1 answer
72 views

Load libaries given subsite name in clientapi

Hi I'm fairly new to the sharepoint client api, but I'm trying to get the libraries given a site name. My clientcontext in my class is at the root of my sharepoint e.g. https://mysharepoint.abc.com ...
vince anon's user avatar
0 votes
1 answer
42 views

sharePoint 2010 - Exchanger server 2010 - integration , BCS

I need to access account information programmatically from a MS Exchange 2010 server, then import them back into SharePoint 2010. Is this feasible, if so how can it be done? any help and resources ...
Samer's user avatar
  • 1
0 votes
1 answer
425 views

Sharepoint 2010 ASP .NET MVC 2

I'm trying to deploy an ASP .NET MVC 2 application in SHAREPOINT 2010 I found this online: http://sharepointmvc.codeplex.com/ But I can't make it work. I don't know if I'm doing it right... In the ...
user2425014's user avatar
2 votes
1 answer
185 views

connecting sharepoint to a polarlake ESB

How would one go about connecting sharepoint to an Enterprise Service Bus(ESB). The service bus being used is Polarlake. I'm presuming it requires a .NET web service to be created but essentially ...
topcat3's user avatar
  • 81
1 vote
1 answer
960 views

Quick way to change Custom New form web part into custom edit form

I just created a custom new form web part in C#. It works great and adds a new item to the list with the 'Save' button. Now, I am trying to reuse the same code to create the custom edit form. But I ...
Ayrton Senna's user avatar
0 votes
2 answers
64 views

Capture SharePoint role group and group members?

For our audit process I need to regularly capture all of our SharePoint role groups (for our main site collection) and the members in each group. Is there a reliable way to approach this problem?
Michael A's user avatar
  • 1,435
11 votes
3 answers
31k views

How to retrieve Users and Groups seperately from a "Person or Group" column via C# code?

I have a field in the discussion list, which allows the initiator of the discussion to specify the people to share the discussion with. This field is typed as 'Person or Group' that allows selection ...
Muhammedh's user avatar
  • 1,157
3 votes
1 answer
2k views

how to load a folder given just a ServerRelativeUrl using Microsoft.SharePoint.Client

In my application I have a url of a folder as retrieved by folder.ServerRelativeUrl() eg. /consulting/TeamSiteTemplate/Documents/ Now I want to get a list of folders inside this folder. I use this ...
Adam Butler's user avatar