25,621 questions with .NET-related tags

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

Navigate PopToRoot when Tab Reselected in .NET MAUI - Navigation.PopToRootAsync

In Xamarin.Forms, we use the following code for tab reselection, and it works there. I want to achieve the same functionality in .NET MAUI, where selecting a tab will navigate to the root of the navigation stack. using Dev.Controls; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,428 questions
asked 2024-09-05T13:33:01.1866667+00:00
Bhuwan 716 Reputation points
commented 2024-09-06T07:15:58.6466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,646 Reputation points Microsoft Vendor
1 answer

CarouselView Window bug asthmatically loop

I have a CarouselView, but on Windows in will loop, this doesn't happen on android <VerticalStackLayout> <Label Margin="20" HorizontalOptions="Center" Text="{Binding…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,428 questions
asked 2024-09-05T10:25:03.8833333+00:00
Eduardo Gomez Romero 405 Reputation points
answered 2024-09-06T07:15:11.0766667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,646 Reputation points Microsoft Vendor
1 answer

What could be causing issues with referencing the iOS binding library?

Incorrect Path: Ensure the path to the binding library is correct. Any typos or incorrect directory structures can lead to reference errors. Framework Compatibility: Check if the binding library is compatible with your version of iOS and the target…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,428 questions
asked 2024-09-05T11:13:32.63+00:00
jhon doe 0 Reputation points
commented 2024-09-06T05:53:41.14+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,746 Reputation points Microsoft Vendor
0 answers

Issue with BitmapEncoder and BitmapDecoder in Windows.Graphics.Imaging

