Microsoft Q&A

.NET

14,096 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,096 questions with .NET-related tags

Sort by: Updated
0 answers

How to achieve non-blocking processing in a Web API method?

I have a Web API with the MyWebApiMethod in it. Inside this method I want the following to happen: Start LogicA, wait for it to finish and then proceed to step 2. Start LogicB and proceed to step 3. without waiting for LogicB to finish Return an OK…

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,604 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.
170 questions
asked 2023-03-30T11:33:08.0466667+00:00
Frank Nátán 20 Reputation points
0 answers

How to Open Files on Xamarin Android Using FilePicker

using Xamarin.Essentials; (at the top of the file) async Task<FileResult> PickAndShow(PickOptions options) { try { var result = await FilePicker.PickAsync(options); if (result != null) { string Text…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,934 questions
asked 2023-03-21T13:53:33.71+00:00
Ronald GANS 136 Reputation points
commented 2023-03-30T11:22:55.1733333+00:00
Ronald GANS 136 Reputation points
3 answers

How to set multiple selected value and show them in dropdownlist with MVC?

How to set multiple selected value and show them in dropdownlist with MVC? my .cshtml <div class="col-6 mb-1"> <label class="form-label" for="">Members</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,849 questions
asked 2022-08-04T08:08:26.98+00:00
Dondon510 221 Reputation points
commented 2023-03-30T11:16:25.6466667+00:00
0 answers

The corresponding web pages are not loading when the link is tapped in Xamarin forms

In my Xamarin forms project, we show the HTML data on the UI using a webview. Using below code I am showing html content on UI: var htmlSource = new HtmlWebViewSource(); htmlSource.Html = description;//HTML Content web_view.Source = htmlSource; My HTML…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,934 questions
asked 2023-03-30T08:50:31.2166667+00:00
Sakshi Poojary 0 Reputation points
edited the question 2023-03-30T11:05:13.2533333+00:00
Sakshi Poojary 0 Reputation points
2 answers One of the answers was accepted by the question author.

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,849 questions
asked 2023-03-29T07:33:31.9466667+00:00
Cenk 786 Reputation points
accepted 2023-03-30T10:49:45.7866667+00:00
Cenk 786 Reputation points
1 answer

Uninstalling Webview2 version 111.0.1661.54 on windows 11

Hi all, I would like to uninstall Webview2 version 111.0.1661.54 and install an older version to allow another app installation. The previous method of uninstalling using setup.exe --uninstall --msedgewebview --system-level --verbose-logging…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
235 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).
671 questions
Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
519 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
4,140 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.
983 questions
asked 2023-03-30T07:46:35.55+00:00
Isaac Onyango 0 Reputation points
edited a comment 2023-03-30T10:47:12.73+00:00
Mohamed El-Qassas 1,376 Reputation points MVP
0 answers

we have installed iis on new server,we have deployed our websites to iis 10,we have checked all services like w3svc logging is running,but iis log files are missing.can you please help us regarding this?

we have installed iis on new server,we have deployed our websites to iis 10,we have checked all services like w3svc logging is running,but iis log files are missing.

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,604 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
899 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,877 questions
Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,331 questions
asked 2023-03-30T10:27:33.6+00:00
Salman, Shaik 0 Reputation points
0 answers

VisualStudio debug services on Docker-Compose not starting

Hi, I try to debug 3 services using Docker-Compose in VS 2022. ServiceC depends on ServiceB which depends on ServiceA. All of these "depends*on" use condition: service_*healthy and every service has a healtcheck. VS will only start container A…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,849 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,804 questions
asked 2023-03-20T13:49:46.3733333+00:00
BenT 5 Reputation points
edited the question 2023-03-30T10:16:56.6066667+00:00
BenT 5 Reputation points
2 answers

After installing VS2022 , getting NU1201 error on .net framework 4.7.2

Hi, I have developed on .net framework 4.7.2 and want to use .net6 on same machine , for that reason I have installed VS2022. Everything were build perfectly on VS2019. After installing VS2022 , getting NU1201 error on native projects of .NET…

Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
381 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
899 questions
asked 2022-11-17T08:58:17.613+00:00
Shaul 1 Reputation point
answered 2023-03-30T10:08:16.3966667+00:00
Ilya Nikulshin 0 Reputation points
0 answers

angular loop form problem

HI so i am trying to develop an attendance system in asp.net core web api and angular as front end now ill provide the code first First the form: <form [formGroup]="attendanceForm" (ngSubmit)="onSubmit()"> <section…

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.
170 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,331 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.
466 questions
asked 2023-03-30T10:07:12.6+00:00
Asjad Butt 61 Reputation points
1 answer

Check if the ContentPage is a MainPage

Hi, In .NET MAUI, how can I check the current page is a Mainpage? Thanks, Jassim

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,604 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,103 questions
asked 2023-03-29T17:47:07.24+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-30T10:05:24.5066667+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

Why i am getting TypeInitializationException

Hi, Why I astarted getting the below error when running my iOS app? can anyone help please.. System.TypeInitializationException: The type initializer for 'Microsoft.Maui.Controls.Shapes.Shape' threw an exception. ---> System.MissingFieldException:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,103 questions
asked 2023-03-29T17:39:30.2266667+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-30T10:00:03.12+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

Why does Windows.Media.Audio.AudioGraph has inferior resampling quality compared to Windows.Media.Playback.MediaPlayer ?

I'm working on a modulated signal generator that uses audio render as output. So far I tested two methods of output from my application to hardware: Windows.Media.Playback.MediaPlayer Windows.Media.Audio.AudioGraph My generated input data encoding…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
899 questions
Universal Windows Platform (UWP)
asked 2023-03-29T08:06:52.17+00:00
Serhii Tyshchenko 0 Reputation points
commented 2023-03-30T09:58:30.2833333+00:00
Serhii Tyshchenko 0 Reputation points
1 answer

DBContext is not found in adding view scaffolding

DB context class is not displaying in scaffolding

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
744 questions
asked 2023-03-30T06:37:48.22+00:00
akhter hussain 2,921 Reputation points
edited an answer 2023-03-30T09:54:09.8733333+00:00
Lan Huang-MSFT 11,901 Reputation points Microsoft Vendor
1 answer

How can I resolve a mono_wasm_set_is_debugger_attached error in published Blazor WASM app on Edge?

In the latest version of Microsoft Edge I have an issue where a published Blazor WASM (.NET 6) application it getting errors on launch: Assertion failed: Cannot call unknown function mono_wasm_set_is_debugger_attached, make sure it is exported As far as…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
887 questions
Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
1,454 questions
asked 2023-03-23T11:37:49.34+00:00
T K 1 Reputation point
edited a comment 2023-03-30T09:52:13.5233333+00:00
Chen Li - MSFT 401 Reputation points Microsoft Vendor
1 answer

DataTrigger if Else case

Hi, I have an Image that I want to show and hide based on a Label like this: <Image.Triggers> <DataTrigger TargetType="Image" Binding="{Binding Source={x:Reference LabelNickname}, Path=Text}" Value="Add"> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,103 questions
asked 2023-03-29T21:24:25.2366667+00:00
Jassim Al Rahma 1,166 Reputation points
edited an answer 2023-03-30T09:51:14.2933333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,671 Reputation points Microsoft Vendor
1 answer

TestContext is null when invoking method using Reflection

I am invoking a Data Driven Test Method from another service using Reflection. This Data Driven test read the data from file using TestContext and it is null. The purpose of this service is to run all the End to End tests available in the UnitTest1…

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,604 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
899 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.
270 questions
asked 2023-03-29T08:14:23.1533333+00:00
Aarti Jangid 0 Reputation points
commented 2023-03-30T09:41:41.4833333+00:00
Aarti Jangid 0 Reputation points
0 answers

MAUI fails to deploy Android app

buildoutput.pdf Hi, Ia m trying to deploy my MAUI Android app to my device but keep getting Build Failed and not sure what is the reason. Attached is the build log.. Kindly help.. Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,103 questions
asked 2023-03-29T19:26:50.53+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-30T09:26:22.52+00:00
Jassim Al Rahma 1,166 Reputation points
1 answer

How can word file displayed in a div container be printed in a pdf format?

I am trying to have a single page that will can be used to display either a word (.doc/.docx) or a PDF file. Instead of having two pages, each for word and pdf files. It’s a success but printing either of these formats in PDF is where I have…

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.
466 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,604 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
899 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,331 questions
asked 2023-03-28T10:44:36.1866667+00:00
Donald Symmons 1,286 Reputation points
answered 2023-03-30T09:21:08.68+00:00
QiYou-MSFT 1,556 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to find the network event change in windows using forms or windows service - c#?

Hi Team, How to get the events when the network is changed or connected newly or disconnected in c# (windows system)? I have tried with the management event watcher. But it does not give expected output. The code I have used as below. The…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
899 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
6,724 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,604 questions
asked 2023-02-20T11:48:33.5766667+00:00
Elanchezhiyan P 20 Reputation points
answered 2023-03-30T09:10:47.9766667+00:00
Rhea S 0 Reputation points