Microsoft Q&A

.NET

12,857 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

12,857 questions with .NET-related tags

Sort by: Updated
0 answers

the taghelper do not rendered?

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

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
579 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,524 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.
389 questions
asked 2023-01-28T01:27:55.3233333+00:00
打玻璃 1,426 Reputation points
1 answer One of the answers was accepted by the question author.

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,524 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.
389 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
579 questions
asked 2023-01-27T14:03:05.81+00:00
打玻璃 1,426 Reputation points
accepted 2023-01-28T01:08:55.3866667+00:00
打玻璃 1,426 Reputation points
1 answer One of the answers was accepted by the question author.

Converting Virtual Directory into an Application.

I am attempting to run a application and encounter this error when trying to execute a install script in browser. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,173 questions
asked 2023-01-07T20:08:38.327+00:00
peter liles 351 Reputation points
accepted 2023-01-27T23:20:03.4233333+00:00
peter liles 351 Reputation points
1 answer

Dynamically Add Entry in a StackLayout and Retrieve Values in a List

As per the attachment, when clicked the '+' button, a new entry will display and need to store entered value in a List<string> . If 'x' clicked, the entry need to removed from the layout and removed from List<string> too.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 questions
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
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,562 questions
asked 2023-01-25T06:26:49.88+00:00
Mohanasundharam Murugan 20 Reputation points
answered 2023-01-27T22:43:56.64+00:00
James Hamil 11,861 Reputation points Microsoft Employee
0 answers

When entering a "T" in an asp.net multi-line text box, only one <Shift> key event is caught by the onkeydown event handler of the text box.

In an ASP.NET writable multiline text box, when a "T" is entered, only a <Shift> key keydown event is caught by the text box's onkeydown event handler, and the "T" never shows up. This is running in Microsoft Edge browser. Web…

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.
142 questions
asked 2023-01-27T22:40:39.66+00:00
kip2023 0 Reputation points
0 answers

Convert Image in Byte array with the same PixelFormat

Hi I had a System.Drawing.Image object with PixelFormat.Format8bppIndexed, If I convert it in a Byte Array through Image.Save(Stream, ImageFormat), and create a new image based in this Byte Array, the new image has PixelFormat.Format24bppRgb. My final…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
598 questions
asked 2023-01-27T21:45:58.9266667+00:00
Abraham Carrillo 6 Reputation points
1 answer

Multiple authentication schemes do not work on Azure (app fails to start)

I try to work with two app registrations that uses one app service. appsettings.json "AzureAdInternal": { "Instance": "https://login.microsoftonline.com/", "Domain": "demo.example.com", …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,524 questions
Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,299 questions
asked 2023-01-20T12:55:41.74+00:00
Jörg Auberg 20 Reputation points
commented 2023-01-27T21:42:59.04+00:00
Ryan Hill 15,991 Reputation points Microsoft Employee
7 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,524 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,388 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
579 questions
asked 2023-01-25T03:05:53.0133333+00:00
Xenu 0 Reputation points
commented 2023-01-27T21:32:58.8533333+00:00
Xenu 0 Reputation points
1 answer One of the answers was accepted by the question author.

Parse an array of objects to a JSON tree structure

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: "lot" }, { make:…

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,911 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
598 questions
asked 2023-01-27T12:38:51.11+00:00
TheCoder 61 Reputation points
edited the question 2023-01-27T21:22:01.69+00:00
Reza Aghaei 2,601 Reputation points Microsoft MVP
1 answer

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
answered 2023-01-27T20:51:02.57+00:00
Bruce (SqlWork.com) 27,936 Reputation points
2 answers

Visual Studio Community 2022 (64-bit) v17.4.4 not showing any compile time errors for MAUI project.

Hi, I am using Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.4.4 for my MAUI projects but is not showing any compile time errors . is it any plugin missing?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,388 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
871 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
asked 2023-01-24T09:18:11.29+00:00
Sachin 21 Reputation points
commented 2023-01-27T20:50:25.88+00:00
Terry Hutt 0 Reputation points
1 answer

Sodium.js error

Does anyone know what is sodium.js and what is this error means? This error started showing in my asp.net MVC app. I have autocomplete on my text field which uses json call which queries database and I've noticed that even the autocomplete works,…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
579 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,173 questions
asked 2023-01-27T19:24:15.99+00:00
Joe Green 141 Reputation points
answered 2023-01-27T20:43:37.8166667+00:00
Bruce (SqlWork.com) 27,936 Reputation points
1 answer

Debugging Shell Navigation

Hello Friends, I was wondering if anyone knows where to put my DebuggerDisplay Attribute annotations so that I can debug my navigation requests. Thanks !!! Debugging navigation Some of the Shell classes are decorated with the DebuggerDisplayAttribute,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
871 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,911 questions
asked 2023-01-27T19:08:08.5433333+00:00
Ronald Rex 506 Reputation points
commented 2023-01-27T20:01:26.1666667+00:00
Ronald Rex 506 Reputation points
2 answers

MAUI - All Apps crashing when running on IOS Emulators

Hi All my Apps are suddenly crashing when I run them on IOS emulators with the following errors: and output: [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
871 questions
asked 2023-01-09T22:08:23.247+00:00
Riffy 206 Reputation points
answered 2023-01-27T18:15:13.52+00:00
Riffy 206 Reputation points
3 answers

How to loop through JSON data?

Hi, I am calling an api and this is the return data. Could you please help me to loop through the JSON data? The JSON string - { "Outputdata": { "@xmlns": "http://xmlns.oracle.com/apps/pa/.......", …

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,911 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,173 questions
asked 2023-01-25T17:43:30.51+00:00
Paul 0 Reputation points
commented 2023-01-27T17:09:35.5266667+00:00
Paul 0 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,911 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
579 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
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,524 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.
598 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

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
871 questions
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
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,388 questions
Universal Windows Platform (UWP)
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,524 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,911 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