Questions tagged [asp.net]

ASP.NET is an application framework developed by Microsoft. It is built on top of the .NET Common Language Runtime (CLR). SharePoint is built from the ASP.NET framework.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Getting Access Denied when creating ClientContext without Credentials

I have an ASP.NET MVC Web API (on .NET 4.7.2) that is published under SharePoint IIS site. In this Web API, I am trying to create list item. It works fine when I pass credentials in the code - like ...
Raf's user avatar
  • 1,028
0 votes
0 answers
12 views

How to Update a SharePoint Document library field in webapi using system.net.httpwebrequest

I have written the code using authentication token from azure, I am able to get the data from sharepoint library but when updating , its throwing 400 error. Below is the code piece for reference. ...
Prachi Agarwal's user avatar
0 votes
0 answers
63 views

Getting bad request error while updating document metadata, Only scenario is when URL has special characters

My URL is https://domain.sharepoint.com/sites/Test_list/api/web/GetFileByServerRelativeUrl('/sites/Test_list/RE FW_ SAMPLE Fw_ Vdr_ levering new books 4182885 - 0092870 testing MM#00000 .msg')/...
Harmeet Chandok's user avatar
0 votes
1 answer
29 views

Help Required to overcome SharePoint Online External Email limitations

We need a help on sending emails with attachments from SharePoint online. We have a powerapp Canvas application in sharepoint online which will allow us to trigger external emails. We are using ...
Dhanasekaran G's user avatar
0 votes
0 answers
101 views

SharePoint 2016 http throttling asp.net\requsets current is 5000

One of our clients are facing an issue over 503- server is busy error. I found that this is happened because of http throttling. When I go through some articles and trying to modify resource ...
Srinu Dasari's user avatar
0 votes
1 answer
74 views

How to create customize CreatePage.aspx in sharepoint 2016

I am new to Sharepoint, need some help here When create a new page in the CreatePage.aspx we need to enter the url name, it will forbid the special characters(shown as pictures), but my problem is the ...
chariot's user avatar
0 votes
2 answers
1k views

Changing Date Format in Sharepoint DateTimeControl Visual Studio

I'm currently developing a SP Project using Visual Studio. Apparently the default date format for Sharepoint:DateTimeControl is 'yyyy/mm/dd', by using LocaleId="2057", I can change it to 'dd/...
SPBoy's user avatar
  • 55
1 vote
0 answers
947 views

How to obtain access token for SharePoint REST API v1.0

I need to call SharePoint REST API v1.0 endpoints, i.e. https://<any-tenant>.sharepoint.com/_api/web/lists The caller is a multitenant ASP.NET web app, not related in any way to the tenant of ...
user17653882's user avatar
0 votes
1 answer
2k views

The remote server returned an error: (403) Forbidden Error

I am developing a C# console application. My target SharePoint server is SharePoint Online on Office 365. I am trying to get the URL of the file present in the SharePoint. I am getting an error: &...
Dattatrey's user avatar
0 votes
1 answer
360 views

how to insert item with attachments to normal list in office 365 using asp.net c#?

