Microsoft Q&A

ASP.NET Core

2,536 questions

A set of technologies in the .NET Framework for building web applications and XML web services.

Browse all .NET tags

2,536 questions with ASP.NET Core tags

Sort by: Updated
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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
588 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.
146 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,181 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
397 questions
asked 2023-01-30T12:16:04.8233333+00:00
Harun Ergün 20 Reputation points
edited an answer 2023-01-30T14:07:56.5566667+00:00
Viorel 82,476 Reputation points
3 answers One of the answers was accepted by the question author.

c# use tablename as variable

How can i use tablename as a variable in sql query? "select * from table_name " table_name must be variable.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 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.
6,934 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.
8,483 questions
asked 2023-01-30T06:44:59.1066667+00:00
ÖMER NASUHİ KESKİN 0 Reputation points
accepted 2023-01-30T11:06:25.29+00:00
ÖMER NASUHİ KESKİN 0 Reputation points
0 answers

how to bind to taghelper property in razor pages?

[HtmlTargetElement("pagination")] public class PaginationTagHelper : TagHelper { [HtmlAttributeName("page-index")] public int PageIndex{get;set;} } and in Index.cshtml <pagination page-index="PageIndex" /> I can not…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
397 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
588 questions
asked 2023-01-30T05:36:04.64+00:00
打玻璃 1,446 Reputation points
commented 2023-01-30T10:18:48.0166667+00:00
Farid Uddin Kiron MSFT 81 Reputation points Microsoft Employee
1 answer

500 internal server error in Windows server 2012 with IIS 8 for ASP.net core 6 mvc

I know this is a common errors but i am getting desperate and frustrated. I have published to folder my ASP.net Core 6 MVC application and deployed in a server running Windows 2012 and IIS 8 and I am getting the server error 500. I have tried going…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,153 questions
asked 2023-01-27T02:50:11.1333333+00:00
cebuhax0r 21 Reputation points
edited a comment 2023-01-30T09:47:36.4666667+00:00
Ruikai Feng - MSFT 246 Reputation points Microsoft Employee
0 answers

Azure multi tenant microservice architecture and many app registrations

Let's say I have a multi tentant microservice architecture fronted with an API gateway of which a client app calls to access the microservices behind. Let's say it's grown to a complex system that has 50 microservices all needing user…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,314 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,598 questions
asked 2023-01-28T15:31:40.0166667+00:00
Dan 0 Reputation points
edited the question 2023-01-30T09:22:09.7433333+00:00
MayankBargali-MSFT 49,456 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

how to get parameter name in c#?

