Microsoft Q&A

.NET

12,852 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,852 questions with .NET-related tags

Sort by: Updated
6 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.
2,523 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
577 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,387 questions
asked 2023-01-25T03:05:53.0133333+00:00
Xenu 0 Reputation points
commented 2023-01-27T17:03:23.37+00:00
AgaveJoe 16,616 Reputation points
1 answer One of the answers was accepted by the question author.

How to use Service Principal/Managed Identities to access Azure App Configuration from .NET Framework Application?

I need to disable Local Authentication Methods (Access Keys) for Azure App Configuration Stores. Currently for an ASP.NET Framework application, I am using the following for accessing the App Configuration Store from my…

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,910 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
577 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
186 questions
asked 2023-01-12T12:30:34.1466667+00:00
Aayush Suresh Jain 21 Reputation points
accepted 2023-01-27T17:00:03.9033333+00:00
Aayush Suresh Jain 21 Reputation points
1 answer One of the answers was accepted by the question author.

JSON format using Entity Framework

I'm trying to use the bootstrap treeview and the JSON needs to be a certain format. I currently have this format: var data = [ { make: "Chevy", model: "2500", location:…

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,910 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
422 questions
asked 2023-01-27T12:38:51.11+00:00
TheCoder 61 Reputation points
accepted 2023-01-27T16:39:45.81+00:00
TheCoder 61 Reputation points
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,523 questions
asked 2023-01-27T16:29:45.1233333+00:00
john john 676 Reputation points
edited the question 2023-01-27T16:32:37.7666667+00:00
john john 676 Reputation points
1 answer

Datagridview Font When editing cell

I have not used the Datagridview before so have started a test Windows Forms app to learn about it. I notice that when I edit a cell the font size changes to something too small to read, is there a way to prevent this?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
596 questions
asked 2023-01-27T16:02:10.4366667+00:00
Jeff Gaines 1 Reputation point
answered 2023-01-27T16:27:08.46+00:00
Michael Taylor 37,366 Reputation points
0 answers

Blazor webassembly shows 405 error in localhost (and also when deployed to iis) when redirect back from payment website

I have created a blazor webaseembly project using .net 7. The blazor app redirects to an external url for payment. Once payment is done the payment status page(which is in the blazor app) should be loaded as that's the return url set while calling the…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
782 questions
asked 2023-01-27T11:08:51.96+00:00
Jayant Guru 0 Reputation points
edited a comment 2023-01-27T16:11:33.74+00:00
AgaveJoe 16,616 Reputation points
0 answers

Does XAML (UWP) Visual Designer in Blend for Visual Studio 2022 work on Windows 10?

I am trying to design a C# Maui UI in XAML. I read that you can use Blend for Visual Studio to visually program XAML code. So, I loaded a new C# Class project in Blend to attempt an XAML visual edit, though the "Design" tab says "Visual…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,387 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 questions
Universal Windows Platform (UWP)
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
557 questions
asked 2023-01-26T20:24:50.2266667+00:00
Eli Blankenship 0 Reputation points
commented 2023-01-27T16:05:16.8666667+00:00
Eli Blankenship 0 Reputation points
1 answer One of the answers was accepted by the question author.

ASPNET authentication works but value for user.Identity.Name is null

I get a null value for user.Identity.Name, but user.Identity.IsAuthenticated returns the correct value. I get my claim values too. I have only found a few posts about user.Identity.Name is null, but nothing has solved it. I have a simple login form: …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,523 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.
782 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,910 questions
asked 2023-01-27T14:29:56.4566667+00:00
perfect code 81 Reputation points
commented 2023-01-27T15:41:38.02+00:00
perfect code 81 Reputation points
0 answers

Shell Navigation and using a Dictionary to pass values.

I am trying to learn how to pass complex data types to a page using a Dictionary. As you can see in the example code below that Name was hardcoded, but I was wondering what is the best practice if I wanted to dynamically set the Name property in the view…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 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,910 questions
asked 2023-01-27T15:01:59.6933333+00:00
Ronald Rex 506 Reputation points
edited the question 2023-01-27T15:16:32.2166667+00:00
Ronald Rex 506 Reputation points
1 answer One of the answers was accepted by the question author.

Intent Filter / DeepLink .Net MAUI

