Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [.net]

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

1
vote
1answer
35 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
15 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
34 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), ...
0
votes
2answers
223 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
136 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 ...
0
votes
0answers
19 views

How to convert Microsoft.SharePoint.Client.File file to ProjectFile in SharePoint event receiver?

I am trying to read MPP file from SharePoint Document library in sharepoint online however i am not able to convert microsoft.sharepoint.file to projectfile used in project reader. I am using net.sf....
1
vote
1answer
22 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
16 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?
1
vote
0answers
21 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
59 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
205 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 ...
0
votes
0answers
24 views

Getting an error while issuing a GET request to my controller serving up a Sharepoint List

I am scratching my head out with this one. I have used the CSOM to retrieve data before, and it works fine with a console application. But on a .NET Core app, I added the references again, and am ...
1
vote
1answer
463 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
1answer
188 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
45 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
62 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
41 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
0answers
31 views

How to to change password on the sharepoint site itself?

I'm trying to figure a way to code a .net application program, or maybe add a third party feature, or code my own feature for my sharepoint site, so that I can change the password for my sharepoint ...
0
votes
1answer
212 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
1answer
282 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
29 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
594 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
96 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
155 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
24 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
158 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 ...
1
vote
2answers
554 views

SharePoint 2013 with .net framework 4.6.1

I am facing a requirement to install an external program on SharePoint environment. the program requires .net framework 4.6.1. Is there a problem in installing .net framework 4.6.1 on SharePoint ...
1
vote
2answers
45 views

SharePoint Website Dev

I have been commissioned for a project to build a website using SharePoint. I am a Front-end, WP developer and designer by trade, have access to companies Office365 SharePoint online, but have little ...
1
vote
0answers
114 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 = ...
-1
votes
1answer
5k views

How to call code behind function from a html button click?

I am fighting with MVC in Provider hosted app and trying to implement code behind function for html input button. Below is the input button in .aspx page: <input type="button" runat="server" id="...
1
vote
1answer
255 views

How to dynamically get all images from shared folder using CSOM?

I am bit stuck with the problem, i have created a document library in sharepoint directory path containing images. I am trying to get all the images from this folder with their name and URL. But ...
0
votes
2answers
936 views

How to troubleshoot the web.config runtime error in sharepoint 2010 environment?

There are telerik control assembly entries in the config file. How can I know root cause of this error? Server Error in '/' Application. Runtime Error Description: An application error occurred on ...
1
vote
1answer
319 views

Using CSOM, can I fetch RoleDefinitionBindings for all items in a list in a single query?

I know I'm able to get RoleAssignments in my call to get a ListItemCollection, e.g. context.Load(items, x => x.Include(y => y.RoleAssignments)); Is there a way to also load each ...
1
vote
1answer
1k views

First time connecting to SharePoint Server 2013 from Console

This code is supposed to be the simplest code for connecting. Like a "Hello World" program: static void Main(string[] args) { var targetSite = new Uri("http://w2k12spps02/sitios/...
4
votes
3answers
189 views

Cannot Query Document Library with > 5K folders

I have some SP .NET Object library code that will allow me to query for the contents of a specific folder in a document library. It worked fine in a UAT environment where there were only a few dozen ...
2
votes
1answer
50 views

How to design my site page in sharepoint, only want to use .net

I know asp .net but new at sharepoint.But i still setup sharepoint farm solution at azure it is working now i want to developer a site i am strting it with emptySP Project at .Net. step1: i take one ...
1
vote
0answers
99 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 ...
1
vote
1answer
185 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 ...
0
votes
1answer
515 views

SharePoint installation error with .Net framework 4.5.5

I am in the middle of my SharePoint 2013 installation, after installing all the pre requisites I am getting an error with .Net framework stating that the installation requires .Net framework 4.5 and ...
1
vote
1answer
991 views

Search ListItemCollection for ListItem with specific field value C#

this relates to SharePoint Online and a Console Application in C# I have an app which collects a list of all Employees from a SQL table, I then want to check each employee number for a matching ...
1
vote
0answers
73 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 ...
2
votes
0answers
41 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 ...
1
vote
2answers
588 views

Use .NET CSOM to copy site lists with lookup columns

I'm using .NET CSOM to copy multiple list content from one site to another - essentially I'm migrating it. Because of the different list schemas I can't use built-in facilities like PowerShell Import/...
0
votes
1answer
122 views

Flatten a managed metadata hierarchy for an MVC dropdown list using CSOM

I currently have a structure that has the following structure Offices --> which is a Term Region 1 Area 1 Town 1 Town 2 Area 2 Town 1 Region 2 ...
2
votes
1answer
311 views

Sharepoint Field or property “EffectiveInformationRightsManagementSettings” does not exist when trying to get a file

Using the .NET csom I am trying to retrieve the File that I just uploaded to sharepoint in order to check it in. Here is the code I am using to upload the file to sharepoint using (var stream = new ...
-1
votes
1answer
288 views

Server Object Code to CSOM C#

I am new to office 365 Developement. I want to write below code in CSOM in office 365 for a remote event receicer. But dont know exact methods. SPUser loggedInUser; SPSite spsite = null; SPWeb spweb =...
1
vote
0answers
901 views

C# HttpContext.Current.Response.AddHeader () NOT WORKING [closed]

I have a problem with downloading pdf files. This is my code in c# : string file = HttpContext.Current.Server.MapPath("/FOLDER1/FOLDER2/test.pdf"); HttpContext.Current.Response.AddHeader(...
1
vote
0answers
339 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:...
0
votes
0answers
309 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 ...