Questions tagged [.net]

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

52 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
293 views

How to convert List item to pdf

I would like to convert list items to pdf and I was searching on internet and itextsharp came up. I read somewhere that this open source has some problems in formatting all html tags. Does anyone ...
Burre Ifort's user avatar
  • 1,318
3 votes
1 answer
617 views

Internal User Versus External User Versus anonymous user in SharePoint 2013

I have read the new police for SharePoint licensing price, and it mentioned that no extra license price will be needed for any external web sites. But I have the following questions to know exactly ...
John Peter's user avatar
2 votes
0 answers
249 views

SaveBinaryDirect returns "Unable to connect to the remote server" when code is deployed to our production server

I am trying to use SaveBinaryDirect to upload a file to a Sharepoint Online library. Everything works perfectly on two different workstations I tried on (Windows 10), but once deployed to our UAT ...
jaguarlover's user avatar
2 votes
0 answers
142 views

Get human-readable PermissionKinds for a particular RoleDefinition using CSOM

At a site collection level, I can look at the permission levels for the collection at /sites/siteCollectionname/_layouts/15/role.aspx, and then I can navigate to a particular permission level and see ...
sasfrog's user avatar
  • 314
2 votes
0 answers
46 views

Custom WSP does not work after migrating SharePoint 2010 SP1 on Server 2008 to SP2 Server 2012 R2 / .net 3.5 and 4.0

We have recently migrated SharePoint 2010 SP1 from Server 2008 to SharePoint 2010 SP2 on Server 2012 R2. The SharePoint web application runs well but some of the wsp we deployed does not work which ...
Viral's user avatar
  • 131
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
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
1 vote
0 answers
322 views

PnP Framework Interactive MultiFactorAuth

I keep going round and round on this as it seems I keep getting out of date examples. I need to create a simple Sharepoint Admin Application and I keep failing at Authentication. I need a way to ...
John Klein's user avatar
1 vote
0 answers
182 views

How to use Web.EnsureUserByObjectId method in SharePoint Online CSOM

I wasn't able to find anything about this method. Does anybody know how it works? public User EnsureUserByObjectId(Guid objectId, Guid tenantId, PrincipalType principalType); As I can understand from ...
Aleksei Gus's user avatar
1 vote
1 answer
51 views

How to migrate clssic pages in non site pages library to modern UI in SharePoint Onine

string siteUrl = "https://contoso.sharepoint.com/sites/mytestsite"; string targetSiteUrl = "https://contoso.sharepoint.com/sites/mytargetsite"; string userName = "[email protected]"; ...
kesava's user avatar
  • 2,166
1 vote
1 answer
317 views

Framework 4.6.2 SharePoint Getting Error Message for Exception System.Web.HttpCompileException (0x80004005)

We can not access certain pages in _Layouts after installing Framework 4.6.2 Any tips or suggestions? Sharepoint uls log: Authentication Authorization agb9s Medium Non-OAuth request. ...
Adam CH's user avatar
  • 11
1 vote
0 answers
35 views

Opening a page from Email link does not populate the form with data, in that page

On performing some action(approve/reject a request) an email is generated with a link in it. On clicking the link, a SharePoint QA page opens that contains a form. All that works well! My issue is, ...
Sanjana V's user avatar
  • 301
1 vote
0 answers
33 views

Programmatically add a count value to the SharePoint view

I would like to add a Count = number at the top of list items in a view programmatically. I know how to do it from SharePoint, but what I want to realize is how to add this programmatically. Because ...
CF7's user avatar
  • 11
1 vote
0 answers
472 views

MS Project Server 2013 Adding actual hours on timesheet using REST

I have a function here that will add actual work hours in MS project server 2013 using REST. However, I keep getting a bad request. I do not know what parameters I have to include or to tweak to get ...
klrian seiei's user avatar
1 vote
0 answers
332 views

Bind Asp hyperlink navigate url dynamically

