23,950 questions with .NET-related tags

Sort by: Updated
0 answers

.NET 6 In-process worker model

I have Azure Function Apps running on .NET 6 (LTS) In-process worker model. There is a service health advisory released from Microsoft that they will end the support of .NET 6 on Azure Function from 12th November 2024 onwards. Also,there is one more…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,286 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,389 questions
asked 2024-05-02T05:25:18.2633333+00:00
Chakraborty, Shubham 0 Reputation points
0 answers

.NET MAUI Community Toolkit Popup page is breaking

I am using the .NET Community toolkit for the Popup page. When we try to load the popup page the entire UI is breaking on iOS platform but it is working fine on Android platform. On the popup page I am using listView. Screenshot: I am using below codes…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 questions
asked 2024-04-29T14:15:29.71+00:00
Sreejith Sreenivasan 691 Reputation points
commented 2024-05-02T05:05:49.04+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,421 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Upgrading to .Net 8 results in errors when referenced by a project targeting '.NetFramework=4.61'

I am using the upgrade assistant to upgrade the framework, but it's resulting in many errors. Is there any documentation available that explains step-by-step how to fix the errors that occur during the framework upgrade process?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,389 questions
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
3 questions
asked 2024-04-29T22:40:37.7233333+00:00
Ziya Ganjili 20 Reputation points
commented 2024-05-02T05:05:13.11+00:00
Pradeep M 390 Reputation points Microsoft Vendor
1 answer

how to fix this?

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference.…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,616 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,122 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
93 questions
asked 2024-05-01T10:26:25.1133333+00:00
XareXD 0 Reputation points
answered 2024-05-02T03:05:07.5133333+00:00
Anna Xiu-MSFT 25,796 Reputation points Microsoft Vendor
1 answer

The type Prism not found in MAUI (prism.form dll not found in MAUI)

public partial class App { private static readonly string StartPage = DebugAppConfig.StartupPage; public App(IPlatformInitializer initializer = null) : base(initializer) { } private Maybe<Uri> LaunchUri { get; set; } =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 questions
asked 2024-05-01T15:07:58.3333333+00:00
Debasis Patra 0 Reputation points
answered 2024-05-02T02:57:29.0133333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,576 Reputation points Microsoft Vendor
1 answer

How to validate textbox with empty field in wpf forms

Hi Team I have these two fields i want to validate, does anyone knows how to achieve this in wpf on the forms? The bottom seal and TopSeal fields, if empty it must prompt a window dialog message.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,831 questions
asked 2024-04-24T11:21:49.9533333+00:00
Gcobani Mkontwana 0 Reputation points
commented 2024-05-02T02:27:49.9333333+00:00
Hui Liu-MSFT 38,331 Reputation points Microsoft Vendor
0 answers

Migrate SQLite db from Xamarin Android to NET Maui app?

I am having issue with one of my app migration to .NET MAUI. When I migrate SQLlite databse is not being accessed. in XAMARIN database was being accessed as…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 questions
asked 2024-05-02T02:26:31.5566667+00:00
BKS 20 Reputation points
1 answer

"Service Broker External Activator Service" .NET Framework depency

Hi, Currently I have implemented service broker external activator in sql database for change track. Now my client is upgrading .net farmework from .net 4.6 to .net 4.8 and sql server from 2017 to 2022. As "Servcie Broker External Activator…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,389 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,742 questions
asked 2024-04-30T07:08:47.03+00:00
Waqar Rauf Butt 0 Reputation points
edited the question 2024-05-02T01:17:51.3233333+00:00
CosmogHong-MSFT 23,246 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how to use signalr in minimal api?

can not use AddSignalR and I can use AddSignalRCore but there will be error. I created the ASP.NET Core Web API (native aot).

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
asked 2024-04-29T13:33:56.15+00:00
mc 3,701 Reputation points
accepted 2024-05-02T01:10:14.1633333+00:00
mc 3,701 Reputation points
1 answer

Having issues deploying IOS project on iphone

Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.5.5 Xamrin 17.5.0.173 & Xamarin.IOS -16.2.0.5 Getting these errors : Severity Code Description Project File Line Suppression State Error /usr/bin/codesign exited with code…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2023-08-01T04:45:43.94+00:00
Shraddha Chauhan 10 Reputation points
commented 2024-05-02T00:40:55.2533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,421 Reputation points Microsoft Vendor
0 answers

Data Models

I have two Models, CustomerModel and CustomerInfo neither one relates to the other except that the Model(s) have fields in the same table and I wanted to separate the fields in the Models because they are used in different views of my .Net Maui…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 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,268 questions
asked 2024-05-01T21:46:42.2566667+00:00
Tom Meier 80 Reputation points
0 answers

ASP.NET button control not able to make disabling in panel control using c#

i am trying to make disable button controls through panels. In the panel, i am using textbox, label, fileupload,gridview and button controls. i am able to disable only textbox, label and gridview. but, i am unable to make disable fileupload and button…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 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,268 questions
asked 2024-04-30T18:21:01.5633333+00:00
Gani_tpt 1,546 Reputation points
commented 2024-05-01T21:44:38.82+00:00
Albert Kallal 4,651 Reputation points
1 answer

Blazor Multitenant Configuration with Azure App Configuration Service

I have read the following article, but no where in this document does it talk about how this can be instantiated within your program.cs or startup using…

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
209 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,395 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,900 questions
asked 2024-05-01T17:47:48.67+00:00
Tom McCartan 5 Reputation points
answered 2024-05-01T21:11:00.2966667+00:00
Bruce (SqlWork.com) 56,531 Reputation points
0 answers

How do I draw anti-aliased text in a ListBox with DrawMode set to OwnerDrawFixed?

I have a ListBox on my form with its DrawMode property set to OwnerDrawFixed. How can I get the text I draw to be antialiased? I've already set the TextRenderingHint property of the Graphics object to AntiAliasGridFit but it's not drawn…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,831 questions
asked 2024-05-01T18:51:36.1366667+00:00
DaveF 21 Reputation points
commented 2024-05-01T19:30:32.1166667+00:00
Viorel 112.4K Reputation points
1 answer One of the answers was accepted by the question author.

How to set up role based authentication in a Blazor Server app in Microsoft Entra ID

Hi, I have a Blazor Server app and I want to use role based authorization in Microsoft Entra ID. I created role for it and I added permission to it: Program.cs builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme) …

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,395 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,535 questions
asked 2024-04-29T07:39:18.5833333+00:00
71185955 40 Reputation points
accepted 2024-05-01T18:22:08.4166667+00:00
71185955 40 Reputation points
1 answer

