4,166 questions with ASP.NET Core tags

Sort by: Updated
2 answers

Asp.Net Core 5.0 SignalR with SQL Dependency

Hello everyone and thanks for the help in advance. I am porting older Asp.Net 4.5 application to .Net Core 5. A few of these applications have SignalR with SQL Dependency notification which I ahve been unsuccessful in porting to the new platform. IN…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-03-01T20:28:42.117+00:00
Kmcnet 691 Reputation points
commented 2022-04-08T05:40:46.943+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
2 answers

Web api azure 400 Bad Request

A strange thing happens to me, I have published an api with swagger, in a post method I have a body with some properties that are a string, in my api I check if one of them is null, in my local everything works fine, both in swagger and postman, but when…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,876 questions
asked 2022-03-18T14:31:52.947+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
answered 2022-04-08T04:50:08.63+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer One of the answers was accepted by the question author.

MVC - Checkbox list value not passed home controller with existing list

I have a checkbox populated based on the List “DayList”, in Timesheet.cshtml @if (Model.TimeSheet.DayList != null) { for (var i = 0; i < Model.TimeSheet.DayList.Count(); i++) { @azzedinehtmlsql .HiddenFor(x =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,248 questions
asked 2022-04-05T22:07:43.897+00:00
Shri-6058 326 Reputation points
accepted 2022-04-08T04:32:02.013+00:00
Shri-6058 326 Reputation points
2 answers

asp.net core 3.1 HttpClient Error while copying content to a stream.

we have old file server with post and get requests to work with files. Now we need to bind our web server with old file server. But i'm getting Error while copying content to a stream. when PostAsync. What i'm doing wrong? [HttpPost] public async…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2020-12-10T08:08:20.82+00:00
astheras 1 Reputation point
answered 2022-04-08T01:59:23.347+00:00
Nijil N 1 Reputation point
1 answer

error al depurar con visual studio 2012

Me sale el siguiente mensaje al ejecutar el visual studio 2012

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-04-07T18:30:59.5+00:00
Gian gutierrez blas 1 Reputation point
answered 2022-04-08T01:55:43.09+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
0 answers

WebApplicationFactory for Multiple Interconnected web applications

Hello, I almost have similar scenarios (like the link below)... Let me explain first: I have WebAPI Application1 which has DoSomethingUsingBarApi() to communicate to WebApi of Application 2. I want to test the round trip. 1) My First Web…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
asked 2022-04-07T17:43:59.96+00:00
Chandresh Sanghavi 1 Reputation point
2 answers

VS 2022 stable does not have emmet in razor

Hi, i just installed Visual studio 2022 and it doesn't have emmet in "cshtml" files. Thanks

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2021-12-19T08:36:42.113+00:00
Abbas Sheikhider 1 Reputation point
commented 2022-04-07T16:16:40.317+00:00
Mike953 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to lock page while loading data correctly

In my ASP.NET Core MVC project when the user fills the form and hits send button, a message is shown to the user and the button is locked. The problem is even without filling the form on hitting the button it shows the message. I have client-side…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-04-07T04:42:12.467+00:00
amin khosravi 21 Reputation points
commented 2022-04-07T16:12:11.35+00:00
amin khosravi 21 Reputation points
4 answers

ViewBag in asp.net core

Do you know how to activate ViewBag in PageModel (x.cshtml.cs files) of asp.net core 3.1? Thanks

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-04-01T12:06:37.027+00:00
S A 81 Reputation points
answered 2022-04-07T14:34:10.677+00:00
S A 81 Reputation points
7 answers One of the answers was accepted by the question author.

How to declare in the View?

How to declare in the View? @{ var kvp = ViewData["kvp"] as KeyValuePair<int, string>[]>; }

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-04-01T12:31:43.653+00:00
S A 81 Reputation points
answered 2022-04-07T14:31:07.613+00:00
S A 81 Reputation points
0 answers

Getting "Unknown socket error" intermittently while making a call to .Net 5.0 API deployed on AWS ECS Cluster

Hi Community Members, I have 2 API's (A1 & A2) developed in .Net 5.0. Both are deployed on separate Amazon ECS cluster. A1 has 6 concurrent ECS tasks that performs operations like downloading excel files from S3, process them and then make a GET call…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,248 questions
asked 2022-04-07T13:14:27.263+00:00
Ashish 1 Reputation point
12 answers One of the answers was accepted by the question author.

Access directories and subdirectories in ASPNET CORE MVC

Hi, I want to access all the files and subdirectories of a file table (Sql). I can access the root directory "WebApiUploads_Dir" and return all the files on my interface. However, I don't see all the subdirectories and I would like to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-03-22T12:33:21.863+00:00
sblb 1,166 Reputation points
answered 2022-04-07T10:29:48.173+00:00
sblb 1,166 Reputation points
5 answers

Dependency Injection Using IdentityUser

I got a razor page, I got the following code that I'd like to translate to C# code. @inject SignInManager<IdentityUser> SignInManager @inject UserManager<IdentityUser> UserManager How do I translate to C# code? Should I have it coded…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 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,248 questions
asked 2022-03-08T14:49:17.71+00:00
lesponce 176 Reputation points
commented 2022-04-07T01:09:35.097+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Convert Decimal to Date Value

Hi. I have a program in MVC. It gets data from AS400 such as birthday and display it but in decimal like 06051985. I want it to be displayed in 06/05/1985. How will I do it and where (View, Model, Controller?). Thanks.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
asked 2022-04-06T23:07:29.637+00:00
kynaplt1665 21 Reputation points
accepted 2022-04-06T23:49:40.143+00:00
kynaplt1665 21 Reputation points
3 answers

.NET Core WCF Web Service with Cookies

Hi I have an app that calls a webservice and its been added as a reference but it needs to send the cookie information to be able to access the methods. Does anyone know how to do that? Thanks.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,375 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-03-31T17:21:49.4+00:00
Cris 21 Reputation points
answered 2022-04-06T19:37:56.367+00:00
Cris 21 Reputation points
1 answer

OpenIdConnectOptions Validate Method Throwing Exception in ASP.NET 6.0

I have a new ASP.NET Core 6.0 web app, and I am trying to configure OpenID Connect (OIDC) in the Program.cs file. I am using "Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0" in my .csproj file. This is the code so…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-04-01T19:34:36.267+00:00
Anonymous
commented 2022-04-06T08:05:08.11+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
0 answers

mvcChecklist list Add one row upon one checkbox selction instead of AddRange

I have a checkbox populated based on the List “DayList”, in Timesheet.cshtml @if (Model.TimeSheet.DayList != null) { for (var i = 0; i < Model.TimeSheet.DayList.Count(); i++) { @azzedinehtmlsql .HiddenFor(x =>…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,248 questions
asked 2022-04-05T22:41:05.417+00:00
Shri-6058 326 Reputation points
commented 2022-04-06T03:42:32.837+00:00
Zhi Lv - MSFT 32,011 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

C# VS2022 Blazor webassembly razor components library project does not even compile

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
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,390 questions
asked 2022-04-02T23:31:38.24+00:00
Socrates Anibal Rivera Rivera 46 Reputation points
commented 2022-04-05T23:23:43.09+00:00
Lohith GN 511 Reputation points
1 answer

icorprofilercallback get parent thread id of the a thread

I'm using icorprofilercallback2 to track the performance of all http requests in my application. I do keep track of methods using the thread ids. The http request is making webservice call to other server. It seems this webservice call gets executed…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 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,248 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,119 questions
asked 2022-04-05T19:29:05.217+00:00
Tom Mac 1 Reputation point
answered 2022-04-05T19:47:08.747+00:00
Bruce (SqlWork.com) 56,026 Reputation points
2 answers One of the answers was accepted by the question author.

Which changes are necessary for upgrading to React 18 and not using typescript eslint ?

Hi, I have created a project using Asp.Net MVC Core 6 using react template. Now I upgraded the ClientApp from react 17.0.2 to react 18. This is my package.json file after performing upgrade. { "name": "test web",…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
asked 2022-04-04T11:08:24.633+00:00
mehmood tekfirst 766 Reputation points
answered 2022-04-05T16:50:54.433+00:00
Bruce (SqlWork.com) 56,026 Reputation points