I am trying to add item to Office 365 list item, and I did use the below code: public string PostingDeliveryNote(string ProjectName, string SupplierName, string DN_No , string PONo, string ...
HAJJAJ's user avatar
  • 263
0 votes
1 answer
27 views

Getting Links from an internal web page

I have an internal company's web page and I need to extract a link from that page what I tried is using (var client = new System.Net.WebClient()) { ...
Tausif Khan's user avatar
0 votes
1 answer
126 views

File object created and modified property values vary from ListItemCollection and FileCollection

I noticed some differences in values when calling File obj Created and Modified properties from ListItemCollection and FileCollection. Details below: Below is some old code that fetched files from ...
seanrco's user avatar
  • 117
0 votes
1 answer
123 views

CSOM File object ID property

What is the correct way to initialize or call File obj ID property? I don't see it as a default object property. I also tried calling via: File.ListItemAllFields["ID"] That failed. I did ...
seanrco's user avatar
  • 117
0 votes
2 answers
26 views

Question for Site Collections [Beginner]

I'm beginner in SharePoint. I'm working in SharePoint 2013. I'm confused about site collections. When we are getting site collection, we can do it like this e.g.: SPSite site = new SPSite("...
private7's user avatar
  • 125
0 votes
1 answer
65 views

CRUD FBA users through CSOM or powershell

For a web application configured with OOTB FBA membership, is there possible to manage the list (stored in asp membership) of users through CSOM or maybe PowerShell ? I'm looking to see if any ...
EL Patron's user avatar
  • 107
0 votes
1 answer
281 views

SharePoint Client Context: Load Query RoleAssignment returned "Not well formatted JSON Stream"

We are experiencing this issue that when we are querying data from Role Assignment of a SharePoint Site it throws an exception "Not Well Formatted JSON Stream". In this line i => i....
user92521's user avatar
1 vote
0 answers
278 views

Integrate Microsoft PowerApps with ASP.Net based web application

I have a client who is looking to integrate Microsoft Power Apps with their ASP.NET based web application for task management. So my question is that what are the prerequisite for doing it and how to ...
G.Srinivas's user avatar
0 votes
1 answer
84 views

Delete SharePoint item ASP.NET MVC

I'm having a problem with the delete function using ASP.NET mvc I can't seem to get how the delete works here. Should I create another method in the custom class for the delete? How does that work? ...
JOJO's user avatar
  • 1
0 votes
1 answer
106 views

Unable to fetch Web reference in CSOM while calling Method from Asp.net Core

I am looking for DLL or NuGet Package which is Compatible with Asp.net core 2.1 I create one solution using Asp.net core 2.1 I also added one existing project which is in the .Net framework where the ...
Negi Rox's user avatar
  • 211
0 votes
1 answer
101 views

Publish a dynamic form on sharepoint

I have to create a form (a request for adding a new user to our active directory) and publish it on the share point. At first I tought, that I could do this using Microsoft Forms, but it is not ...
Sardar Agabejli's user avatar
0 votes
1 answer
3k views

How to upload files from C# in ASP.NET to SharePoint Online library

What's the best way to go about uploading files to SP Online from C# ASP.NET Solution Thanks
NCG7771's user avatar
0 votes
0 answers
926 views

Uploaded an aspx page, getting the "Sorry something went wrong. File Not Fount." message

I copied and pasted an .aspx file to my siteassets folder. When trying to access, I receive the "Sorry something went wrong. File Not Found." message. Is an .aspx page not a simple upload and click ...
adams-j's user avatar
  • 307
1 vote
1 answer
168 views

Microsoft.SharePoint.Client list item update (add) clears the Title value

I am working on a ASP.NET 4.5 C# MVC 5 project that integrates with a SharePoint site using Microsoft.Sharepoint.Client. One of the methods must add a SQL record, and thereafter use 2 of that record's ...
Thoba Shangase's user avatar
0 votes
1 answer
668 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 ...
sushma manne's user avatar
3 votes
1 answer
293 views

SharePoint Online Webhook with ngrok "Access Denied"

I am trying to follow bellow documentation of Microsoft https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/get-started-webhooks I have given below permission azure app But when I send ...
Milind's user avatar
  • 1,538
0 votes
1 answer
32 views

new project in pwa reurn "InvalidProjectName"

I am trying to create a new project in PWA but i am receiving this error: "ProjectNameInvalid". here is my code: projContext = new ProjectContext(pwaPath); projContext.Credentials = new System.Net....
Seyed Reza Dadrezaei's user avatar
0 votes
1 answer
599 views

Single Sign On Asp.Net and SharePoint Online Site

I'm using a ASP.NET site with links to an SharePoint online site. When we starts ASP.NET application and click on the link to the SharePoint online site , without asking the login screen, we should be ...
user1315501's user avatar
0 votes
1 answer
146 views

Single Sign On between an ASP.NET application and SharePoint Online Site

I'm using a ASP.NET site with links to an SharePoint online site. We are using AAD authentication (OAuth 2.0) for ASP.NET site and SharePoint online site (Not sure is it using OAuth2.0 or OAuth1.0). ...
user1315501's user avatar
1 vote
0 answers
55 views

SharePoint 2013 User profile service doesn't return data for few users from asp.net code

I have a SharePoint 2013 deployed in one of the server. AD user can log in to it and view the data. I have created profile service in SharePoint to sync Active directory users in SharePoint and it ...
Balaji Ankulwar's user avatar
0 votes
2 answers
8k views

The remote server returned an error: (401) Unauthorized (SharePoint Online & C# Application)

I am trying to insert items in SharePoint online list from c# console application using CSOM method, but every time it gives me only one error: "The remote server returned an error: (401) ...
P.Parikh's user avatar
0 votes
0 answers
33 views

Working with https in sharepoint

I have an asp.net MVC web application which is calling my Sharepoint Web application to fetch data from lists and libraries. Basically my MVC application is a web site for which data is being ...
Pankaj Dalvi's user avatar
1 vote
1 answer
1k views

Read Swagger (JSON) from Sharepoint

appreciate if anyone can help on my below queries. SharePoint list have swagger(json) files. How to read swagger form SharePoint list through problematically. Is it possible? If possible what are the ...
sanka jayaram's user avatar
0 votes
1 answer
36 views

External Application accessing a Sharepoint Server

I have a specific scenario, wherein I have an application built ASP.net MVC accessing a SharePoint server. Now my SharePoint server has a configuration where there are 2 Web Front End servers and 2 ...
Pankaj Dalvi's user avatar
0 votes
1 answer
22 views

Conditions for the programmatically created Dropdown list do not work

The conditions for the programmatically created DropdownList do not work. When I click on CopyData, condition does not work and the DropdownList is reset to the beginning. <asp:DropDownList ID="...
Mikhail Zhuikov's user avatar
0 votes
1 answer
612 views

I am writing a web api code to upload documents in specific folder using csom code using savebinarydirect method, which is failing

I can upload the documents using a console app, but when using the same code in. Net Web API, I am getting an error saying, "Microsoft.Sharepoint.Client.File" doesn't contain a method "...
user11099777's user avatar
0 votes
1 answer
234 views

Null Reference Exception in Global asax sharepoint

I am overriding our global asax page where i want our users who are in a particular sharepoint list/ sharepoint group be redirected to the 2fa page (third party provided) every time the access ...
Page F.P.T's user avatar
0 votes
1 answer
33 views

Column data securely open for users

We had one secured list on SharePoint 2013. Under list different column exist. Particular one column(column name as "Internal data\link") we had more secured data (or) links exist. Our requirement is ...
murali kuruva's user avatar
2 votes
1 answer
108 views

Modernizing pages: webpartmapping.xml not found

I want to modernize site pages by following the .NET version of this Microsoft Blog: Modernize your SharePoint Pages I added the nugget package, I use a SharePoint Online Url. When I get to the code ...
Joren Vandamme's user avatar
1 vote
0 answers
22 views

How make publish by date MVC , sharepiont

I am working in site that publish the content by date so, every Thursday I will compare the date that the content approved to this Thursday date if its the same date (dependent on admin diction to ...
khawlah's user avatar
  • 31
1 vote
0 answers
67 views

Sharepoint Web Part Error CS1061

My web parts deployed yesterday morning very well. Cant recive code in my ascx. now getting error like this : Error CS1061 'announcementdescription_announcementdescription_ascx' does not contain a ...
Mert's user avatar
  • 135
1 vote
0 answers
25 views

Can I use libman with my SharePoint Add-In project?

I've noticed that libman is only available in Visual Studio 2017 asp.net projects. However, SharePoint Online Add-In projects are also web projects and use lots of javascript libraries. Is there any ...
tnk479's user avatar
  • 133
0 votes
1 answer
30 views

Missing dll for workflow

When attempting to access http://[domain]/sites/Home/_layouts/wrkmng.aspx I receive an error about a dll missing from the asp.net framework folder. I navigate to the folder and the dll is in fact NOT ...
toadfromgrove's user avatar
4 votes
0 answers
920 views

Distributed Cache error in uls logs Unexpected error in Decrypt - Exception 'System.Security.Cryptography.CryptographicException

Hi In WFE servers of SharePoint 2016 in uls logs there are many DCache errors like below and server performance is high w3wp.exe (0x0918) 0x2C48 SharePoint Foundation DistributedCache aa6e5 ...
adilahmed's user avatar
  • 2,955
3 votes
0 answers
67 views

Add search on refinement webpart

I have a webpart code in Sharepoint Online that shows me a refinement. My problem is that i want to add a search bar in the refiner, like the photo below. My code is: <webParts> <webPart ...
CSAnimor's user avatar
  • 219
1 vote
1 answer
771 views

Scaling up limits of a single IIS worker process

How many cores can a single worker process typically handle before performance becomes impacted? In performance testing we are currently running into capacity limits on the WFE servers generating a ...
cpiasecki's user avatar
0 votes
3 answers
531 views

query via caml in sharepoint list

hello I'm doing a query caml in asp.net c # to search by user of my column "users" that I have but only works with a single user, and when I change user and enter another brings me all the users I ...
Abel Avila's user avatar
1 vote
0 answers
46 views

Call VBA of Word template from .NET at server side using Sharepoint Server?

Can i call a VBA macro of a Word document, using .NET and Sharepoint Server? I mean, in a .NET client environment i can do this: oW = CreateObject("Word.Application") oW.Documents.Add("template.dotm")...
nano's user avatar
  • 11
0 votes
1 answer
75 views

Unterminated string constant

I have an edit linkbutton where I click and it brings a pop up dialog with the text to edit. When I edit the text and submit it works fine. but if I include an "Enter/Return" space in editing then I ...
Vusi85's user avatar
  • 67
0 votes
2 answers
952 views

Show sharepoint list in a datagridview using c #

I would like to know how to show a list of sharepoint in a page of asp.net c # by means of a datagridview and be able to modify it by adding a record to the list by means of a button. Beforehand ...
Abel Avila's user avatar
1 vote
0 answers
205 views

How to embed Document Library in .NET Application same like embedding in Microsoft teams?

In Microsoft Teams, when we add a document library into the tab, it embed only Document Library, no Other portion like Header or side bar of SharePoint is visible. I want to embed the same like in my ...
Aakash Maurya's user avatar

1
2 3 4 5
10