public string BuildParameter(object[] para) { var parameters = ""; for (var i = 0; i < para.Length; i++) { if (para[i] != null) { …

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
290 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
609 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
956 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
483 questions
asked 2023-01-30T05:50:44.7+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-30T09:17:44.13+00:00
打玻璃 1,446 Reputation points
1 answer One of the answers was accepted by the question author.

the taghelper do not rendered?

using Microsoft.AspNetCore.Razor.TagHelpers; namespace tag.Components { [HtmlTargetElement("pagination", TagStructure = TagStructure.WithoutEndTag)] public class PaginationTagHelper : TagHelper { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
397 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
588 questions
asked 2023-01-28T01:27:55.3233333+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-30T07:50:24.4733333+00:00
打玻璃 1,446 Reputation points
2 answers

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: { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 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.
6,934 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,399 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.
146 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,181 questions
asked 2023-01-30T02:39:33.7466667+00:00
Brian Ashcraft 0 Reputation points
answered 2023-01-30T07:49:22.8533333+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

How to remove validation-info in text?

in Index.cshtml <form> <div class="row"> <div class="col-sm-2"> <label class="col-form-label">客户:</label> <div> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
397 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
588 questions
asked 2023-01-27T12:33:03.2066667+00:00
打玻璃 1,446 Reputation points
accepted 2023-01-30T07:28:47.4566667+00:00
打玻璃 1,446 Reputation points
0 answers

Model is always null on Razor page

hello All, I have the following code on my cshtml page: @if (Model!=null && Model.EmergencyInfos!=null && Model.EmergencyInfos.ToList().Count>0) { var count = Model.EmergencyInfos.Count; @for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
588 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.
6,934 questions
asked 2023-01-30T05:11:54.52+00:00
Anjali Agarwal 81 Reputation points
commented 2023-01-30T06:26:38.4+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
0 answers

Upgrade my Azure Function from .net Core 3.1 to .net Core 7.0. Error "'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstraction

I have an Azure Function which run on .net core 3.1, but when i change the .net version from 3.1 to 7 i got this error:- System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=7.0.0.0,…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,578 questions
asked 2023-01-27T16:29:45.1233333+00:00
john john 676 Reputation points
edited the question 2023-01-30T06:17:02.7833333+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
0 answers

Exception "Scheme already exists" when trying to implement multiple authentication schemes

For a Azure app service that uses two different app registrations for internal and external users I want to implement multiple authentication schemes. I use a ASP.NET Core web application (.NET6) with the following app…

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,314 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
asked 2023-01-26T11:56:01.52+00:00
Jörg Auberg (Admin) 0 Reputation points
edited the question 2023-01-30T06:07:03.8233333+00:00
Tarun Krishna Mikkilineni-MSFT 0 Reputation points Microsoft Employee
1 answer

.NET Core API Framework Warning

Hi All, I am developing an application using .NET Core with angular client. I am exporting the data to excel and generating the file in C# .NET Core. I am using a nuget package for the same. After installing the nuget package in the project I am getting…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
asked 2023-01-27T14:03:43.83+00:00
Pratham Jain 61 Reputation points
commented 2023-01-30T05:58:38.9966667+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
2 answers

How to fix "The target process exited without raising as CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core"

My application console application is build on .net core 7 and gave error when running on docker container, several other console applications running properly but one gave problem. Docker container logs given below: Targer OS is linux. I have tried…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
asked 2023-01-24T11:56:16.52+00:00
Faisal suleman 0 Reputation points
commented 2023-01-30T05:11:01.7966667+00:00
Faisal suleman 0 Reputation points
0 answers

Unable to connect to .NET 7 GRPC service on running on Linux App Service

I have a GRPC service written in .NET 7. It works without issue locally. To publish it to an app service, I followed the instructions at https://github.com/Azure/app-service-linux-docs/tree/master/HowTo/gRPC/.NET/.NET%207 It says it's working. I get…

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,314 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
asked 2023-01-30T05:06:21.61+00:00
Joe Ourada 0 Reputation points
edited the question 2023-01-30T05:07:11.9333333+00:00
Joe Ourada 0 Reputation points
0 answers

Export data to excel in .NET Core

Hi All, I am developing an application in .NET Core with angular client. I have a scenario where user click on Download button and data from SQL Server will be exported to excel sheet in .NET Core WebAPI. The generated and downloaded sheet will…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
asked 2023-01-28T14:37:20.9733333+00:00
Pratham Jain 61 Reputation points
edited a comment 2023-01-30T02:10:57.0866667+00:00
Xinran Shen - MSFT 806 Reputation points Microsoft Employee
2 answers

How to use ReportViewerForMVC in ASP.NET CORE Web Application

I am trying to integrate SSRS report into my asp.net core web app. I followed some tutorial on how to setup report viewer in asp.net mvc using the ReportViewerForMVC nuget package. However I encounter the following error. Hope someone can help to guide…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,097 questions
asked 2023-01-27T10:58:24.45+00:00
Gee Soon 0 Reputation points
answered 2023-01-30T02:09:28.2733333+00:00
Zhi Lv - MSFT 18,541 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Generate a simple message from controller (blazor page not for razor view)

In a Blazor server application, I have implemented user authentication via cookie. In the Blazor page (not razor view) I have created a form with email and password entries as well as a button for sending the data. The method is Post and is run on the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 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.
6,934 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
588 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.
783 questions
asked 2023-01-29T12:11:47.5833333+00:00
perfect code 141 Reputation points
accepted 2023-01-29T15:19:10.56+00:00
perfect code 141 Reputation points
1 answer One of the answers was accepted by the question author.

How to use EF Core when two properties in the Principle entity point to the same attribute in the dependent entity?

I have 2 Model classes: Department.cs cs public class Department { public string DepartmentId { get; set; } public string Name { get; set; } public string Description { get; set; } [ForeignKey("FacultyId")] public…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
420 questions
asked 2021-11-01T04:16:37.687+00:00
Uchchay Dugal 21 Reputation points
accepted 2023-01-29T15:05:43.83+00:00
Uchchay Dugal 21 Reputation points
2 answers

Invalid key store provider name: 'AZURE_KEY_VAULT' - Asp.net core 6

Good afternoon, I have an asp.NET core 6 application connected to a Azure SQL Database, one of the pages queries does a select to an always encrypted column, the encryption key is stored using Azure key vault. When I compile the app, I get the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,536 questions
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.
658 questions
asked 2022-01-10T23:22:27.797+00:00
Cristopher Aguilera 6 Reputation points
commented 2023-01-29T13:48:11.9133333+00:00
priyank kansal 0 Reputation points