318 questions with ASP.NET API tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Store update, insert, or delete statement affected an unexpected number of rows (0).

Hi, During load testing my application, I am getting this error. Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Scenario being, I am…

Azure SQL Database
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-11-17T09:55:23.647+00:00
Roshan Kumar 46 Reputation points
commented 2022-11-18T06:19:34.207+00:00
Roshan Kumar 46 Reputation points
2 answers

Primitive Reconciliation

Hello, There is this primitive reconciliation being made with Excel. In the beginning, it was not a problem because the data was scarce, and comparing GUIDs by eye in excel was not difficult. Now the data is too much for visual inspection. So is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-11-09T05:59:48.337+00:00
Cenk 991 Reputation points
commented 2022-11-17T05:28:59.527+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor
1 answer

Automapper How to set another property if source is null

Hello, I wonder if there is a way to set Pin to Serial if Pin is null. CreateMap<CouponDto, Coupon>() .ForMember(dest => dest.Pin, src => src.NullSubstitute("-")) .ForMember(dest =>…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-08-10T08:44:32.9+00:00
Cenk 991 Reputation points
answered 2022-11-07T13:51:57.473+00:00
Laxmikant 216 Reputation points
0 answers

Rest request body is sometimes truncated

I have an Asp.net API app where one of the API’s requests are randomly missing some of the body’s content starting from the end. All of the other APIs are very small in size so we don’t notice any issues with them. This API receives a serialized images…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-31T04:39:33.23+00:00
moondaddy 911 Reputation points
commented 2022-11-04T11:23:39.477+00:00
AgaveJoe 27,696 Reputation points
2 answers

Compare two excel files sheets for mathing values and put check mark on both files if they match

Hello, My project scenario is, I am receiving a pdf document from a client and I have an own excel spreadsheet to compare with that. I was able to find out the solution for pdf to excel conversion. so now, I would like to compare two excel files…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-26T18:39:42.993+00:00
Raki 481 Reputation points
answered 2022-11-03T06:02:18.747+00:00
QiYou-MSFT 4,311 Reputation points Microsoft Vendor
0 answers

How to clear the exception to prevent being logged twice by Application Insights

I installed Application Insights into my ASP.NET Web API application. I added global exception handler to log specific exception as a custom events to App Insights: public class AppExceptionHandler : ExceptionHandler { private readonly…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,047 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,414 questions
asked 2022-10-13T11:39:29.957+00:00
Mykhailo Kostiuchenko 1 Reputation point
commented 2022-10-24T06:38:24.313+00:00
Ryan Hill 27,111 Reputation points Microsoft Employee
2 answers

Throttling Webservice Requests

Hi, Everybody... I have an "internal" API that tracks packages (plural). This "internal" API accepts a collection of tracking numbers, iterates through the collection and invokes the "external" (i.e., third-party vendor)…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,141 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-14T13:12:59.75+00:00
Julio Bello 221 Reputation points
answered 2022-10-19T06:28:47.187+00:00
Lex Li (Microsoft) 5,392 Reputation points Microsoft Employee
1 answer

There is a circular dependency in the target dependency graph involving target "GetEFProjectMetadata"

We are using Code first asp.net application (.net frame work 4.7.2), and able to run update-database command from visual studio. If we try the same with power shell window getting below error. Code: dotnet tool install --global dotnet-ef …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,464 questions
asked 2022-10-15T20:20:49.693+00:00
Ramakrishnan Raman 1 Reputation point
answered 2022-10-17T09:56:02.103+00:00
Jack J Jun 24,496 Reputation points Microsoft Vendor
2 answers

How to implement Expect 100-Coninue behavior in a WCF server ?

How to implement Expect 100-Coninue behavior in a WCF server ?

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-13T17:00:54.12+00:00
Jenus M 6 Reputation points
answered 2022-10-14T06:32:50.903+00:00
Jiayao Wu-MSFT 176 Reputation points Microsoft Vendor
1 answer

OCIEnvCreate failed with return code -1 but error message text was not available.

I tried all previously stated solutions but still couldn't run my MVC application. This was running perfectly fine with previous .Net Framework, I updated all the projects to 4.8 and getting the below error. I am using Oracle 19c. System.Exception:…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-11T11:33:50.56+00:00
Nikhil P 1 Reputation point
commented 2022-10-12T18:12:02.193+00:00
Nikhil P 1 Reputation point
3 answers

How to fix this " Uncaught TypeError: Cannot read properties of undefined (reading 'mData') "

Friends, I am using Aspx. VB tool for web apps development. following my code is works find and data is saved sucessfully, after this sucessfull message, Im getting a followin error. How to I fix this? Uncaught TypeError: Cannot read properties…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-10T17:06:56.04+00:00
Aypn CNN 446 Reputation points
answered 2022-10-12T02:11:44.48+00:00
Aypn CNN 446 Reputation points
0 answers

POST Method is not working with "Navigation" attributes

Hello, I'm trying to POST data to a table. Each time I try with the Swagger app I received an error that mentioned that "entityNavigation" attribute is null. But that attribute was automatically generated by Scaffolding (it does not exist…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,409 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-10T04:04:38.753+00:00
iscott16 1 Reputation point
commented 2022-10-10T06:59:57.833+00:00
Zhi Lv - MSFT 32,106 Reputation points Microsoft Vendor
1 answer

Error SqlException when passing parameters from client-side (React) but not when passing them at server-side

I have an ASP.NET Core app project, SQL Server in the backend and React as the frontend. When I pass the parameters (must be 1 or 0) to SetGameResults method through Swagger UI (browser) the database accepts the parameters and the table is filled. …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,409 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,375 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-10-05T03:32:09.573+00:00
daowdos 281 Reputation points
commented 2022-10-05T20:59:07.69+00:00
daowdos 281 Reputation points
4 answers One of the answers was accepted by the question author.

Access to fetch been blocked by CORS policy - React Native + ASP.net Core App

Hi, I understand what's Cross-Origin Requests error I'm getting and why it is important. So I tried to enable then to disable CORS and to Enable CORS in my project with the explanations in docs - cors But nothing does it, in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,409 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-09-28T08:02:14.317+00:00
daowdos 281 Reputation points
commented 2022-10-02T12:16:34.39+00:00
Laxmikant 216 Reputation points
2 answers

Best way to Compress images for thumbnails

I have used the code from this document : https://learn.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how-to-set-jpeg-compression-level?view=netframeworkdesktop-4.8 It does what it should be doing. It lowers the quality and the img size …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,409 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-08-06T23:14:12.74+00:00
osyris 236 Reputation points
answered 2022-09-29T13:52:33.61+00:00
Laiq 1 Reputation point
1 answer One of the answers was accepted by the question author.

Web API Cookies no longer working?

The sample codes from microsoft are not working. i have : "using microsoft.net.http.headers" at the top of the file. how to get and set a cookie value?

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-09-20T16:22:02.42+00:00
Fazioli Amboina 61 Reputation points
accepted 2022-09-20T20:33:17.017+00:00
Fazioli Amboina 61 Reputation points
1 answer One of the answers was accepted by the question author.

how to use localstorage in WEB API .net 6

Been googling for 4 hours now how to do this on WEB API, in .net6. how do i set a value in browser storage, and how do i retrieve it? like: Localstorage{"SomeID"} = "SomeValue" return Localstorage{"SomeID"}

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-09-20T15:43:02.077+00:00
Fazioli Amboina 61 Reputation points
accepted 2022-09-20T16:24:07.117+00:00
Fazioli Amboina 61 Reputation points
5 answers One of the answers was accepted by the question author.

asp.net web api one to many crud

I created the webapi to list all players https://github.com/KalyanAllam/Players I need code to 1)Get one player with id 2)Create a new player The player info will be sent in the body in JSON format: { …

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-09-11T13:59:31.373+00:00
Anonymous
commented 2022-09-14T05:38:44.35+00:00
XuDong Peng-MSFT 10,341 Reputation points Microsoft Vendor
1 answer

C# .NET web.api json result get

I need to create an api and when invoked an endpoint to list the available players on http://localhost:3000/api/player/. I should get json result like [ { "id": 1, "name": "player name…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-09-05T09:09:41.25+00:00
Anonymous
commented 2022-09-06T15:03:15.51+00:00
AgaveJoe 27,696 Reputation points
3 answers

How do i insert web api data in to sql server database

I want to know how can i insert web api data into sql server database, I have written an web api and i want to insert the api data into sql server database and i do it without entity framework, Can i do it with data reader? I feel like I can't do it with…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,656 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2022-09-05T09:02:50.937+00:00
Reborn 1 Reputation point
answered 2022-09-06T06:57:56.917+00:00
Lan Huang-MSFT 28,841 Reputation points Microsoft Vendor