26,189 questions with .NET-related tags

Sort by: Updated
0 answers

CollectionView API image

For some reason my colletionView doesn't want to show the images <CollectionView Grid.Row="2" Margin="20" HorizontalOptions="CenterAndExpand" ItemsSource="{x:Binding…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-20T12:37:44.04+00:00
Eduardo Gomez Romero 905 Reputation points
edited a comment 2024-11-21T10:49:02.5733333+00:00
Eduardo Gomez Romero 905 Reputation points
0 answers

MAUI Blazor hybrid - Windows MSIX packaging - Unable to set start menu folder

I am new to MSIX packaging so if this is a naïve question I apologise. I have tried to set the start menu folder of the application shortcut for my latest MAUI-Blazor hybrid app as part of the MSIX package. I have followed the guidance in Group…

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,602 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-21T10:43:10.63+00:00
Valentine, Jack 0 Reputation points
0 answers

Can't deploy Visual Studio Net 9.0 project with Android

While deploying a Visual Studio Net 9.0 project, it occasionally gives a warning: This project is not suitable for Android, check for errors. After deploying the project with Windows, it can be deployed on Android. This situation is repeated from time to…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,221 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-21T08:43:20.9+00:00
Huseyin Unsal 0 Reputation points
commented 2024-11-21T10:28:08.72+00:00
Anna Xiu-MSFT 29,926 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

34.0 is not a valid TargetPlatformVersion for Android. Valid versions include: 35.0

I changed the Target framework in my Android project properties from .NET 8.0 to .NET 9.0. But then I get this error: 34.0 is not a valid TargetPlatformVersion for Android. Valid versions include: 35.0 Is it necessary to change the Target OS version…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-19T09:41:03.52+00:00
Kim Strasser 1,076 Reputation points
accepted 2024-11-21T09:43:57.5366667+00:00
Kim Strasser 1,076 Reputation points
1 answer One of the answers was accepted by the question author.

I get the error 'Platform' does not contain a definition for 'Init' in Microsoft.Maui.ApplicationModel.Platform.Init(this, bundle);

I get the following error after updating my NuGet packages: 'Platform' does not contain a definition for 'Init' Activity1.cs: using Android; using Android.App; using Android.Content.PM; using Android.OS; using Android.Views; using Android.Util; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-15T14:57:17.6533333+00:00
Kim Strasser 1,076 Reputation points
accepted 2024-11-21T09:43:36.38+00:00
Kim Strasser 1,076 Reputation points
0 answers

how to mitigate many .NET CVEs at once

I need a reliable way to mitigate many .NET CVEs which I have identified in one go. How can I best do this

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 questions
asked 2024-11-21T09:27:58.8266667+00:00
Lwazi Qamata 0 Reputation points
0 answers

String is converted into invalid UTF-8 characters when passed into model from controller

Controller: DataTable dtt = new CommonModel().ManualQuerySelect("select isnull(ReportTitle,'Journal Voucher') from gen_VoucherTypes where VoucherType = 6 and LogSourceID = 0", clsCommon.AccountsnewConnectionString).Tables[0]; Model: public…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,519 questions
asked 2024-11-21T07:57:29.0866667+00:00
Huzaifa Sajid 0 Reputation points
commented 2024-11-21T09:25:24.5633333+00:00
Lan Huang-MSFT 29,911 Reputation points Microsoft Vendor
0 answers

Problem with the new Edge-to-Edge requirement in Android 15 when using net9.0-android35

Before modifying my app to support edge-to-edge, I thought I’d first try with one of my sample apps on my GitHub page. The existing sample app didn’t have a fragment with a RecyclerView, so I added a new fragment containing a RecyclerView to test the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-18T02:42:04.89+00:00
Graham McKechnie 421 Reputation points
commented 2024-11-21T09:02:14.8666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,481 Reputation points Microsoft Vendor
1 answer

How to change tabbar style (font and size and ...)

i want change the style of tabbar menu item font and size and color how to do it ? AppShell <TabBar > <Tab Title="پروفایل" > <Tab.Icon> <FontImageSource FontFamily="MDReg"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,636 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
816 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,636 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
816 questions
asked 2024-11-14T05:09:08.0233333+00:00
Mahdi Elahi 31 Reputation points
answered 2024-11-21T08:59:23.61+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,481 Reputation points Microsoft Vendor
1 answer

How to change tabbar style (font and size and ...)

i want change the style of tabbar menu item font and size and color how to do it ? AppShell <TabBar > <Tab Title="پروفایل" > <Tab.Icon> <FontImageSource FontFamily="MDReg"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,636 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
816 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,636 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
816 questions
asked 2024-11-14T05:09:08.0233333+00:00
Mahdi Elahi 31 Reputation points
answered 2024-11-21T08:59:23.61+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,481 Reputation points Microsoft Vendor
0 answers

