Questions tagged [.net]

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

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

Can we use CSOM inside .NET 5.0

I have created a new .NET 5.0 core console application >> but i am not sure if currently CSOM is supported inside .NET 5.0 ?
0
votes
0answers
12 views

CSOM with netcore sending Notification Emails

Utilising the .net framework of the nugget package Microsoft.Sharepoint.Client we were able to send emails with the Utilities class. Is there any equivalent functionality in the .net standard nugget ...
0
votes
2answers
16 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 (...
0
votes
1answer
21 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). ...
0
votes
1answer
74 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/ ...
0
votes
1answer
26 views

How to make request to webapi in to Sharepoint Online(SPO) c#?

there is not solid documentation about how to make calls to sharepoint online web api, in MSN documentation it infers that you are developing an add-in for sharepoint, I'm just making a test in c#. I'...
0
votes
1answer
143 views

Access denied on creating List with Graph API

I'm trying to create a new List in specific Site with my own Sharepoint Application and I'm getting Access denied error when I send the request to API. My application have Sites.ReadWrite.All, this is ...
0
votes
0answers
168 views

How to get response header in c# Microsoft graph api request

I am trying to do File Copy operation in c# .net core using Microsoft graph API. It is an asynchronous operation, and by doc, it says it returns a location in the response header to check the status ...
0
votes
0answers
112 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 ...
0
votes
1answer
87 views

SharePoint 2013 server Setup error. Unable to proceed due to the following error(s): This product requires Microsoft .Net Framework 4.5 [duplicate]

I found that this problem occurs because the SharePoint Setup and Project Server Setup programs do not recognize the .NET Framework 4.6, 4.6.1, or 4.6.2 as a supported version of the .NET Framework.
0
votes
1answer
216 views

How to add the aspx.cs code to get the selected value of radio button as per the aspx page as shown in the screenshot below?

This is the code for retrieving the Question and options dynamically from SharePoint list. How to get the value of selected radio buttons and store it to a variable using the C# or SP code. Can anyone ...
0
votes
1answer
239 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 ...
0
votes
2answers
759 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 ...
2
votes
2answers
779 views

Should I use Microsoft Graph or CSOM when integrating .NET with O365?

I have an existing integration based on CSOM, which I need to move from one .NET solution to another. In the process, I was made aware that Microsoft now has a graph API. I've tried to research ...
2
votes
0answers
159 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 ...
0
votes
1answer
343 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 ...
0
votes
1answer
47 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 ...
1
vote
1answer
21 views

Reference SharePoint inside a .Net core2.1 project

I have a solution that is targeting .Net Core2.1 Framework. Now inside I want to be able to query sharepoint list items. But I see I can't add Microsoft.SharePoint.dll in the project. I tried changing ...
1
vote
1answer
34 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 = "joe@contoso.onmicrosoft.com"; ...
0
votes
1answer
1k views

Authentication to SharePoint using secure authentication and CSOM in a .NET application

I'm using CSOM for making REST API calls to a SharePoint list from a C# application. This needs credentials (of course), however I've found that it needs a username and a password in plain text. ...
1
vote
1answer
150 views

PnPjs alternatives for .NET

For developing with the SharePoint REST APIs using JavaScript I always use PnPjs because it's an easy way of getting data from SP. PnPjs is a collection of fluent libraries for consuming SharePoint, ...
1
vote
0answers
55 views

Is it critical for a SharePoint Developer to understand JavaScript, HTML, CSS, .NET/C# & SharePoint Front End Fundamentals in order to be proficient? [closed]

I’m asking this because I’ve started a new job as a Jr. Software Developer. Currently the role has a heavy emphasis on SharePoint development, as the company hasn’t ever had a developer assist with ...
0
votes
1answer
226 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(); ...
0
votes
1answer
117 views

How to allow access to list item file attachments that was not created by the user with special constraints

I am struggling for some time with this problem and can't decide how to handle it. We have a sharepoint list with 3 groups of users: SOHO Account Managers SMB Account Managers ENT Account Managers ...
3
votes
1answer
70 views

Do we need to maintain same .net version in all SharePoint servers?

We have SharePoint 2013 on premises farm with two web severs and three app servers on windows server 2008 R2. We required to install .NET Framework 4.6.2 on only web servers to be compatible with ...
1
vote
2answers
1k views