I have to bind the navigate url property based on a specific condition . The hyperlink control is based inside the repeater . I have created a hyperlink property.code is below HyperLink Hypltitle = ...
user21159's user avatar
1 vote
0 answers
193 views

Read Sharepoint list into object

I need to compare an xml document with the records in a SharePoint list in a vb.Net client side application. Using Visual Studio 2015. My plan was to read all list items in an object. I am fine until ...
vilmarci's user avatar
  • 906
1 vote
1 answer
408 views

How to update all links in SharePoint 2010

I have a hyperlink: http:\some-domain.ca.com and I need to update it to http:\new-domain.pa.com How do I globally update every single occurrence on the entire Sharepoint site? I will accept answers ...
Kellen Stuart's user avatar
1 vote
0 answers
172 views

Sharepoint CSOM Mapper

Hi I'm new to SharePoint and developing with it, but having done a few tutorials I'm trying to get myself off on the right foot and put together a solution. Firstly the solution has already been made ...
Richard   Housham's user avatar
1 vote
0 answers
571 views

System.IO.FileNotFoundException: Could not load file or assembly 'company.Something.AssemblyName

I have a class library A which has a dll reference B (class library). And they are using same .NET framework 3.5 When I call project B's method something() from project A, It is throwing an exception:...
raju's user avatar
  • 153
1 vote
1 answer
841 views

Create Folder and Upload File to Document Library

I am new to this site so please feel free to redirect me to other posts that may answer my two part question. I am working on a .NET web form that needs to upload files from a asp:FileUpload ...
Chris Harrington'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
0 answers
12 views

What settings are needed in Azure AD / Microsoft Entra ID for client id + certificate based SharePoint authentication?

I've been going round in circles the last 3 days since MFA got enabled and the console application that used username/password to authenticate and add/deleted files/folders to various SharePoint sites ...
squatman's user avatar
0 votes
0 answers
9 views

how to use CSOM in UWP in Visual Studio to grab a list or site's full user permissions

I've tried searching for tutorials or guides but could anyone point me in the direction of using a .NET application that grabs a sharepoint online site/lists users and their permission levels? Thank ...
d delep's user avatar
0 votes
0 answers
26 views

Developing web application using Power Apps, Power Automate with SharePoint compared to using .NET and SQL server

I have been working on building web applications using those 2 approaches: - ASP.NET Core and SQL Server Power Apps, Power automate & SharePoint online. Now when it comes to secure the backend ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
2k views

How to filter query with multiple condition in URL - OData

I want to filter the data with Type 'Com and State 'Disconnected'. With below code i am getting the exception. How do I fix this? Please help! $filter=(contains(Type,'Com') and contains(State,'...
Jay's user avatar
  • 1
0 votes
1 answer
140 views

Can I use a Claim variable and pass it into CSOM or PnP calls?

In my asp.net Core webapp, I'm putting the following into Startup.cs: public void ConfigureServices(IServiceCollection services) { services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)...
Bartels's user avatar
0 votes
1 answer
1k views

Adding Microsoft.SharePoint.Client reference to project in Visual Studio Code

I'm just starting out with a new Console Application project in VS Code and I need to add a reference to my project for Microsoft.SharePoint.Client using: dotnet add package Microsoft.SharePoint....
neptr's user avatar
  • 113
0 votes
1 answer
16 views

How do I build an external .NET search engine that utilizes SharePoint Search with advanced/dynamic filtering?

On my website I want to build a .NET Core application which invokes the SharePoint Online search engine (using REST Service) while also meeting specific filtering conditions regarding the managed ...
Jay's user avatar
  • 1
0 votes
1 answer
216 views

SharePoint .Net CSOM Equivalent for Add-PnPFile

We have a requirement to use CSOM based .Net Managed Code to perform the upload file and set the metadata properties. However, we cannot upload and set the metadata properties simultaneously using ...
suryakiran's user avatar
0 votes
2 answers
44 views

