2022 Developer Survey is open! Take survey.

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
26 views

Sharepoint in an iframe

I have an internal web application on our intranet & we'd like to include an iframe for sharepoint file uploads in some of the web forms. The iframe doesn't work because of x-frame-options & ...
user avatar
0 votes
0 answers
64 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 ...
user avatar
0 votes
0 answers
16 views

.net developing custom sharepoint 2013 template page

Hello I am trying to make custom template page but i cant seem to get the coding correct to import SharePoint functions in this case i cant get the textboxes to display the SharePoint ribbon and they ...
user avatar
  • 3
0 votes
1 answer
354 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: &...
user avatar
0 votes
0 answers
5 views

Create an external asp.net webapplication which will access existing SharePoint search services

I have requirement where I should create a asp.net web application that acts as a search engine and which will use a sharepoint search services. How can I log a current windows logged in user on to ...
user avatar
0 votes
0 answers
28 views

How to convert from Microsoft.Sharepoint.Client.ListItem to Microsoft.Sharepoint.Client.File?

I am trying to convert Microsoft.Sharepoint.Client.ListItem to Microsoft.Sharepoint.Client.File. What I have tried returns Cannot convert type 'Microsoft.Sharepoint.Client.ListItem' to 'Microsoft....
user avatar
  • 1
0 votes
0 answers
8 views

How to get specific info from a SharePoint list element inside a gridview rowcommand to a new aspx?

I'm trying to get this SharePoint list inside my gridview the information that the rows have and by clicking on a rowcommand travel this info to a new aspx to show it in the new one -- C# ASP.NET ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
  • 239
0 votes
1 answer
24 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()) { ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
  • 117
0 votes
1 answer
40 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 ...
user avatar
  • 117
0 votes
2 answers
25 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("...
user avatar
0 votes
1 answer
34 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 ...
user avatar
  • 107
0 votes
1 answer
167 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....
user avatar
1 vote
0 answers
177 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 ...
user avatar
0 votes
1 answer
48 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? ...
user avatar
  • 1
0 votes
1 answer
65 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 ...
user avatar
  • 211
0 votes
1 answer
84 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 ...
user avatar
0 votes
1 answer
873 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
user avatar
0 votes
0 answers
470 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 ...
user avatar
  • 307
1 vote
1 answer
66 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 ...
user avatar
0 votes
1 answer
401 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 ...
user avatar
3 votes
1 answer
182 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 ...
user avatar
  • 1,519
0 votes
1 answer
19 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....
user avatar
0 votes
1 answer
355 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 ...
user avatar
0 votes
1 answer
67 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). ...
user avatar
1 vote
0 answers
27 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 ...
user avatar
0 votes
1 answer
4k 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) ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
1 vote
1 answer
749 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 ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
0 votes
1 answer
15 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="...
user avatar
  • 614
0 votes
1 answer
256 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 "...
user avatar
0 votes
1 answer
144 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 ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
2 votes
1 answer
83 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 ...
user avatar
1 vote
0 answers
19 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 ...
user avatar
  • 31
1 vote
0 answers
40 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 ...
user avatar
  • 135
1 vote
0 answers
24 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 ...
user avatar
  • 133
0 votes
1 answer
27 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 ...
user avatar
4 votes
0 answers
724 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 ...
user avatar
  • 2,905
3 votes
0 answers
63 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 ...
user avatar
  • 209
1 vote
1 answer
615 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 ...
user avatar
0 votes
3 answers
485 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 ...
user avatar
1 vote
0 answers
38 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")...
user avatar
  • 11
0 votes
1 answer
70 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 ...
user avatar
  • 67
0 votes
2 answers
728 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 ...
user avatar
1 vote
0 answers
147 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 ...
user avatar
0 votes
1 answer
390 views

401 Unauthorised access from asp.net Application WebResponse

When I am trying to access(view) a sharepoint image from asp.net application I am getting 401 Unauthorised error. I am using following code: Dim webReq As WebRequest Dim webRes As ...
user avatar
  • 25
0 votes
2 answers
2k views

Problem on accessing Allitems.aspx, "Sorry something went wrong"

When I try to access a link from our portal company website (SharePoint), for example AttendancePlaces/AllItems.aspx, it asks for admin credentials as normal but after that I get an error "Sorry ...
user avatar

1
2 3 4 5
10