*System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing

Hi, Why my Polly Timeout handler not working? I still getting: "System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,178 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
asked 2023-11-07T09:14:10.64+00:00
winanjaya 146 Reputation points
answered 2024-05-01T17:24:47.3066667+00:00
William Saylor 0 Reputation points
0 answers

Adding command to code behinad

Hi, I have main page and i want to add i used code behaind dor all the menu. I want to add EulaCommand , how is done ? Please provide code, i'm using net 8, vs 17.8.4 `<Label Text="EULA" HorizontalOptions="Start"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 questions
asked 2024-05-01T12:48:31.42+00:00
Dani_S 2,726 Reputation points
commented 2024-05-01T16:20:56.2466667+00:00
Lloyd Sheen 1,381 Reputation points
4 answers

How to copy big file 5g with task and within impersonation

Hi, How to copy big file 5G from source to destination using impersonation: WindowsIdentity.RunImpersonated( ImpersonationHelper.Token Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,389 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 questions
asked 2024-04-18T08:06:36.18+00:00
Dani_S 2,726 Reputation points
edited a comment 2024-05-01T16:02:01.7033333+00:00
Dani_S 2,726 Reputation points
0 answers

MAUI: Background color is not updating when changing the mode (iOS)

When changing the mode I am updating the background color and text color of the UI via code. It was working fine on Android side but when I check it on iOS, the Listview background color is not updating properly. Expected Output of light and dark mode is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 questions
asked 2024-04-29T13:42:50.5933333+00:00
Sreejith Sreenivasan 691 Reputation points
commented 2024-05-01T15:53:25.6866667+00:00
Aleena George 20 Reputation points
2 answers

Community toolkit install is not working

I have had community toolkit installed on this project for quite a while and now it gives the following error when I am trying to update: Severity Code Description Project File Line Suppression State Error NU1605 Warning As Error: Detected package…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,890 questions
asked 2024-04-17T13:38:10.5+00:00
Lloyd Sheen 1,381 Reputation points
commented 2024-05-01T15:13:02.1433333+00:00
Fernando Angelieri 0 Reputation points