4,236 questions with ASP.NET Core tags

Sort by: Updated
1 answer

ErrorSystem.NullReferenceException: 'Object reference not set to an instance of an object.' Microsoft.AspNetCore.Mvc.Razor.RazorPage<TModel>.Model.get returned null.

Hello all, I really need your help. My Controller : using Hayashi.DataAccess.Data;using Hayashi.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Rendering; using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-05-22T22:37:02.95+00:00
João Machado 0 Reputation points
answered 2024-05-23T02:38:27.1733333+00:00
Ping Ni-MSFT 2,330 Reputation points Microsoft Vendor
0 answers

How to use localized RESX in Blazor WASM?

Hi, all I want is standard "old way" usage of generated static properties of my RESX to localize texts based on CultureInfo and .culture.resx files. I've just figured out, that only difference from .NET Framework is that now in .NET 8 culture…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 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,370 questions
asked 2024-05-22T07:01:50.83+00:00
Rada Matěj 180 Reputation points
edited a comment 2024-05-23T01:46:48.61+00:00
Tiny Wang-MSFT 1,741 Reputation points Microsoft Vendor
0 answers

How to use Azure RMS to protect documents on a local machine.

Hello everyone, how are you? It is possible to use Azure RMS to protect files and maintain control over them even on the user's machine. I would like to enforce authentication regardless of the program they are using to open the files, especially PDF and…

Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
522 questions
Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,183 questions
Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,353 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-05-21T19:01:52.56+00:00
Guilherme Pineda 0 Reputation points
commented 2024-05-22T23:25:07.91+00:00
James Hamil 22,266 Reputation points Microsoft Employee
8 answers

Unable to Resolve Scaffolding Issue in ASP.NET Core MVC Application

I'm getting the following error when I try to scaffold the Login, Logout, and Register pages. I ran the Visual Studio Installer to and clicked on the ASP.NET web development workflow to ensure I have all of the required tools installed. Version…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,688 questions
asked 2023-01-25T03:05:53.0133333+00:00
Xenu 0 Reputation points
edited an answer 2024-05-22T21:13:32.2233333+00:00
Siamak Shirzad 0 Reputation points
1 answer

How to create backend application using Asp.net C# Web API Core

How to create backend application using web api core application followed by standards using desing pattern, Depedency injection and solid principle I am new to web api core how to start following things JWT token authentical and authorization simple…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 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,370 questions
asked 2024-05-17T06:22:52.4166667+00:00
coder rock 196 Reputation points
commented 2024-05-22T20:06:20.3933333+00:00
AgaveJoe 26,166 Reputation points
0 answers

My authentication code is not working for one of my shopify

I removed my other account from Microsoft then added it back to sign in to disable the account and get my domain but I can't login, the codes generated are wrong.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-05-22T17:05:55.67+00:00
NGOZI EMEROKWAM 0 Reputation points
1 answer

Connecting SQL Server Data to RDLC reports in Blazor .Net Framework

Hello, I am trying to create/integrate RDLC reports in Blazor .NET framework. So far: I have managed to open a RDLC report thanks this Question and Answer:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 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,415 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,883 questions
asked 2024-05-13T09:36:27.6966667+00:00
Geoffrey de Sousa 0 Reputation points
commented 2024-05-22T08:33:00.6533333+00:00
JasonPan - MSFT 4,391 Reputation points Microsoft Vendor
1 answer

Under Posting Attack in .NET Core

In .NET 6 I have a DTO with value data types like int. But while sending a POST request if user omits the value for that default value is getting assigned without any Error. What are the best practices to avoid this under posting? I have tried using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-05-03T10:05:35.66+00:00
net 6 newbie 121 Reputation points
commented 2024-05-22T07:13:28.1866667+00:00
Ping Ni-MSFT 2,330 Reputation points Microsoft Vendor
0 answers

How to fix StackOverflowException after upgrading from .Net 6 to .Net 8

Hello,   I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 5 Reputation points
commented 2024-05-22T05:43:10.73+00:00
Abhishek, Burra 5 Reputation points
2 answers

How to change name of ASP.NET Empty website project ?

I want to change the name of my project because it has the same name as the solution main project. I tried in many way but didn't find how to change the name. The project name project is ShopWebSite1 When the solution and project has same…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 questions
asked 2021-09-09T08:16:10.5+00:00
daowdos 271 Reputation points
answered 2024-05-22T05:35:32.8533333+00:00
Ronen 0 Reputation points
2 answers

The html tags are displayed as plain text in asp.net core mvc razor pages

I am working on Asp.Net Core 6.0 MVC Razor pages. On the Login.cshtml page, I want to show the following error message when the user tries to login with in invalid credential: Invalid: <b>User Name</b> and/or <b>Password</b>. The…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-05-21T18:19:57.5566667+00:00
Sherpa 161 Reputation points
answered 2024-05-22T01:45:35.88+00:00
Ping Ni-MSFT 2,330 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

