Microsoft Q&A

.NET

14,057 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,057 questions with .NET-related tags

Sort by: Updated
1 answer

visual studio,why some Method never show in hint list?

It took a long time to find out why the CheckAccess Can't use in my project, The reason is below. just want to know why? It's so unreasonable

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.
7,591 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
892 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,287 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,801 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 a test as a means of analysis or diagnosis.
268 questions
asked 2023-03-25T03:14:23.25+00:00
兰树豪 261 Reputation points
edited a comment 2023-03-29T07:44:16.31+00:00
Hui Liu-MSFT 16,106 Reputation points Microsoft Vendor
0 answers

converting a text to an image

I am trying to convert a text to an image. When I see the converted image, the font family is changed. This is my code that works fine on my localhost, but when I deploy the code to the server. The font family family that I specified in the image…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,843 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.
7,591 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
740 questions
asked 2023-03-29T02:31:41.36+00:00
Anjali Agarwal 656 Reputation points
edited a comment 2023-03-29T07:35:05.3833333+00:00
Tiny Wang-MSFT 956 Reputation points Microsoft Vendor
1 answer

The MAUI GraphicsViewDemos image draw causes iOS app to abort

The GraphicsViewDemos app found at https://github.com/dotnet/maui-samples/tree/main/6.0/UserInterface/Views/GraphicsViewDemos aborts on iOS when the "Image paint" option is selected.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,092 questions
asked 2023-03-28T15:34:32.3233333+00:00
Randy Clegg 0 Reputation points
answered 2023-03-29T07:34:58.7333333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,591 Reputation points Microsoft Vendor
0 answers

How to add example value to 200 OK response in ASP.NET Core 6 Web API?