Upload Multiple Documents to SharePoint Online using C#

I've been trying for a while to make this work, but I'm stuck. I've checked all the solutions around here and google, but can't seem to figure out why I keep getting an error. string targetFolder = "/...
1
vote
1answer
207 views

CSOM - Trying to access “Client_Title” from a page in a list - “The property/Field has not been initialized … ”

I'm trying to access the "Client_Title/Page Title" from a page in Site Pages using Client Context and "listItemId". It seems that I'm not requesting or loading it the correct way. When debugging I ...
0
votes
1answer
19 views

how to simple connect to my sharePoint and get all the documents ?

i need to write a C# code that can connect to my sharePoint and get all the documents and also upload some new document. I can't find any simple example code that can do it any help please .. ...
0
votes
1answer
59 views

Updating SharePoint Online list item's modified timestamp using ADAL

I've run into a strange issue where I cannot update a SharePoint Online list item's modified timestamp when I authenticate using ADAL. The update will occur (I see a new version added to the file), ...
1
vote
2answers
2k views

How to get cookies after obtaining Azure AD access token to SharePoint Online

I have been able to successfully use the ADAL library to obtain an access token to SharePoint Online and execute CSOM queries. When I try to access a SharePoint Online URL directly using a WebRequest, ...
1
vote
2answers
2k views

SharePoint 2013 Security Token error ( The Security Token Service is not available.)

I'm needing help with debugging error with Security Token Service on Sharepoint 2013 The SharePoint Health Analyzer The Security Token Service is not available. Event Error Output An exception ...
1
vote
1answer
34 views

SharePoint Client Object Model - Javascript or .Net?

We currently have a SharePoint 2010 environment and planning to migrate to SP 2016(Q2 2019). For SP 2010 we have developed a component to developers that want to consume SharePoint infrastructure. ...
1
vote
1answer
43 views

.Net App Pools in IIS and SharePoint 2016

Do the .NET app pools need to be running for SharePoint to function as long as all the sites run on their own separate app pools?
2
votes
0answers
80 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 ...
3
votes
2answers
90 views

Upload file from One drive into SharePoint Online Site

Need to upload files from one drive to SharePoint Online Site without copying them into Desktop. How is this possible ?
0
votes
1answer
3k views

Get all metadata fields from a document library in SharePoint Online

I've been struggling with a CAML query that will allow me to retrieve all items from a SharePoint Online document library and getting all the metadata as well. I managed to get some, but not all ...
1
vote
1answer
3k views

Query SharePoint List From C#

I am new to SharePoint and am wanting to query a SharePoint site and return data to a C# windows form. This is my scenario I have a text box where a user can input a ICDN number, then press a button. ...
0
votes
2answers
2k views

Issue getting context using AuthenticationManager

I am trying to get the context of my site using OfficeDevPnP.Core AuthenticationManager with the ClientID and ClientSecret var ClientId = "<>"; var ClientSecret = "<>"; ...
0
votes
1answer
177 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 ...
0
votes
3answers
127 views

Is there any property available in CSOM which would indicate that a list is using a custom new/edit/display form?

I'm wondering if there's a simple way to check to see if a list is using a non-default custom form via CSOM? I'm thinking of looking for any forms that weren't created at the time of the list's ...
1
vote
2answers
62 views

How can a specific user be allowed to upload a file to a library, but not read that file?

A specific account will upload files from many different machines all over the internet to one folder in a SharePoint library. Content of the files is sensitive in nature, so if a malicious attacker ...
0
votes
1answer
460 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 ...
0
votes
2answers
968 views

Advantages for develop SharePoint in server side

I have a question about server-side development in SharePoint VS client side I would like to know whats the difference and advantages between develop an application using the server side vs ...
0
votes
0answers
42 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 ...
2
votes
2answers
2k views

Looking for simple .net example to read a list

I am trying to find a simple example in c# or vb that shows how to connect and then pull in a list and display it in a gridview in asp.net. We are using SharePoint 2013 with Windows Authentication ...
1
vote
1answer
218 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. ...
1
vote
0answers
29 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, ...
1
vote
1answer
405 views

CSOM storing custom hidden field for document

I want to store a custom, hidden field/property on a document. This property should be hidden from the user in the UI, and I don't want to create a content type for this. Using var document = client....
1
vote
0answers
32 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 ...
1
vote
0answers
375 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 ...