26,404 questions with .NET-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

WPF: Concerns about Concurrent Access to Singleton Run Logger across Threads

Our WPF application targets .NET framework 4.8. the WPF application can control instrument and run a plate and collect run data and show run status in the User Interface. The application defines a run log which can record application operations,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 questions
asked 2024-12-11T01:50:23.13+00:00
Jane Jie Chen 426 Reputation points
accepted 2024-12-13T13:42:31.9433333+00:00
Jane Jie Chen 426 Reputation points
3 answers

editor.disableReadOnlyMode( 'feature-id' ); is not working in DecoupledEditor

Hi! The question is simple. This works: <script src="~/js/ckeditor5-build-classic/ckeditor.js"></script> <textarea id="editor_middle">@Model.Description</textarea> ClassicEditor .create(…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,685 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,013 questions
asked 2023-08-11T19:08:35.2566667+00:00
Volk Volk 551 Reputation points
edited the question 2024-12-13T12:26:20.1966667+00:00
TP 100.2K Reputation points
0 answers

can not draw on UIImage in MAUI?

var g=UIGraphics.GetCurrentContext(); g.SetTextDrawingMode(CGTextDrawingMode.Stroke); g.SetStrokeColor(UIColor.FromRGB(255, 255, 255).CGColor); g.SetFillColor(UIColor.FromRGB(0, 0, 0).CGColor); g.FillRect(new CGRect(0, 0, 309,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
asked 2024-12-13T12:18:59.6466667+00:00
mc 4,856 Reputation points
2 answers

Exception when using Firebase streaming

Hi, When I try to read data from Firebase using FirebaseDatabase.net Library I receive Newtonsoft.Json.JsonReaderException exeptionn this code works Imports Firebase.Database Imports Firebase.Database.Query Public Class Form1 Private Async Sub…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,911 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,756 questions
asked 2024-10-18T05:54:17.3033333+00:00
Yusuf-3141 50 Reputation points
edited the question 2024-12-13T12:18:35.1866667+00:00
TP 100.2K Reputation points
1 answer

.NET 9 UWP Build Error

A blank project created in Visual Studio 2022 using .NET 9 UWP generates a build error: Microsoft.UI.Xaml.Markup.winmd cannot be referenced. Referencing a Windows Metadata component directly when targeting .NET 5 or higher is not supported. For more…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 questions
Universal Windows Platform (UWP)
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,274 questions
asked 2024-12-12T08:26:00.6966667+00:00
Singh Wong 51 Reputation points
answered 2024-12-13T11:53:25.9+00:00
Singh Wong 51 Reputation points
2 answers

Resolving TPH Inheritance and Migration Issues in Entity Framework Core with Multi-Project Architecture

Hello, I’m working on a multi-project architecture with models and data access layers in separate .csproj files (These are Classes Libraries.) Using EF Core 8 and TPH inheritance, I encounter the following error when running Add-Migration in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
764 questions
asked 2024-12-06T10:52:46.85+00:00
Laurent Guigon 306 Reputation points
answered 2024-12-13T11:50:04.3966667+00:00
Laurent Guigon 306 Reputation points
0 answers

CarouselView Navigation Behavior Changed After MAUI Essentials 8.0.83 Update

Hello MAUI Community, I'm experiencing an unexpected change in CarouselView navigation behavior after updating to .NET MAUI Essentials version 8.0.83. Previous Behavior (Before Update): When clicking an indicator dot, the CarouselView would directly…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,487 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
asked 2024-12-10T06:20:21.7233333+00:00
Asjad Farooq 0 Reputation points
commented 2024-12-13T10:30:05.3633333+00:00
Asjad Farooq 0 Reputation points
2 answers

Visual Studio keeps underlining wrong code

Hi, I am using visual studio 2017 and I am trying 2022 Community. In both I see underlines under using System.Linq and using System.Web.WebSockets and everything from these is ignored by Visual Studio. For example myArray.FirstOrDefault(a=> true);…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,274 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.
11,127 questions
asked 2024-12-11T16:23:31.9366667+00:00
Jirka 0 Reputation points
commented 2024-12-13T10:00:52.5566667+00:00
Tianyu Sun-MSFT 31,696 Reputation points Microsoft Vendor
0 answers

Error Validating the service descriptor

Good day all. I come across several errors in the past day, that were not present prior to my removing a service from my application. While this service did not touch any of these classes that are showing the error, I am at a loss on how to resolve it.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,685 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,685 questions
asked 2024-12-12T03:51:43.05+00:00
Michael Mastro II 51 Reputation points
commented 2024-12-13T09:54:17.48+00:00
JasonPan - MSFT 5,996 Reputation points Microsoft Vendor
0 answers

Error Validating the service descriptor

Good day all. I come across several errors in the past day, that were not present prior to my removing a service from my application. While this service did not touch any of these classes that are showing the error, I am at a loss on how to resolve it.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,685 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,685 questions
asked 2024-12-12T03:51:43.05+00:00
Michael Mastro II 51 Reputation points
commented 2024-12-13T09:54:17.48+00:00
JasonPan - MSFT 5,996 Reputation points Microsoft Vendor
0 answers

how to get pixel of UIImage in MAUI?

I am using maui in platform ios. I create UIImage and how to get the pixel of (x,y)? if the UIImage is 30*5 and I can get the pixels of the Image?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
asked 2024-12-13T04:19:34.5766667+00:00
mc 4,856 Reputation points
edited a comment 2024-12-13T09:44:32.75+00:00
mc 4,856 Reputation points
0 answers

How to create persistent Cookie from HttpContext's Cookie.Append method?

var token = await _jwtTokenService.GenerateToken(user); HttpContext.Response.Cookies.Append("accessToken", token, new CookieOptions { HttpOnly = true, Expires = DateTime.UtcNow.AddHours(1), SameSite = SameSiteMode.None, Secure =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,685 questions
asked 2024-12-13T09:39:45.98+00:00
Mahesh Kumar 20 Reputation points
0 answers

.Net MAUI - Microsoft.Identity.Client with latest Version="4.66.2" is giving the exception as "To enable the embedded webview on Windows, reference Microsoft.Identity.Client.Desktop and call the extension method .WithWindowsEmbeddedBrowserSupport()."

Hello, I was using the Microsoft.Identity.Client with version 4.60.3 is giving the vulnerable error. Hence I recently upgraded my Microsoft.Identity.Client version from "4.60.3" to 4.66.2. Previous versions <PackageReference…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,535 questions
asked 2024-11-22T10:48:25.94+00:00
Thanniru, Anitha 5 Reputation points
commented 2024-12-13T09:35:29.74+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 33,176 Reputation points Microsoft Vendor
2 answers

Why can't we target the browser in .Net MAUI using WebAssembly and WebGL?

Integrating WebGL and WebAssembly (WASM) at a low enough level to support a .NET MAUI/XAML runtime is possible but requires a thoughtful design that bridges the WebAssembly execution model with the rendering and UI framework requirements. Here's how this…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 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,625 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 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,625 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
asked 2024-12-12T06:35:33.59+00:00
Jason Craig 0 Reputation points
commented 2024-12-13T09:24:54.2033333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 33,176 Reputation points Microsoft Vendor
2 answers

Why can't we target the browser in .Net MAUI using WebAssembly and WebGL?

Integrating WebGL and WebAssembly (WASM) at a low enough level to support a .NET MAUI/XAML runtime is possible but requires a thoughtful design that bridges the WebAssembly execution model with the rendering and UI framework requirements. Here's how this…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 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,625 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,988 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,625 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
asked 2024-12-12T06:35:33.59+00:00
Jason Craig 0 Reputation points
commented 2024-12-13T09:24:54.2033333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 33,176 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

the image can not fill the area in maui?

I am using .net maui Shell and there is image <Image Source="myimage.png" VerticalOptions="Fill" HorizontalOptions="Fill"/> the title bar is not filled why?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
asked 2024-12-12T07:42:14.69+00:00
mc 4,856 Reputation points
commented 2024-12-13T09:14:05.3166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 77,406 Reputation points Microsoft Vendor
1 answer

Windows Form Project c#, checking if Key exist in Registry

Hi, I tried various things does not seem to work if key does not exist it gives exceptional error, but if it does it works. Here Code: private void Form1_Load(object sender, EventArgs e) {        RegistryKey Key =…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,911 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.
11,127 questions
asked 2024-12-12T23:44:37.34+00:00
Gennady Gurin 41 Reputation points
answered 2024-12-13T08:07:02.4566667+00:00
Jiale Xue - MSFT 47,976 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Image placeHolder

For some reason the URL image https://www.sciencedaily.com/images/scidaily-icon.png doesn't want to show on desktop in my collection view, even though is there Android Desktop Website (Edge) So, I have two possible solutions find out why it doesn't…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,728 questions
asked 2024-12-08T20:43:55.5566667+00:00
Eduardo Gomez Romero 1,175 Reputation points
edited a comment 2024-12-13T08:03:53.2733333+00:00
Eduardo Gomez Romero 1,175 Reputation points
1 answer

Creating and displaying forms in VS 2022 Community 17.12.3

Hello I reopen under VS 2022 Community 17.12.3 an old WinForm application developed by me under VS 2010, which targets .Net Framework 4.0. Under VS 2022 it now targets .Net Framework 4.8.1. The compilation is Ok and I start the execution (in Debug and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,911 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,274 questions
asked 2024-12-12T16:35:14.8133333+00:00
Amyco 35 20 Reputation points
answered 2024-12-13T08:01:28.33+00:00
Jiale Xue - MSFT 47,976 Reputation points Microsoft Vendor
1 answer

Visual Studio 2019 Crashes When Closing Windows Form in Design View

Maintaining a Windows Forms application in Visual Studio 2019 (version 16.11.42) that uses Janus controls. Recently, there is a form within the application that when opened in design view indicates there are changes as soon as it is opened. Closing and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,911 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,274 questions
asked 2024-12-12T20:49:16.4+00:00
Euris 0 Reputation points
answered 2024-12-13T07:52:09.46+00:00
Anna Xiu-MSFT 30,196 Reputation points Microsoft Vendor