$.ajax patch method and .net 8 api action

Error Response Test - "{"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"$":["The JSON…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
900 questions
asked 2024-05-21T05:35:16.4333333+00:00
S R, Senthil 20 Reputation points
accepted 2024-05-22T01:43:39.2066667+00:00
S R, Senthil 20 Reputation points
2 answers

Is it correct to make connection string dynamic?

Hi, I'm currently working on a project which need data from other databases. The database where I'll get the datas are depends on users. Now I want to make my connectionString dynamic. Is it correct to make connection strnig dynamic. The user will enter…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
701 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 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,883 questions
asked 2024-05-20T19:12:10.4966667+00:00
Atilla Rüstəmli 0 Reputation points
edited an answer 2024-05-22T00:24:27.6433333+00:00
SurferOnWww 1,996 Reputation points
2 answers One of the answers was accepted by the question author.

@await RenderSectionAsync giving "Cannot await method group" error

I am creating a razor application consisting of two simple user inputs and two navigation tabs with 'save' and 'cancel' button for the user inputs. I have pasted below part of the _Layout.cshtml code giving the titled error. Am I missing something ? …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 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,415 questions
asked 2024-05-21T04:33:58.8933333+00:00
Akhil Josef 20 Reputation points
accepted 2024-05-21T17:06:10.0966667+00:00
Akhil Josef 20 Reputation points
1 answer

ManagedIdentityApplication.AcquireTokenForManagedIdentity("api://AzureADTokenExchange") giving error in local machine.

Hi, I am implementing the "Federated Identity Credential" along with User Managed identity in .net core 3.1 web api. Getting the error code: "managed_identity_unreachable_network" with error message "A socket operation was…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,208 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,817 questions
asked 2024-05-10T11:41:44.0866667+00:00
SivaD 0 Reputation points Microsoft Vendor
commented 2024-05-21T15:29:23.5366667+00:00
Bruce (SqlWork.com) 57,806 Reputation points
0 answers

How to update microsoft .net core seol windows server 2019

card access sever "windows server 2019". How to update .net core seol?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,456 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
96 questions
Microsoft Configuration Manager Updates
Microsoft Configuration Manager Updates
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Updates: Broadly released fixes addressing specific issue(s) or related bug(s). Updates may also include new or modified features (i.e. changing default behavior).
978 questions
asked 2024-05-21T14:08:33.4733333+00:00
Tim O'Brien 0 Reputation points
2 answers

Error while submitting the registration form

RegistrationForm.cshtml @page @model FaceAdminApp.Pages.Auth.RegistrationFormModel @{ ViewData["Title"] = "RegistrationForm"; } <style> .container { max-width: 600px; margin: 0 auto; padding:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-05-20T05:31:38.77+00:00
Surya Chandra Mohan 20 Reputation points
commented 2024-05-21T06:55:25.8266667+00:00
Ping Ni-MSFT 2,330 Reputation points Microsoft Vendor
2 answers

What is a good way of track link clicks in Asp.Net Core 7 MVC app in Application Insights?

I have an MVC app with several <a> tags, and I want to have a way of tracking link clicks, preferably without doing redirects (i.e., without changing link addresses). Is there any way this can be done? and the link clicks are tracked on Application…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
asked 2024-05-20T07:49:05.8166667+00:00
Astha Gangwar 0 Reputation points
answered 2024-05-20T22:00:43.68+00:00
Bruce (SqlWork.com) 57,806 Reputation points
1 answer

AKS deployed application to access on-prem server

Hi, I want to connect to on-prem sql server from a .net application which is deployed in AKS. We already have Azure relay/hybrid connection setup for the same, but that requires azure app service. I am looking for options to connect from AKS deployed…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 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,883 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,888 questions
asked 2024-05-16T12:53:21.2833333+00:00
Santhi Dhanuskodi 145 Reputation points
commented 2024-05-20T16:15:07.1666667+00:00
Bruce (SqlWork.com) 57,806 Reputation points
1 answer

Error when uploading CSV files to Azure blob storage using ManagedIdentity with C# and GraphQLAPI. "Total size of resourceFiles is using 147% of available space after processing."

Hello All, I have created a console app using C# where I try to fetch the data from GraphQLAPI and store the data in csv files. post that it would be uploaded to the Azure blob storage using ManagedIdentity. This complete code work fine in my local VS…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,236 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,726 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,370 questions
asked 2024-05-15T08:40:14.42+00:00
Siddhesh Chavan 0 Reputation points
commented 2024-05-20T10:49:02.6166667+00:00
ShaikMaheer-MSFT 38,126 Reputation points Microsoft Employee