Microsoft Q&A

.NET

21,731 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,731 questions with .NET-related tags

Sort by: Updated
1 answer

.NET MAUI Android hypervisor drivers installed but not running or found

Hypervisor Platform, AEHD and HAXM drivers in question. The project can run in Windows mode and show the app content. In Android mode the emulated device barely loads. To improve performance I followed the article…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,463 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,148 questions
asked 2023-11-28T09:28:04.1566667+00:00
MSCollege3000 0 Reputation points
edited a comment 2023-12-01T04:39:37.93+00:00
MSCollege3000 0 Reputation points
3 answers

adding header (banner) image to webform

looking to add a banner to my webform using CSS i was able to add the background image using the code below. any help would be appreciated. <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm2.aspx.vb"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,716 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,402 questions
asked 2023-11-29T00:09:13.8933333+00:00
Joseph Hedbon 121 Reputation points
commented 2023-12-01T03:28:36.0833333+00:00
Lan Huang-MSFT 19,681 Reputation points Microsoft Vendor
0 answers

Switch Maui doesn't display the right OnColor and ThumbColor in .NET8

Hi team, I use <Switch IsToggled="True" OnColor="Green" ThumbColor="Red"> in .NET8 in VS 2022 v17.8.2 On Android, it always displays like image below even i change OnColor and ThumbColor I didn't check it on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,148 questions
asked 2023-11-30T09:05:15.44+00:00
Nam Pham 71 Reputation points
edited a comment 2023-12-01T03:25:29.66+00:00
JessieZhang-MSFT 7,551 Reputation points Microsoft Vendor
0 answers

Is there a way to wait for a ManualResetEventSlim to be Reset()?

Hi all; The call ManualResetEventSlim.Wait() waits for the event to be set. I need the opposite, it has been set and I'm now waiting for it to be reset. Is there a way to do that? I can't flip my event object, it is used to process a queue of messages…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,295 questions
asked 2023-11-30T22:05:28.58+00:00
David Thielen 1,556 Reputation points
commented 2023-12-01T03:08:21.0533333+00:00
Jiale Xue - MSFT 13,341 Reputation points Microsoft Vendor
0 answers

Running Database-Update for EntityFrameworkCore returns A task was cancelled

I am trying to follow the Connect to and query Azure SQL Database using .NET and Entity Framework Core tutorial. When I try to run Update-Database from the Package Manager Console I get the following error: A task was canceled. I have provisioned the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
629 questions
Azure SQL Database
asked 2023-12-01T00:22:11.71+00:00
Cory Bonallo 0 Reputation points
commented 2023-12-01T03:00:17.66+00:00
GeethaThatipatri-MSFT 23,847 Reputation points Microsoft Employee
1 answer

How to update the progressBar percentages and adding each color to the custom picturebox while updating the progressBar?

I created this class and when I drag the control in form1 designer there is a drawn red circle and then in runtime when I drag image into the circle it's processing the colors of the image and should display the colors inside the custom picturebox red…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,727 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.
9,440 questions
asked 2023-11-30T18:56:03.3566667+00:00
Daniel Gee 0 Reputation points
commented 2023-12-01T02:56:30.4066667+00:00
Jiale Xue - MSFT 13,341 Reputation points Microsoft Vendor
1 answer

How can I get an open folder dialog in WPF?

I cannot find an OpenFolder dialog in WPF. I looked at the MS help, and it said to create a reference to Systems.Windows.Forms.dll. The only reference I could find is in the picture below. I added this to my WPF project. but when I tried to put in the…

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,553 questions
asked 2023-11-29T23:38:21.7366667+00:00
David Reinke 0 Reputation points
edited the question 2023-12-01T02:55:22.02+00:00
Rob Caplan - MSFT 5,387 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Mantain fllyout menu in windows

