312 questions with ASP.NET API tags

Sort by: Updated
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,494 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.
312 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,424 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,316 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,494 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,436 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.
312 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 186 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,350 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,436 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.
312 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.
312 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,269 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,350 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.
312 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,051 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,269 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.
12,993 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.
312 questions
asked 2022-10-05T03:32:09.573+00:00
daowdos 271 Reputation points
commented 2022-10-05T20:59:07.69+00:00
daowdos 271 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,269 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.
312 questions
asked 2022-09-28T08:02:14.317+00:00
daowdos 271 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,269 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,350 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.
312 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.
312 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.
312 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.
312 questions
asked 2022-09-11T13:59:31.373+00:00
Anonymous
commented 2022-09-14T05:38:44.35+00:00
XuDong Peng-MSFT 10,181 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.
312 questions
asked 2022-09-05T09:09:41.25+00:00
Anonymous
commented 2022-09-06T15:03:15.51+00:00
AgaveJoe 26,426 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,436 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.
312 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 27,151 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,350 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.
312 questions
asked 2022-08-29T01:20:05.597+00:00
Peterjc 81 Reputation points
accepted 2022-09-02T00:26:44.37+00:00
Peterjc 81 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 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,436 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.
312 questions
asked 2022-08-24T06:14:41.39+00:00
Ronald Rex 1,666 Reputation points
commented 2022-08-24T20:37:10.197+00:00
Ronald Rex 1,666 Reputation points
1 answer

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…

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,436 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.
312 questions
asked 2022-08-15T07:49:29.723+00:00
Mr Edge 221 Reputation points
answered 2022-08-16T02:24:24.09+00:00
Lan Huang-MSFT 27,151 Reputation points Microsoft Vendor
2 answers

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…

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,436 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.
312 questions
asked 2022-08-01T09:17:39.09+00:00
Reborn 1 Reputation point
commented 2022-08-03T09:19:11.653+00:00
Lan Huang-MSFT 27,151 Reputation points Microsoft Vendor
4 answers

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…

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.
312 questions
asked 2022-08-01T09:10:32.66+00:00
Reborn 1 Reputation point
answered 2022-08-02T08:57:30.017+00:00
satya karki 986 Reputation points MVP
0 answers

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,442 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.
312 questions
asked 2022-07-31T18:51:39.13+00:00
Ronald Rex 1,666 Reputation points
commented 2022-08-01T06:12:19.75+00:00
Zhi Lv - MSFT 32,051 Reputation points Microsoft Vendor
0 answers

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"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,269 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.
312 questions
asked 2022-07-29T13:11:03.15+00:00
Sumanth Babu 21 Reputation points
commented 2022-08-01T02:54:29.233+00:00
Zhi Lv - MSFT 32,051 Reputation points Microsoft Vendor