447 questions with Developer technologies | ASP.NET | ASP.NET API tags

Sort by: Updated
0 answers

API Consume data getting 500 Err.

Hi, Please refer my below mentioned code, where I did mistake? I am getting following err., Similar this https://www.aspsnippets.com/questions/189822/Send-authorization-headers-to-Web-API-using-jQuery-Ajax-in-ASPNet/ I prepared my script. Error…

Developer technologies ASP.NET ASP.NET API
asked 2023-02-22T07:25:55.5433333+00:00
Aypn CNN 446 Reputation points
edited a comment 2023-02-22T09:46:28.7766667+00:00
Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
1 answer

How to manage client connections in a Blazor Server + ASP.NET Core API + SignalR project

I am working on a Blazor Server app over a SignalR connection with an ASP.NET Core API to send real-time updates from the server to clients. However, I am having a problem with managing user connections. The uniqueness of the problem is that each tab…

Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Developer technologies ASP.NET ASP.NET API
asked 2023-02-13T15:09:21.07+00:00
Happy Development 20 Reputation points
answered 2023-02-20T17:17:46.7266667+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

.NET localization model binder validations

I create .NET WebApi project and I don't know how to localize standard model binder validations. For example, when I send invalid date time I got this: Could not convert string to DateTime: 12vv.4. Path 'importDate', line 2, position 24. It's not a…

Developer technologies ASP.NET ASP.NET API
asked 2023-02-11T15:10:45.4533333+00:00
Petr Kasnal 26 Reputation points
commented 2023-02-17T01:59:40.69+00:00
Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
0 answers

Add Scaffolded Item Erorr with startindex cannot be larger than length of string.

Error There was an error running the selected code generator: 'StartIndex cannot be larger then length of string. (Parameter 'StartIndex')' when i add scaffolded item in visual studio 2022 v 17.4.5 windows 11 DotNet 6 Project type ASP.Net…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies .NET Other
asked 2023-02-15T12:50:48.03+00:00
Natpakhal Thongwaree 0 Reputation points
commented 2023-02-16T07:50:09.2966667+00:00
Anonymous
1 answer

Error: Uncaught TypeError: Cannot read properties of undefined (reading 'apply')

Hi everybody i have issue with my website perlebleu. I have the following error once i run an audit. Uncaught TypeError: Cannot read properties of undefined (reading 'apply') noticed in the following VM11 jquery.eislideshow.js:32. Here is image showing…

Microsoft 365 and Office Development Office JavaScript API
Developer technologies ASP.NET ASP.NET API
asked 2023-02-12T09:00:29.79+00:00
Lolalolita 0 Reputation points
commented 2023-02-13T09:38:22.41+00:00
Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
1 answer