I want to maintain this open n Window I am doing this public partial class AppShell : Shell { public AppShell(AppShellViewModel appShellViewModel) { InitializeComponent(); Navigating += AppShell_Navigating; private void…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,148 questions
asked 2023-11-30T22:07:02.1133333+00:00
Eduardo Gomez 2,831 Reputation points
accepted 2023-12-01T02:54:17.72+00:00
Eduardo Gomez 2,831 Reputation points
0 answers

visual studio 2022 error mt1007 failed to launch application

I recently upgraded windows visual studio to 17.5.4 Windows Xamarin Forms to 5.0.0.2545 When I try to debug the Xamarin iOS application I get the following: error MT1007: Failed to launch the application…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,206 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.
877 questions
asked 2023-04-18T19:51:51.3333333+00:00
Seth Isaacks 46 Reputation points
commented 2023-12-01T02:41:55.44+00:00
Rob Caplan - MSFT 5,387 Reputation points Microsoft Employee
1 answer

Update .Net 8 - WSUS

How can I distribute .Net 8 through WSUS?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,295 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
11,112 questions
asked 2023-11-30T15:09:06.0166667+00:00
Uranus Perú 0 Reputation points
edited the question 2023-12-01T02:41:29.6966667+00:00
Jiale Xue - MSFT 13,341 Reputation points Microsoft Vendor
1 answer

Why does SSL connection to grpc server fail if the client is not running as admin and using client certificates?

I have a grpc server hosted in a Windows Service based on the grpc sample Greeter. Server Code: var builder = WebApplication.CreateBuilder(args); builder.Host.UseWindowsService(options => { options.ServiceName =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,295 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.
9,440 questions
asked 2023-11-29T11:32:31.86+00:00
Stephen Richardson 21 Reputation points
commented 2023-12-01T02:40:17.41+00:00
Jiale Xue - MSFT 13,341 Reputation points Microsoft Vendor
2 answers

Difference between .NET 4.8.0 and 4.8.1

We've found that our program breaks when a machine is updated from .NET 4.8.0 to .NET 4.8.1. Nothing else has changed on the machine. The program is set to target .NET 4.7.2. I know MS isn't going to trouble-shoot our program. But what they can do it…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,295 questions
asked 2023-11-29T14:25:52.02+00:00
Matt Bond 0 Reputation points
commented 2023-12-01T02:38:43.17+00:00
Jiale Xue - MSFT 13,341 Reputation points Microsoft Vendor
0 answers

DateTime.Now returns UTC Time if we build Xamarin.Android app with azure pipeline.

Hi, Team, We have currently one project associated with Xamarin.Android. DateTime.Now returns UTC Time instead of returning local time only when we build Xamarin.Android app with azure pipeline. It is working fine if we create build using visual…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,206 questions
asked 2023-09-13T12:56:12.17+00:00
Shingala A 15 Reputation points
commented 2023-12-01T02:28:19.1466667+00:00
Rob Caplan - MSFT 5,387 Reputation points Microsoft Employee
0 answers

MauiContext is null when app is opened with new Intent from background mode (System.InvalidOperationException: MauiContext is null.)

Hi! We are currently porting our XAMARIN apps to MAUI and are stuck on an issue. We have a feature that works more or less like this: a user gets a mail with a link and clicks it the browser opens and a website redirects to the installed app to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,148 questions
asked 2023-11-30T16:00:34.18+00:00
mjs 0 Reputation points
edited a comment 2023-12-01T02:17:42.1733333+00:00
JessieZhang-MSFT 7,551 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

EntityFramework FromRawSql(top 100) and Where(additional constraints)

Hi all; I think this is a SQL Database question. But how Entity Framework constructs a query may make a difference here. I presently have code that does the following (maxRows == 200): IQueryable<Organization> query; var fullTextQuery =…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
629 questions
Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
11,577 questions
asked 2023-11-30T22:09:03.4066667+00:00
David Thielen 1,556 Reputation points
accepted 2023-12-01T01:53:10.24+00:00
David Thielen 1,556 Reputation points
1 answer

Blazor server app - sign out - reload warning messge after 230 seconds

we have a asp.net core mvc web application and added blazor server components and deployed to Azure App Service (Windows) its showing reload warning after 230 seconds. can anyone help/advise to resolve this issue?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,295 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.
1,197 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,030 questions
asked 2023-11-30T14:02:20.6733333+00:00
Manokaran, Murugesan (Muru) 22 Reputation points
edited the question 2023-12-01T01:48:10.8833333+00:00
Tiny Wang-MSFT 1,466 Reputation points Microsoft Vendor
0 answers

Is System.IO.Ports currently only support on Windows(using MAUI build)

Hello, I'm trying to develop some application with serial communication function on mac and Windows using MS's .Net MAUI for cross platform development. The same code works windows like open/close a port, send data read data, everything works perfectly.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,148 questions
asked 2023-11-30T04:57:36.8533333+00:00
준섭 김 0 Reputation points
commented 2023-12-01T01:25:47.3266667+00:00
JessieZhang-MSFT 7,551 Reputation points Microsoft Vendor
1 answer

Background color change for MAUI DatePicker popup

Hi Team, I am working on a .Net MAUI app (in Visual Studio 2022), Android emulator used is Pixel 5 API 33. I need to change the background color of DatePicker pop up. Need to change the top blue color. Can you please let me know how to achieve…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,148 questions
asked 2023-11-28T03:30:48.6633333+00:00
salilsingh-9961 281 Reputation points
commented 2023-12-01T00:49:13.04+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 58,011 Reputation points Microsoft Vendor
0 answers

Visual Studio 2022 doesn`t see android device at all

Hello, guys! I have a problem, after upgrade VS. 2022 and switch to .NET 8 studio doesn't see android device (Nokia G22) no longer. I tried everything, install USB drivers through VS., download the various Android SDK according to my current version(12),…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,079 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,148 questions
asked 2023-11-28T22:42:10.61+00:00
Алексей Макаров 0 Reputation points
edited a comment 2023-12-01T00:28:34.16+00:00
Алексей Макаров 0 Reputation points
1 answer

Linux dotnet-isolated Function hosted on App Service Plan never loads functions in Azure Italy North (error 0 functions loaded)

Hi, I recently moved my whole stack from Azure West Europe to Azure Italy North, everything works as expected except my Linux Functions which never load after deployment or restart. As a result of this no functions are running and on the home page of…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,685 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,295 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,030 questions
asked 2023-11-30T17:14:40.37+00:00
Michele Bortot 0 Reputation points
edited an answer 2023-11-30T23:13:54.01+00:00
Dan Rios 485 Reputation points