Hi everyone, I'm encountering an error while working with the Windows.Graphics.Imaging namespace. Here's the relevant code snippet: using (Windows.Storage.Streams.InMemoryRandomAccessStream stream = new…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
780 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,428 questions
asked 2024-09-03T08:19:11.34+00:00
tomohak 0 Reputation points
commented 2024-09-06T02:14:00.9066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,166 Reputation points Microsoft Vendor
0 answers

How to fix in .Net 8 - NotSupportedException: The keyword 'context connection' is not supported on this platform.

I am building a new ASP.Net Core MVC application (.Net 8) with a MS SQL server (inside a docker container). After creating the data and the viewer classes based on my existing (but empty) tables, I am getting following error: NotSupportedException: The…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,530 questions
asked 2024-09-05T17:30:32.9033333+00:00
Christian Bartsch 0 Reputation points
edited a comment 2024-09-06T02:05:52.8333333+00:00
Tiny Wang-MSFT 2,641 Reputation points Microsoft Vendor
1 answer

.NET MAUI ios Application Crashes When Published. Can Someone Guide me?

I maintaining .NET MAUI application that are created using .NET MAUI Blazor hybrid application project. now wwe need to publish it on Apple Appstore and there also some platform specific codes for android as well. so what i did is create .NET MAUI multi…

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,562 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,428 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
334 questions
asked 2024-08-15T03:17:51.58+00:00
Gayantha Anushan 0 Reputation points
edited the question 2024-09-06T02:04:30.67+00:00
XuDong Peng-MSFT 10,511 Reputation points Microsoft Vendor
1 answer

How to Deploy Xamarin 4.8 Apps to Simulator with VS Code on Mac After Migration?

Hi everyone, With Visual Studio for Mac being dropped, I’ve migrated to using VS Code for Mac and am using Meteor as a simulator for my Xamarin 4.8 app development. I’m trying to deploy a Xamarin 4.8 application to the simulator, but I’ve encountered an…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,339 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.
993 questions
asked 2024-09-04T13:20:17.9666667+00:00
Lefteris Michailidis 0 Reputation points
edited an answer 2024-09-05T19:57:11.8+00:00
Bruce (SqlWork.com) 64,651 Reputation points
1 answer

Burn the files on CD with the full directory tree structure.

The application built on C# Winforms, Framework 4.6.2 and there is the need to burn all the files and folders from the root folder, including itself to CD. The entry parameter is the source root folder path. The folder contains inside all of the needed…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,885 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.
10,863 questions
asked 2024-08-22T11:26:40.8333333+00:00
Dani_S 3,746 Reputation points
commented 2024-09-05T18:31:57.4066667+00:00
Bruce (SqlWork.com) 64,651 Reputation points
3 answers

Blazor Hybrid (MAUI) - Customize TitleBar

This is a follow-up to a previous question. I now see that the Title Bar customization API only works for Windows 11 (AppWindow.TitleBar is null on <Windows 11). For this question, keep in mind that I am only asking about the Title Bar when…

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,562 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
780 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,428 questions
asked 2022-07-07T19:02:56.817+00:00
Humberto Cruz-Oyola Jr 21 Reputation points
commented 2024-09-05T18:14:24.4266667+00:00
Humberto Cruz-Oyola 0 Reputation points
10 answers

How to fix this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."

Good evening , I am trying to build a simple web api using ASP.Net . The app has been showing the error like this after building it - warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,530 questions
asked 2023-06-03T08:29:57.58+00:00
Vaishnavi P 70 Reputation points
commented 2024-09-05T17:52:42.8766667+00:00
WIL LOPEZ 0 Reputation points
1 answer One of the answers was accepted by the question author.

Migrating from MasterDetail to Flyout, and how to make a common page view?

Yes, I am aware there are two questions to this, perhaps a third in asking if I even need to worry about migrating from MasterDetail at all. I've been going over my code, migrating some API's and so on. One issue I have been finding is that…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,339 questions
asked 2021-09-08T06:35:43.23+00:00
Jesse Knott 686 Reputation points
commented 2024-09-05T16:57:31.96+00:00
hrushikesh bhide 0 Reputation points
1 answer

How to troubleshoot the exception, Could not create TLS secure channel?

Hello there, I have this C# code that consumes a SOAP WS and it was working properly for years. However, since recently it started to throw the following exception: The request was aborted: Could not create SSL/TLS secure channel. Basically it imports…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,530 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,462 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.
10,863 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.
331 questions
asked 2024-07-12T14:24:34.8133333+00:00
Kuler Master 266 Reputation points
answered 2024-09-05T16:48:06.3966667+00:00
Bruce (SqlWork.com) 64,651 Reputation points
1 answer One of the answers was accepted by the question author.

C# Extension method specificity

Suppose I have an interface and a class implementing that interface: public interface IFoo {} public class Foo : IFoo {} Now suppose I have defined an overloaded extension method on both the class and the interface: public static class FooExtensions…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,810 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.
10,863 questions
asked 2024-09-04T22:11:43.5866667+00:00
clmcgov 21 Reputation points
commented 2024-09-05T14:51:07.5033333+00:00
clmcgov 21 Reputation points
1 answer One of the answers was accepted by the question author.

What's the difference between DOTNET_ROOT and DOTNET_ROOT(x86) environment variables?

I have x86 .NET SDK binary set up on x64 system with DOTNET_ROOT environment variable set, and exe files in the bin\Debug\net8.0 path still run without errors. DOTNET_ROOT(x86) does not exist on my system (I haven't created it). So what's the purpose of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,810 questions
asked 2024-09-03T03:59:35.0133333+00:00
Vasya Pupkin 60 Reputation points
accepted 2024-09-05T14:39:11.7333333+00:00
Vasya Pupkin 60 Reputation points
2 answers

Error calling a Web API with self-signed ClientCertificate using HttpClient in .NET Core (IIS and Winforms using C#)

We are currently migrating our code from .NET 4.7.2 to NET 7 (.Net Core). Everything has been moved forward except one project that has to consume another company’s WebApi rest web service. When we were forced to interact with this company they were…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,885 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,530 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.
10,863 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.
331 questions
asked 2023-09-03T21:58:31.0133333+00:00
Shane Vickery 5 Reputation points
answered 2024-09-05T12:43:52.1166667+00:00
Greyson Heun 0 Reputation points
1 answer One of the answers was accepted by the question author.

Install net 8 runtime where i have vs version 17.8.4 can cause problem.

Hi, I have VS 17.8.4 installed in my machine. Does install also net 8 runtime as prereuisite for specfic app can cause problem in my computer? Can I uninstall net 8 runtime later seperatly? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,428 questions
asked 2024-08-15T04:50:56.05+00:00
Dani_S 3,746 Reputation points
accepted 2024-09-05T10:23:29.8033333+00:00
Dani_S 3,746 Reputation points
0 answers

Blazor Server Side Custom CultureInfo getting overridden when using AzureSignalR

I have a Blazor interactive server side .net 8 application. I wanted to change the default DateTimeFormat across the entire application for certain Cultures, so I created some custom CultureInfo's shown here: public static List<CultureInfo>…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,810 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,562 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
140 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,810 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,562 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
140 questions
asked 2024-06-25T23:30:39.3+00:00
C-Jesse Bryan 0 Reputation points
commented 2024-09-05T08:30:11.1166667+00:00
JasonPan - MSFT 5,456 Reputation points Microsoft Vendor
0 answers

Blazor Server Side Custom CultureInfo getting overridden when using AzureSignalR

I have a Blazor interactive server side .net 8 application. I wanted to change the default DateTimeFormat across the entire application for certain Cultures, so I created some custom CultureInfo's shown here: public static List<CultureInfo>…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,810 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,562 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
140 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,810 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,562 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
140 questions
asked 2024-06-25T23:30:39.3+00:00
C-Jesse Bryan 0 Reputation points
commented 2024-09-05T08:30:11.1166667+00:00
JasonPan - MSFT 5,456 Reputation points Microsoft Vendor
1 answer

Will Blazor Server ever work with Windows Authentication?

Where I work all applications must use Windows Authentication. No exceptions. I am learning Blazor using .NET 8. I had hoped that I could use Windows Authentication with the Blazor Server App template. I am aware of the fact that Microsoft advises…

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,562 questions
asked 2024-09-04T15:16:15.0266667+00:00
Falanga, Rod, DOH 170 Reputation points
edited an answer 2024-09-05T07:29:48.3433333+00:00
JasonPan - MSFT 5,456 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to add IsPressed effect to a Control?

I would like to create a custom control which is inherited from Control. But Control doesn`t have the IsPressed DP as Button. I want to change the background of my control when it is pressed. However, I don't like to bring other properties which Button…

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,762 questions
asked 2024-09-04T00:33:54.49+00:00
William Liu 466 Reputation points
accepted 2024-09-05T07:12:12.8133333+00:00
William Liu 466 Reputation points