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://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 …
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…
Prevent browser authentication ASP.NET Web API dialog on 401
I have an existing ASP.NET Webforms / MVC application (it uses a mixture of technologies), to which I want to add a Web API to use for external ajax API calls (to replace older web services and WCF). The existing ASP.NET WebForms application uses…
Data Transfer Objects
I just have a quick question concerning DTO's. I read that DTO's are useful for security purposes e.g. they prevent you from sending confidential data across the network. But the tutorial also said that DTO's are also useful in the case that if there…
How to count/check number of connection pools
Im using a third party tool and also HttpClient to make some calls to get data. Most of the documentation states to have a single instance of third party tools for the HttpClient but how could i check how many open connections i have to determine…
how to make null values and empty element in xml have open tags and close tag? Asp.net web api 2
i am making a web api and i want to make the open tags and close tags for empty elements and null values. i am using C# and visual basic to code. My Questions: How to make open tags and close tags for null values and empty elements in xml format with…
how to compare two dates and show in the link in web api?
i have some question about getting date from previous between create_date and modify_date, i am working on asp.net web api 2 and i want to seach the date between these two dates from sql server, there are many records in database. The result outcome is…
Error Handling In Blazor Web Server Application
I am calling a web API endpoint from my Blazor server application. And I intentionally have not started the application (.Net Core 6 Web Api) with the api service. Meaning, there is no service listening on the specified port. And I was wondering what is…
How to prevent of Client Privacy Violation in Sensitive Data Exposure Asp.net core with angular 8
How to prevent of Client Privacy Violation in my code below <input type="password" id="txtPassword" name="txtPassword" #txtPassword="ngModel" placeholder="Password"…