Hi, I have an ASP.NET Core 6 Web API, I am using Swagger UI. Is it possible to add an example value to 200 like the one in the 400? I want to add an example like this; { "referenceId": "732aa76f-6c9c-4598-adaf-775aef8a0f3d", …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,843 questions
asked 2023-03-29T07:33:31.9466667+00:00
Cenk 766 Reputation points
1 answer One of the answers was accepted by the question author.

How to update appSetting for a Background Service (Service Worker) (.NET 6)

Hello, I came to ask you for your help, please. I have created a Worker Service which periodically deletes files in a folder. My path to the folder is stored in an App.config file, I read the value via ConfigurationManager. It works, but I want to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,843 questions
asked 2023-03-28T12:34:00.33+00:00
tma9 1 Reputation point
edited a comment 2023-03-29T07:31:03.1933333+00:00
tma9 1 Reputation point
0 answers

C# parsing program

I have created a C# program using 2019 visual studio enterprise. It takes a GEDCOM file and parses it to create a work file. I have since changed to 2022 visual studio community. But when I try to duplicate the code in community it creates a WPF project…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
892 questions
asked 2023-03-28T16:02:08.43+00:00
C# learner 0 Reputation points
commented 2023-03-29T07:09:30.67+00:00
YujianYao-MSFT 3,866 Reputation points Microsoft Vendor
3 answers

Invoking azure functions server SignalR group functions from ASP.NET Core Client

I am trying to invoke azure functions server SignalR group functions from an ASP.NET Core client. The server side code that I am trying to invoke via an ASP.NET Core client can be found in this article. I have not found a single reference of a C#…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,843 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
81 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,796 questions
asked 2023-02-22T11:00:39.4466667+00:00
Bubba Jones 151 Reputation points
edited a comment 2023-03-29T07:06:50.7366667+00:00
Bubba Jones 151 Reputation points
3 answers

Printing a div card with exact styles as it appears on the web page

On my web form, I have these div card where there are labels with values, and two image controls. The labels on the card can have their font-family and color changed by the user o the client side to the desire of the user, using controls provided to do…

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.
464 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
892 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,326 questions
asked 2023-03-25T13:15:41.9733333+00:00
Donald Symmons 1,266 Reputation points
answered 2023-03-29T06:56:05.03+00:00
QiYou-MSFT 1,481 Reputation points Microsoft Vendor
0 answers

How can I figure out what nuget package is throwing an error about Xamarin.Android.Support.v4 no longer supported?

I have an old Xamarin.Forms app for iOS and Android that I am trying to upgrade to work on the latest Android OS. When I build I get these errors: …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,928 questions
asked 2023-03-27T21:22:32.47+00:00
Tony Pitman 21 Reputation points
commented 2023-03-29T06:45:31.4766667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 44,161 Reputation points Microsoft Vendor
0 answers

How to improve the MAUI Button responsiveness in a "this.Dispatcher.Dispatch" thread?

I have a MAUI application with two "this.Dispatcher.Dispatch"ed NavigationPages launched from the App class, both of which have two ImageButtons both of which have extremely poor responsiveness as compared to the buttons of other…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,092 questions
asked 2023-03-28T01:33:23.4733333+00:00
Marc George 66 Reputation points
commented 2023-03-29T06:42:20.7366667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 44,161 Reputation points Microsoft Vendor
1 answer

How to automatically add certificate to another machine using C# .NET?

I have a certificate like in the picture and i want when the user use my app the certificate will be automatically added to their machine. This helps my application bypass the Windows warning screen. I would like to ask about the solution of doing…

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.
7,591 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
892 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
2,901 questions
Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
2,419 questions
asked 2023-03-29T02:06:20.1633333+00:00
365 timviec 20 Reputation points
answered 2023-03-29T06:34:57.73+00:00
Jack J Jun 22,136 Reputation points Microsoft Vendor
1 answer

Multiple Column Pull Down Menu

How do I program the pull down menu below to display multiple columns? GitHub: https://github.com/DeanEverhart/ContosoUniversity1 Tutorial: https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro?view=aspnetcore-6.0 Environment: Net Core 6,…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
740 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,843 questions
asked 2023-03-28T16:43:33.2166667+00:00
Dean Everhart 926 Reputation points
answered 2023-03-29T06:28:44.28+00:00
Chen Li - MSFT 401 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Custom configuration provider with sqlserver

Hi everyone, I need to create my own customized provider configuration with a sqlserver database in order to offer my client (who manages his website) to change some settings. My idea is to use the settings in the json file for the "system"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,843 questions
asked 2023-03-27T11:11:05.1166667+00:00
Salvatore Sanollo 0 Reputation points
accepted 2023-03-29T06:20:47.8866667+00:00
Salvatore Sanollo 0 Reputation points
0 answers

ASP.NET Design with Bootstrap template (Open Source)

I am developing many web application using ASP.NET. For that, i used Ajax,CSS,HTML,etc. We were not used in depth Bootstrap and other technologies with ASP.NET. I have the requirement and want to develop .NET Web application with Rich and user friendly…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,843 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,326 questions
asked 2023-03-29T06:04:25.7566667+00:00
Gani_tpt 1,261 Reputation points
edited the question 2023-03-29T06:12:27.91+00:00
Lan Huang-MSFT 11,821 Reputation points Microsoft Vendor
0 answers

Visual Studio Code C# MVC Application - How to view Marked up HTML Code as if hard coded in an HTML Page...

Attempting to do code behind in a Visual Studio Code Application when I have done my own HTML Markup code in a routine in the C# code: . . . @ViewData["abc"] = "<br/>Message<br/Message2<br/>Message3"; …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
740 questions
asked 2023-03-28T23:21:40.2433333+00:00
BillNew 26 Reputation points
commented 2023-03-29T06:06:41.3466667+00:00
Lan Huang-MSFT 11,821 Reputation points Microsoft Vendor
1 answer

How to Add the publisher to the trusted publishers store on all clients?

Hi, I have a problem adding a certificate to the trusted publisher store. I ran this command in cmd with admin rights but cmd said certmgr.exe not found: certmgr.exe -add certificate.cer -c -s -r localMachine TrustedPublisher If there is any solution or…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
2,419 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
892 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.
7,591 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
396 questions
asked 2023-03-29T03:45:50.2633333+00:00
365 timviec 20 Reputation points
edited an answer 2023-03-29T06:02:16.99+00:00
Jack J Jun 22,136 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to upgrade Xamarin native Mac application project to Mac .NET macOS application project

I find out 3 template in VS2022 for Mac, The first one is Mac .NET macOS Application, the second one is Mac .Net Mac Catalyst Application and the third one is Multiplatform .NET MAUI project. In order to upgrade and migrate my Mac Xamarin native project…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,928 questions
asked 2023-03-28T01:47:58.44+00:00
Sun, Tracy (LNG-SHA) 40 Reputation points
commented 2023-03-29T06:02:00.2066667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,591 Reputation points Microsoft Vendor
1 answer

Problem with emulator(s)?

I have the following XAML in a MAUI app. <CollectionView Grid.Row="2" ItemsSource="{Binding selectedAward.winnersList}" > <CollectionView.ItemTemplate> <DataTemplate> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,092 questions
asked 2023-03-28T16:13:36.6366667+00:00
Lloyd Sheen 936 Reputation points
answered 2023-03-29T05:52:19.5433333+00:00
Alessandro Caliaro 3,436 Reputation points
0 answers

How to hide net maui tabbar correctly?

How to hide net maui bottom tabs correctly? To see it, create maui project, add two pages, name them FirstPage, SecondPage. add shell tabbar, for example two tabs: 1st tab, 2nd tab, set datatemplate for them FirstPage. Then create in FirstTab Button to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,092 questions
asked 2023-03-28T10:26:43.95+00:00
edited a comment 2023-03-29T05:47:09.5333333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,591 Reputation points Microsoft Vendor
0 answers

Circular Progressbar through SKIA Sharp is not working in MAUI

I have created a custom control for circular progress bar using skia sharp in xamarin forms and it is not working in MAUI after migration. I have shared the code below, please check <skia:SKCanvasView x:Name="canvas" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,092 questions
asked 2023-03-27T11:27:08.9133333+00:00
Satya 40 Reputation points
edited a comment 2023-03-29T05:35:30.5433333+00:00
Satya 40 Reputation points