4,704 questions with ASP.NET Core tags

Sort by: Updated
4 answers One of the answers was accepted by the question author.

How to use commas after three digits next to numbers using LINQ Query

I want to separate the numeric values ​​in my query with commas for ease of viewing. Is it possible? example 1000.00 I want to see 1,000.00 10000.00 I want to see 10,000.00 100000.00 I want to see 100,000.00 //Query var data = (from a in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-25T14:27:43.9966667+00:00
jewel 1,046 Reputation points
accepted 2024-12-26T05:30:26.1433333+00:00
jewel 1,046 Reputation points
2 answers One of the answers was accepted by the question author.

ASP.NET CORE MVC - Shared\Error.cshtml

Hi, I'm really new to ASP.NET Core MVC. I normally use ASP.Net Web forms (.Net Framework). One thing I could not figure out about MVC is the out-of-the box project templage (ASP.Net core mvc with .net 9 template in visual studio) has the Error.cshtml…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-25T17:22:18.84+00:00
Bob H 0 Reputation points
accepted 2024-12-26T00:11:52.15+00:00
Bob H 0 Reputation points
2 answers

Issue with 405 Method Not Allowed instead of 401 Unauthorized in ASP.NET Core with JWT Authentication

Hi everyone, I'm encountering an issue with my ASP.NET Core application where I'm getting a 405 Method Not Allowed error instead of the expected 401 Unauthorized error when accessing an endpoint that requires authentication. Here's a detailed description…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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.
11,151 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.
355 questions
asked 2024-12-25T05:41:55.44+00:00
Naser AL-Asbahi 5 Reputation points
commented 2024-12-25T09:00:08.68+00:00
Naser AL-Asbahi 5 Reputation points
0 answers

Remote debugging of ASP.NET (.NET Core 8) app under IIS 10 will not show source code on breakpoint

Historically, I've had no problems using the remote debugger on a Windows server for .NET Framework web services. I've now had to create a .NET Core 8 Web API using VS2022. I've published the service to a W2016 host and am hosting it under IIS…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,012 questions
asked 2024-12-18T13:38:55.14+00:00
Osborne,J,Jon,QDN R 0 Reputation points
commented 2024-12-25T07:32:36.47+00:00
Brando Zhang-MSFT 3,791 Reputation points Microsoft Vendor
2 answers

Blazor 8.0 NavigateTo throws an exception

Hello, I have a language selector that calls the following code and it works like a charm. On other hand, I want to change the language from within the MainLayout on Initialized event (async) but then the very same code throws an exception of type…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 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.
11,151 questions
asked 2024-12-19T08:59:18.7133333+00:00
Kuler Master 306 Reputation points
edited a comment 2024-12-24T16:32:50.1733333+00:00
Bruce (SqlWork.com) 68,486 Reputation points
2 answers

Blazor ValidationMessage being conditional

Hello, I have a registration form where the users can select if they are private or company. What I need is to make the Company Name validation conditional. Meaning, if they select a company it gets enabled and if they select a private it gets disabled.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 questions
asked 2024-12-03T11:08:10.6566667+00:00
Kuler Master 306 Reputation points
answered 2024-12-24T05:36:01.05+00:00
Ping Ni-MSFT 4,805 Reputation points Microsoft Vendor
0 answers

How to create persistent Cookie from HttpContext's Cookie.Append method?