I want to implement an application that will be viewable in my application using Intent Filter. I added in the MainActivity.cs file Filter Intent [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.ActionView, Intent.CategoryDefault,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 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,910 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
596 questions
asked 2023-01-19T14:47:27.51+00:00
Влад Тигинян 0 Reputation points
edited a comment 2023-01-27T14:52:37.61+00:00
Влад Тигинян 0 Reputation points
0 answers

How to sign using a certificate?

I have been trying to digitally sign my code using a certificate, but I am going to the project properties window, and not seeing the signing tab when I'm there. Is there anything I need to have downloaded in order to do this? Or is there a way to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
596 questions
asked 2023-01-27T14:42:44.78+00:00
Navya Ajay 0 Reputation points
0 answers

How can i call a stored procedure Oracle In Entity framework6

I have a proc in oracle that return somme parameters and one of this parameter is a record of table in sql developper declare -- Non-scalar parameters require additional processing p_tab_charge_account…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
596 questions
asked 2023-01-27T14:37:29.33+00:00
BITAR Yoan 0 Reputation points
1 answer

How to setup Vnet integration between ASP.NET 4.8 Azure Service V3 app and SQL Managed Instance?

I just created a simple ASP.NET Web Forms app to Azure Service - Premium V3 plan. This app runs fine as long it does not access our database in SQL Managed Instance (MI). When trying to access the database (a simple SQL SELECT statement in the…

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
1,172 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,295 questions
Azure SQL Database
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.
388 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,172 questions
asked 2023-01-17T16:43:22.7466667+00:00
Jan J. Vopalensky 0 Reputation points
answered 2023-01-27T14:29:08.0133333+00:00
Jan J. Vopalensky 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to change value of input field in a strongly-typed view from controller

Hello I am using ASP.NET Core 3.1 How can I change the value of the input fields in a strongly-typed view from controller. I have this simple example. I have three input fields and when the usee enters some values and submit them, I modify the values the…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
577 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,523 questions
asked 2023-01-27T11:07:27.1466667+00:00
Jeddah 66 Reputation points
commented 2023-01-27T14:26:50.3766667+00:00
Jeddah 66 Reputation points
1 answer

What is the difference of = and {get;set;}?

public int PageIndex{get;set;}=0; public int PageIndex=0; what is the difference?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,523 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.
388 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
577 questions
asked 2023-01-27T14:03:05.81+00:00
打玻璃 1,406 Reputation points
answered 2023-01-27T14:22:42.4+00:00
AgaveJoe 16,616 Reputation points
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,523 questions
asked 2023-01-27T14:03:43.83+00:00
Pratham Jain 61 Reputation points
answered 2023-01-27T14:21:21.36+00:00
AgaveJoe 16,616 Reputation points
1 answer One of the answers was accepted by the question author.

Shell Navigation and setting Parameter Values

I have included the code that I am using to pass parameters from one view to another view using shell navigation. The issue I am having is that I would like to set my model properties using for example the text entry control. Do I do that using a relay…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 questions
asked 2023-01-26T16:27:01.2666667+00:00
Ronald Rex 506 Reputation points
accepted 2023-01-27T14:10:24.3+00:00
Ronald Rex 506 Reputation points
1 answer One of the answers was accepted by the question author.

Shell Navigation and passing Parameter Values

Hi friends, I was wondering how to pass multiple parameters. I can pass one parameter for now... ?Name={Name} Thanks Task Navigate() => Shell.Current.GoToAsync($"{nameof(DetailPage)}?Name={Name}",

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
870 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,910 questions
asked 2023-01-26T20:32:49.7633333+00:00
Ronald Rex 506 Reputation points
accepted 2023-01-27T14:10:02.1066667+00:00
Ronald Rex 506 Reputation points
0 answers

Why can't run my app after visual studio update?

I have updated Visual Studio 2019 from 16.6.1 version to 16.11.23 version. The update operation was finished successfully. When I want to run my MVC project in Debug mode, nothing happens. No error is displayed, the app is not running. What do I have to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,387 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.
693 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.
953 questions
asked 2023-01-26T12:35:02.9366667+00:00
Ionut Dragomir 21 Reputation points
commented 2023-01-27T13:44:51.7733333+00:00
Tianyu Sun-MSFT 12,846 Reputation points Microsoft Employee
0 answers

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,523 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.
388 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
577 questions
asked 2023-01-27T12:33:03.2066667+00:00
打玻璃 1,406 Reputation points
commented 2023-01-27T12:42:05.3866667+00:00
AgaveJoe 16,616 Reputation points