An unhandled exception occurred while processing the request. ArgumentNullException: Value cannot be null. Parameter name: items Microsoft.AspNetCore.Mvc.Rendering.MultiSelectList..ctor(IEnumerable items, string dataValueField, string dataTextField, IEnum

public void candidatename() { List<SelectListItem> name = new List<SelectListItem>(); string apiUrl = "http://localhost:54621/api/mim/candidate/GetCandidates"; Util du = new Util(); …

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
SQL Server Other
Developer technologies C#
asked 2023-02-11T19:12:27.0866667+00:00
Shishir Singh 0 Reputation points
commented 2023-02-13T02:32:08.71+00:00
Qing Guo - MSFT 896 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

asp.net 7 api how to increase timeout?

Hi, I have created an ASP.NET API with .NET version 7 and I would like to ask how to increase timeout when http client is posting or requesting services from my API up from the default 100 seconds? or it is up to the client to set timeout from his end?…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
asked 2023-02-09T19:56:39.6366667+00:00
AG 521 Reputation points
answered 2023-02-10T09:58:04.15+00:00
AG 521 Reputation points
1 answer

maping type error

im trying to create a get user by i method well not a user but an entity called branch and that entity has a foreign key called appuser now i want that when i call the get method it returns the entity branch as well as the data linked to it through the…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
asked 2023-02-06T12:34:05.2233333+00:00
Asjad Butt 71 Reputation points
answered 2023-02-07T07:30:57.7533333+00:00
Anonymous
0 answers

How to implement API ID, KEY in ASP.NET Project

Hi, I am very beginner for web method API connect activities, ref my previous post ref link:…

Developer technologies ASP.NET ASP.NET API
asked 2023-02-06T09:59:56.0666667+00:00
Aypn CNN 446 Reputation points
commented 2023-02-07T05:36:34.5666667+00:00
Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
3 answers

add one to one and one to many relationship

Hi So a little weird but im trying to add a one to one and one to many relatioship between two entites lets say i have two entities 1 is branch 2 is AppUser now a branch can have a app user as the branch admin(done through roles not the elephant in the…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
asked 2023-02-06T10:14:32.9833333+00:00
Asjad Butt 71 Reputation points
edited the question 2023-02-07T01:09:16.0466667+00:00
LiHongMSFT-4306 31,566 Reputation points
3 answers

Getting lots of Task Canceled Exception while calling .net API from .net 6 WebApp

System.Threading.Tasks.TaskCanceledException: at System.Net.Http.HttpClient.HandleFailure (System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies .NET Other
asked 2023-02-03T07:29:13.5766667+00:00
Faijal Vahora 0 Reputation points
commented 2023-02-06T07:07:38.7466667+00:00
Anonymous
2 answers

running application from linux arm using httpclient I have exception calling an api http with self signed certificate

Using dotnet 7 my application calls a https api service in my local network with self signed certificate. I run it from a Windows client and I have no problems. I run it from a linux arm raspberry device and I have the following exception: "One or…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies C#
asked 2023-02-04T15:55:17.5+00:00
renzf 0 Reputation points
edited the question 2023-02-06T01:35:48.3333333+00:00
Anonymous
0 answers

Every time I try to access the API token it throws an error.

Hi, it's like that every time I try to post something to the API from Nextjs over to the API with Token (Auth) on it. then it makes an error. If I use swagger or postman and take the same token as I use in nextjs. Then it also makes errors. Errors can be…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies C#
asked 2023-02-05T10:35:04.07+00:00
Jesper Petersen 45 Reputation points
edited the question 2023-02-06T01:32:56.0866667+00:00
Anonymous
3 answers

Database design suggestion

Hi there, I have an ASP.NET web API application and am trying to upgrade it to Core. I am using EF 6, code first. I have this entity but the requirements changed. Now I have more than one price and currency for a product. How can I design the…

Developer technologies ASP.NET ASP.NET API
Developer technologies .NET Other
SQL Server Other
asked 2022-11-20T17:32:34.617+00:00
Cenk 1,036 Reputation points
answered 2023-02-03T02:35:47.5466667+00:00
Louis Davidson 21 Reputation points
2 answers

Edge browser showing windows security popup

We have implemented MSAL authorization in our web application but when we are executing visual studio code locally, solution running fine with IE but not with edge browser, its showing windows security credentials popup.

Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
Microsoft Edge Microsoft Edge development
asked 2023-01-24T07:21:08.0833333+00:00
Anonymous
commented 2023-02-01T09:31:28.2466667+00:00
Anonymous
1 answer

JSON Format WebAPI Entity Framework

Currently the JSON I'm using looks like this: The JSON file is huge so I'm only showing the first few rows in the file so not all data is shown. I'd like to get this JSON structured so I can use in a TreeView menu so I'd like to see get the out put to…

Developer technologies .NET Entity Framework Core
Developer technologies ASP.NET ASP.NET API
Developer technologies C#
asked 2023-01-19T16:31:09.4066667+00:00
TheCoder 91 Reputation points
commented 2023-01-31T09:34:35.88+00:00
Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

"Güncelle" button not working

ı dont undestand. Delete's working but update(Güncelle) not working. Where's my mistake ?

Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
asked 2023-01-31T06:19:44.85+00:00
Harun Ergün 260 Reputation points
edited a comment 2023-01-31T08:53:25.92+00:00
Viorel 122.5K Reputation points
2 answers One of the answers was accepted by the question author.

Displaying Deserialized JSON Data In Razor Page

Hello Everyone, I am using Visual Studio 2022 (x64) Community Version Entity Framework Core 6 C# Razor Pages (Not MVC) I am pulling data from the Google YouTube API, and want to display it on a .cshtml page. Here is a sample of the data: { …

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies Visual Studio Other
Developer technologies ASP.NET Other
Developer technologies C#
asked 2023-01-30T02:39:33.7466667+00:00
Brian Ashcraft 100 Reputation points
commented 2023-01-30T22:52:28.9233333+00:00
Brian Ashcraft 100 Reputation points
1 answer One of the answers was accepted by the question author.

how can add validation 2 drowdownlist

The user comes and selects the city from the first dropdownlist. If the first value is selected from the second dropdownlist, I want it to give an error. I want to add validation but failed. Help me please ? Where is my mistake ? my code ; var…

Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
asked 2023-01-30T08:28:51.2766667+00:00
Harun Ergün 260 Reputation points
accepted 2023-01-30T14:57:54.8766667+00:00
Harun Ergün 260 Reputation points
1 answer One of the answers was accepted by the question author.

How can add HTML paragraph alignment

I have a paragraph with too many words in it. I want it to be left and right aligned. Like Microsoft Word (same as ctrl+D). How can I do this? First ; I want like this ; This is (Ctrl+D) Is there a parameter in html that I can do the same way? My code…

Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
asked 2023-01-30T12:16:04.8233333+00:00
Harun Ergün 260 Reputation points
edited an answer 2023-01-30T14:07:56.5566667+00:00
Viorel 122.5K Reputation points