Operations on a ContentTypeCollection object throwing an unexpected exception

I am developing a Console application to programmatically download documents from a SP site among other things. I am trying to retrieve the fields of a content type of a SP list using CSOM : using (...
Bellatrix's user avatar
0 votes
1 answer
199 views

Assigning or creating customized permissions for user/groups of Sharepoint via REST API using c# asp.net core

I am trying to assign customized permissions to users/groups of SharePoint via the REST API. But from Microsft Graph we have only API to assign folder level permissions (read, write, full control). ...
shrutika ingale's user avatar
0 votes
1 answer
1k views

How to download all of the files under a specific folder using CSOM from SharePoint Online?

I have a folder structure similar to this on our SharePoint Online site: Documents/ Drawings/ For Review/ Released/ Archived/ Documentation/ For Review/ ...
CMPalmer's user avatar
  • 153
0 votes
0 answers
327 views

I am to login on web-page on share-point site but when i try to access from C# getting wrong username or email Id error

Below is my C# code which I am using for connect SharePoint site. When I try to access same SharePoint site from web page it's working fine and I able to access it But when I try to with below code I ...
KARAN's user avatar
  • 101
0 votes
1 answer
326 views

Microsoft.NET.Sdk.Functions and SharePointPnPCoreOnline not compatible

I'm developing a simple Azure Function project that uses the NuGet package Microsoft.NET.Sdk.Functions (version 1.0.29) to trigger on incoming Azure Storage Queue message, and uses ...
kenneho's user avatar
  • 163
0 votes
2 answers
2k views

Save email from Outlook Online to SharePoint library through an AddIn

I have a requirement to a selected email(s) to Outlook through an Add-In. I need it to work with the Outlook client app as well as Outlook Online. I put together a simple VSTO plugin in the Outlook ...
Eric's user avatar
  • 103
0 votes
1 answer
697 views

403: Forbidden when trying to update item properties with SharePoint API

In my .NET Core API I'm trying to update a document library item property with the SharePoint API. I already succeeded to get the document library item by id and by filter. When I try to update an ...
NiAu's user avatar
  • 101
0 votes
1 answer
83 views

Installing .Net Framework 4.6 on 1 server in a SharePoint 2013 farm

There is a SharePoint 2013 farm with 2 application servers and 3 web servers. For an assessment i need to install tooling that requires .Net Framework 4.6 (or higher). Currently .Net Framework 4.5.2 ...
TempaC's user avatar
  • 1,657
0 votes
1 answer
385 views

Credential-connect to project server 2016

I get an error in thecontext.ExecuteQuery();line while trying to connect to the server. Console.WriteLine("Please enter your username for PWA"); userName = Console.ReadLine(); ...
T.Steph's user avatar
0 votes
1 answer
221 views

Extracting list data to CSV using CSOM - encoding issues

I have a very basic CSOM-based app that fetches data from SharePoint lists and writes them to CSV. The problem is that when users open the resulting file in Excel, instead of certain characters like ...
sasfrog's user avatar
  • 314
0 votes
1 answer
971 views

System.Net.WebException: The request failed with HTTP status 401: Unauthorized

I used below code to access sharepoint defualt webservices, in console application and it is working fine, but when i used dll from same console application into .net webapplication it thrown an error ...
Bhushan's user avatar
0 votes
0 answers
60 views

Make copy of online Power BI report which is Embedded in .net

I have One online Power BI Report , And our team embedded the report in .net via html5 and knockout ,angular js. My client wants a button through which on clicking it a Copy of that report get's ...
MSA's user avatar
  • 1,155
0 votes
0 answers
395 views

How can I Programmatically log in as a user without a password

We have a requirement that an administrator can "impersonate" any user to view the site in order to help guide that user over the phone on how to use the site. We will need a textbox for example ...
Emad Gabriel's user avatar
  • 1,304
0 votes
1 answer
993 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
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
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
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
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
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