var token = await _jwtTokenService.GenerateToken(user); HttpContext.Response.Cookies.Append("accessToken", token, new CookieOptions { HttpOnly = true, Expires = DateTime.UtcNow.AddHours(1), SameSite = SameSiteMode.None, Secure =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-13T09:39:45.98+00:00
Mahesh Kumar 60 Reputation points
commented 2024-12-24T02:58:07.6733333+00:00
Tiny Wang-MSFT 2,976 Reputation points Microsoft Vendor
0 answers

Seed Data Asp.Net core Identity .Net 9

Hello, good time. A problem in the new version of .Net 9 that I recently found after upgrading from version 8 to 9. Regarding the seed data context identity I found this problem after upgrading the version, in your project I have a Context, one for the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-21T06:56:08.37+00:00
Saeed Ghafori 0 Reputation points
commented 2024-12-23T07:05:29.92+00:00
Ping Ni-MSFT 4,805 Reputation points Microsoft Vendor
1 answer

RDLC reports on .NET Core 8

Hi at all, I'm using a rdlc report inside a .net core 8 app but i'm getting this error {"An error occurred during local report processing.;The definition of the report 'report path inside the project' is invalid.\r\nAn unexpected error occurred in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-04-15T08:50:57.27+00:00
Marco 20 Reputation points
answered 2024-12-21T11:31:37.75+00:00
AinhoaGiles 150 Reputation points
1 answer

Maui project - Microsoft.AspNetCore.Aoo didnt work with the APP

1-There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'iossimulator-x64'. 2-There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'maccatalyst-x64'.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,368 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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.
355 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.
352 questions
asked 2024-12-20T19:56:57.6366667+00:00
Maher Elmecery 0 Reputation points
answered 2024-12-20T21:16:10.3066667+00:00
Bruce (SqlWork.com) 68,486 Reputation points
2 answers One of the answers was accepted by the question author.

including Azure Key Vault in .NET core 8 app running on on prem IIS

My .NET core 8 app talks to Azure Key Vault when I run it in Visual Studio 2022 because I can see a reference to Azure Key Vault in the Connected Services under the project. The app does not start on the IIS server, because of an authorization fail in…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,342 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-20T12:16:01.42+00:00
Richard Scannell 406 Reputation points
commented 2024-12-20T16:11:17.12+00:00
Richard Scannell 406 Reputation points
2 answers

issue with api, unauthorised

I have this simple Webapi, which is published as APP service [Route("api/[controller]")] [ApiController] public class DateTimeController : Controller { [Authorize] [HttpGet] public IActionResult GetCurrentDateTime() { …

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
728 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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.
355 questions
asked 2024-12-14T07:56:42.24+00:00
Abdul Baba Syed 21 Reputation points
edited an answer 2024-12-20T16:07:20.1+00:00
Bruce (SqlWork.com) 68,486 Reputation points
1 answer

System.NullReferansException:

I would like to insert product but SelectListItem returned true Can you help me? It will make me crazy

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-20T06:41:31.03+00:00
Case Ventil 0 Reputation points
answered 2024-12-20T14:35:46.36+00:00
Bruce (SqlWork.com) 68,486 Reputation points
0 answers

System.NullReferenceException: 'Object reference not set to an instance of an object.'

I would like to insert product 2 or anymore but Model.Selects.get returned null! I do not understand how I resolve this problem. Can you help me please! Thanks for your support

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,308 questions
asked 2024-12-19T13:32:59.2066667+00:00
Case Ventil 0 Reputation points
commented 2024-12-20T06:33:16.4233333+00:00
Tiny Wang-MSFT 2,976 Reputation points Microsoft Vendor
1 answer

system.IO.Directorynotfoundexception for the file that exists in the network drive

I am trying to open and fill a blank .pdf file. This blank .pdf file resides on the network drive. The path to that blank .pdf file is specified in the program.cs file. When I tried to read the blank .pdf file in my code, my code automatically goes to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-20T00:48:37.7066667+00:00
Anjali Agarwal 1,491 Reputation points
answered 2024-12-20T02:43:20.0533333+00:00
JasonPan - MSFT 6,091 Reputation points Microsoft Vendor
1 answer

Can Razor work with Active Directory?

For over a month I have been trying to use Blazor Server-Side Rendering (SSR) with Active Directory. I had thought that maybe I could use it as a part of a Razor template, but navigating to Blazor components. Today, I have learned that hope is wrong. So,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
asked 2024-12-16T18:11:36.34+00:00
Falanga, Rod, DOH 260 Reputation points
commented 2024-12-19T21:28:13.8966667+00:00
Bruce (SqlWork.com) 68,486 Reputation points
1 answer

Why Login failed for user 'Domainname\AppserverName'." If this type of user is added in the SQL Server Security section but has a different functional username configured within SQL, the error persists

On the client’s network, the application server and database server are hosted on distinct machines (different servers). When accessing the database via an API developed using .NET Core 8, we encounter the following error: Login failed for user…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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.
14,218 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,479 questions
asked 2024-12-19T07:48:51.3833333+00:00
APT LIAISON SUPPORT 0 Reputation points
answered 2024-12-19T17:17:01.1133333+00:00
Bruce (SqlWork.com) 68,486 Reputation points
2 answers One of the answers was accepted by the question author.

How to share "System.Web.HttpContext.Current.Session" between ASP.NET and .NET CORE application

Dear All, I would like to share session values between ASP.NET and ASP.NET CORE application. It is working fine only when the session value is set inside "Session_Start() method in Global.asax.cs. When I try to set session value in an other action…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 questions
asked 2024-12-18T15:28:55.29+00:00
Marján Zoltán 20 Reputation points
accepted 2024-12-19T15:35:55.0833333+00:00
Marján Zoltán 20 Reputation points
2 answers

Minimal APIs in Blazor with RequireAuthorization() using Individual Account

In my .NET8 Blazor project, I added the Individual Account to manage the users. Now, in order to save the data in the database, I added some minimal endpoints like public static void MapClientEndpoints (this IEndpointRouteBuilder routes) { var…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 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,636 questions
asked 2024-12-17T23:58:25.46+00:00
Enrico Rossini 196 Reputation points
edited an answer 2024-12-18T19:01:26.7366667+00:00
Bruce (SqlWork.com) 68,486 Reputation points
1 answer One of the answers was accepted by the question author.

How to retrieve SharePoint site load times, search performance, retention policies, compliance policies in asp dotnet core web api?

I want to retrieve SharePoint site load times, search performance, retention policies, compliance policies in asp dotnet core web api. Please suggest any documentation.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,704 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,653 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,999 questions
asked 2024-12-09T12:45:11.3466667+00:00
Manishankar T S 60 Reputation points
accepted 2024-12-18T06:13:55.63+00:00
Manishankar T S 60 Reputation points