Slow startup time and collection

I do not know what Microsoft did in .net 9, I am experiencing a weird error, where even if I put a startup time of 2 seconds, and it takes 13 seconds this is my startup page public partial class StartupPageViewModel : ObservableObject { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-20T16:15:51.9433333+00:00
Eduardo Gomez Romero 905 Reputation points
commented 2024-11-21T08:58:37.64+00:00
Eduardo Gomez Romero 905 Reputation points
1 answer

combining shell with navigation with window navigation

As you already know, .net 9 is out and with that we have a tithe bar for windows I have my appshell, that enable me to go page to page <!-- Flyout for Desktop --> <FlyoutItem Title="{x:Static rex:AppResource.HomePage}" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-20T12:22:10.5+00:00
Eduardo Gomez Romero 905 Reputation points
commented 2024-11-21T08:54:41.0733333+00:00
Eduardo Gomez Romero 905 Reputation points
0 answers

first page to be a windows

Hello In my app I have am MainPage and a MainWindow What I want to do is that if I'm on desktop, the first page to be MainWindow, if not to be the mainPage public partial class App : Application { public App() { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-19T20:35:22.4833333+00:00
Eduardo Gomez Romero 905 Reputation points
commented 2024-11-21T08:37:09.7433333+00:00
Eduardo Gomez Romero 905 Reputation points
1 answer

Double tapping Editor control locks app when deployed to iOS

Double tapping the Editor locks the app when deployed to iOS. This occurs for both net 8 and 9. Entry control works well and does not lock up the app. I added Editor and Entry controls to the demo Maui app as below. Am I missing a setting? Any known…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
816 questions
asked 2024-11-14T07:29:50.46+00:00
TazKing 85 Reputation points
answered 2024-11-21T08:20:58.96+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 32,781 Reputation points Microsoft Vendor
1 answer

Configure AD Groups to use with Roles in .NET Core (C# 8) MVC

I am trying to use policy based authorisation in an MVC app in C# .NET CORE (8) , using membership of OnPrem AD groups to assign roles . This is a snippet of the appsettings.json telling the system I want to grant the Admin role to members of AD…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,636 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,049 questions
asked 2024-11-20T15:33:49.45+00:00
Richard Scannell 361 Reputation points
answered 2024-11-21T08:10:00.61+00:00
Richard Scannell 361 Reputation points
1 answer One of the answers was accepted by the question author.

How to handle nullreference exception in "NM_CUSTOMDRAW" notification message?

Hello, I have a windows forms application having a user control . The user control has a Treeview named as TriView. TriView's drawmode is set to OwnerDrawAll. The form is visible all the time. When I run my application and switch between the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 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,049 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,742 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,172 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 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,049 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,742 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,172 questions
asked 2022-06-28T12:23:02.77+00:00
Rashmi Gupta 81 Reputation points
commented 2024-11-21T07:58:03.1433333+00:00
Ruri Nanase 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to handle nullreference exception in "NM_CUSTOMDRAW" notification message?

Hello, I have a windows forms application having a user control . The user control has a Treeview named as TriView. TriView's drawmode is set to OwnerDrawAll. The form is visible all the time. When I run my application and switch between the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 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,049 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,742 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,172 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,903 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,943 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,049 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,742 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,172 questions
asked 2022-06-28T12:23:02.77+00:00
Rashmi Gupta 81 Reputation points
commented 2024-11-21T07:58:03.1433333+00:00
Ruri Nanase 0 Reputation points
3 answers One of the answers was accepted by the question author.

The problem lies in SeedData

I am following the article written by Rick Anderson about ASP.NET Core MVC web development with controllers and views. I face a fatal problem in the fifth part, working with a database. specifically the following statement in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,636 questions
asked 2024-11-20T01:48:47.58+00:00
Abdou/Fawzy Aboyoussef 0 Reputation points
commented 2024-11-21T06:36:32.5666667+00:00
Abdou/Fawzy Aboyoussef 0 Reputation points
0 answers

The program '[20628] MauiBlazorWeb.Maui.exe' has exited with code 2147958009 (0x80073cf9).

My code was successfully launching desktop app, android app, but yesterday onwards[i doubt after windows update] this is not working... and its giving me this error The program '[20628] MauiBlazorWeb.Maui.exe' has exited with code 2147958009…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,648 questions
asked 2024-11-20T12:50:31.1866667+00:00
Jose KJ 0 Reputation points
commented 2024-11-21T06:33:56.39+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,481 Reputation points Microsoft Vendor
0 answers

Blazor Tutorial is "out of date"?

This question has been deleted. This question has been deleted. This question has been deleted.

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
9 questions
asked 2024-11-19T16:42:14.25+00:00
Compton MacKenzie 0 Reputation points
commented 2024-11-21T06:13:17.33+00:00
Pradeep M 3,935 Reputation points Microsoft Vendor