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…
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…
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 =>…
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…
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…
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…
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)…
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 …
How to implement Expect 100-Coninue behavior in a WCF server ?
How to implement Expect 100-Coninue behavior in a WCF server ?
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:…
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…
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…
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. …
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…
Best way to Compress images for thumbnails
I have used the code from this document : https://zcusa.951200.xyz/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 …
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?
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 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: { …
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…
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…