Questions tagged [.net]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
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 = "<>"; ...
Swayam Siddha'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
3 answers
193 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 ...
Dinerdo's user avatar
  • 749
1 vote
2 answers
75 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 ...
Justin Haynes's user avatar
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
2 answers
1k 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 ...
JL Tinoco'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
2 votes
2 answers
4k 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 ...
Steve's user avatar
  • 21
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
1 answer
618 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....
Umair's user avatar
  • 163
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
2 answers
1k 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 ...
Habib's user avatar
  • 187
1 vote
2 answers
53 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 ...
WeebleWobb'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 votes
1 answer
12k 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="...
MSA's user avatar
  • 1,155
1 vote
1 answer
752 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 ...
Khawaja Asim's user avatar
0 votes
2 answers
4k 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 ...
raju's user avatar
  • 153
1 vote
1 answer
825 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 ...
sasfrog's user avatar
  • 314
2 votes
1 answer
6k 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/...
SuperJMN's user avatar
  • 123
4 votes
3 answers
470 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 ...
Chris Harrington's user avatar
2 votes
1 answer
53 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 ...
mehul's user avatar
  • 23
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
409 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
0 votes
1 answer
1k 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 ...
CodeAbaddon's user avatar
1 vote
1 answer
3k 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 ...
CKelly-Cook'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
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
1 vote
2 answers
1k 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/...
komsky's user avatar
  • 165
0 votes
1 answer
157 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 ...
lostinwpf's user avatar
  • 111
2 votes
1 answer
763 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 ...
user avatar
-1 votes
1 answer
509 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 =...
Virkam Dev's user avatar
1 vote
0 answers
2k 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(...
elnara's user avatar
  • 11
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
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
1 vote
1 answer
3k views

How to get list of files in a folder using .NET libraries

Hopefully this is an easy question, but I am having some trouble finding samples of how to get a list of files in a sub folder in a document library. Here's what I have, but I keep getting a "Value ...
Chris Harrington's user avatar
0 votes
1 answer
957 views

Powershell Date Parsing for Sharepoint Set-SPOListItem Update

I am trying to parse a CSV file in Powershell for a bulk file and metadata upload to SharePoint Online and am failing on the date fields. The incoming date format is '2007/12/24', the expected SPO ...
Barry Prentiss's user avatar
1 vote
1 answer
532 views

Empty CAML Query recursively search through document sets

I want to search for every single item within a document library. This is working just fine, but isn't working if the files within a document set in that library. I'm using an empty CAML query ...
user3519261's user avatar
4 votes
1 answer
15k views

CAML Query to retrieve list item by title

I'm trying to query for only this the item called Test1. I'm using this caml query but I'm returning all items in the list for some reason. private static int GetlookUpId(List hrLookupList, string ...
user3519261's user avatar
3 votes
2 answers
426 views

SP - How to set a unique row number programaticallly

I want to count all list items in my dynamic list to set ID For Every NEW RECORD. How to do this? int cnt = 0; int c = 0; foreach (TableRow tr in allVisibleRows) { SPListItem itemAdd = ...
Goshky's user avatar
  • 2,058
0 votes
1 answer
94 views

How do i get current user's RegionalSettings using .net \ rest request?

I'm trying to get current user's regional settings. var regionalSettings = context.Web.RegionalSettings works but there is no RegionalSettings on context.Web.CurrentUser.
Vitali Zaidman's user avatar
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
1 vote
0 answers
49 views

Dashboard for SharePoint server health [closed]

I want to create a dashboard to show the health of SharePoint servers using .NET code (C#). Anyone suggest me some ideas???
SP Enthusiast's user avatar
3 votes
1 answer
1k views

How to change choice field value in SharePoint programmatically

SPFieldChoice chFldCategory = (SPFieldChoice)lst.Fields["Category"]; chFldCategory.EditFormat = SPChoiceFormatType.Dropdown; chFldCategory.Choices....
jatin's user avatar
  • 31
1 vote
1 answer
842 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
2 votes
1 answer
517 views

How to debug a class library on a SharePoint 2013 Server?

I am learning to create a forms-based authentication for claims-based web application using custom membership and role provider based on the [msdn][1] link I will be building a class library to ...
user1166085's user avatar
0 votes
2 answers
895 views

Will a dll running .net framework 3.5 be able to work in SharePoint Server 2013 web application

I have a custom dll where its target framework is .Net 3.5, would it work in a SharePoint Server 2013 web application which runs on .Net 4.5?
user1166085's user avatar
3 votes
4 answers
14k views

CSOM get all terms recursively in a single ExecuteQuery

I am working on some C#.NET code that loads the entire set of taxonomy terms for a site. The current code is structured like this: using (ClientContext context = new ClientContext(url)) { ...
Jack A.'s user avatar
  • 193
0 votes
1 answer
556 views

Copy SharePoint file from Http to Ftp

Is there a direct way to copy a file from a SharePoint library to an Ftp location? Currently, I'm able to download the document to a local directory using the OpenBinaryDirect method, however this ...
Oxossi's user avatar
  • 644