23,491 questions with .NET-related tags

Sort by: Updated
1 answer

MAUI apps with .NET 8 don't work on android

I'm trying to execute on android the demo app created by visual studio when you create a new MAUI .NET 8 project but I encountered different problems in debug and release mode. Visual Studio version : 17.9.5 When I try to run the app in debug it crashes…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-28T16:36:19.4466667+00:00
paro_ricc 0 Reputation points
commented 2024-03-29T08:06:08.61+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 33,461 Reputation points Microsoft Vendor
0 answers

How can I make overlapping shapes clickable

Hi, had this problem from time to time since I work with apps for kids. I want to make irraguated shapes that might overlap each others clickable like in this simple example image. How would you do that in .Net Maui? Hope the problem was understandable? …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-15T08:51:30.4566667+00:00
Magnus Wallon 0 Reputation points
commented 2024-03-29T08:02:04.2866667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,561 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to make System.Timers.Timer call async function synchronously when elapsed?

Hello! I am developing a telegram bot using .NET and I am having an issue. I have two timers that execute functions when elapsed. First timer re-posts a message (deletes a message and then posts identical copy, this is a workaround for the fact that…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 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,099 questions
asked 2024-03-28T10:27:40.66+00:00
Roman Kovalov 20 Reputation points
commented 2024-03-29T07:55:52.69+00:00
Roman Kovalov 20 Reputation points
1 answer

System.ArgumentException: 'Password not Supported: 'trust server certificate'.'

SqlConnection conn = new SqlConnection(@"Data Source=<SERVERNAME>;User ID=erp;Password=***********;Encrypt=True;Trust Server Certificate=True"); This is the line of code where i get the error, i have tried taking off the Trust Server…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,811 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,515 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,486 questions
asked 2024-03-27T15:36:45.3766667+00:00
Gonçalo Cruz 0 Reputation points
commented 2024-03-29T07:52:52.2966667+00:00
Jiale Xue - MSFT 24,911 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Maui for android pinch gesture container issue

Hello All. I use Ver 17.10 preview 1 and Android Ver 34. I try to add Pinch Gesture Container and I get an error message. As below: What I miss. Please any help. Thank you. //Error I get //MainPage.xaml : XamlC error : Failed to resolve assembly:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-27T19:11:29.31+00:00
Haviv Elbsz 1,846 Reputation points
commented 2024-03-29T07:46:15.5933333+00:00
Haviv Elbsz 1,846 Reputation points
0 answers

How to add custom file extension in Xamarin.Essentials file picker in all 3 platforms

I want to add custom file extension i.e. ".s37" in file picker filtering options. In UWP with the below code it is working fine but In android and ios not working private async Task SelectFileClicked(object UTType) { var…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,273 questions
asked 2024-03-21T10:31:05.3466667+00:00
Sk 41 Reputation points
commented 2024-03-29T07:20:01.6666667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,561 Reputation points Microsoft Vendor
0 answers

UnhandledException not fire in publish(realsed) mode as exe

Hi, Can you please check with sample code in the end of in this link: https://github.com/dotnet/maui/issues/21007 why UnhandledException not work in reeased mode after publish. 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.
2,748 questions
asked 2024-03-25T07:58:43.6333333+00:00
דני שטרית 2,486 Reputation points
commented 2024-03-29T07:13:50.82+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,561 Reputation points Microsoft Vendor
0 answers

Unclear exception captured

Hi, The exception captured is mentioning the error on 1st line of the event below. If I remark 1st line of the event, it will further mention the other parts that is after such "if part". I do not know why the exception is making the issue…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,221 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,099 questions
asked 2024-03-25T03:01:18.4666667+00:00
Peter_1985 2,466 Reputation points
commented 2024-03-29T07:04:18.2866667+00:00
Lan Huang-MSFT 24,461 Reputation points Microsoft Vendor
1 answer

Windows Insider SDK not working since 25936

I'm trying to build a simple .NET 6.0 app - Just install the 25936 insider preview SDK then create a blank WPF/.NET 6.0 app and add to the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 questions
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,648 questions
asked 2024-03-25T18:02:12.0833333+00:00
yoyodyne01 26 Reputation points
edited an answer 2024-03-29T07:03:52.1+00:00
Hui Liu-MSFT 31,116 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Net maui Net 8 how to create Borderless Entry, Editor and Picker handlers

Net maui Net 8 how to create Borderless Entry, Editor and Picker handlers (all platforms) samples.. can you help thanks..

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2023-11-06T01:40:28.9366667+00:00
Sami 846 Reputation points
commented 2024-03-29T07:02:09.39+00:00
Vaibhav Methuku 0 Reputation points
0 answers

Customize the close/minimize/maximize location

Hi, I tested n it not worked on this link: Can you please check with sample code in the end of in this link: https://github.com/dotnet/maui/issues/21007 I added this code in login page and MyRootPage and is not worked. // override the method of the page…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-26T09:29:51.33+00:00
דני שטרית 2,486 Reputation points
commented 2024-03-29T06:50:03.5833333+00:00
דני שטרית 2,486 Reputation points
0 answers

How to change the ios bundle id in vscode for maui

In Visual Studio, Xamarin Forms apps the Bundle Id is changed by opening the info.plist file and selecting the Application dropdown. The Bundle Id is on that page to change. I need to know how to do the same thing in vscode using the vscode maui…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-27T17:21:12.47+00:00
Tony Pitman 20 Reputation points
commented 2024-03-29T06:41:27.95+00:00
Jiale Du 0 Reputation points Microsoft Vendor
0 answers

Creating an IOS app visual studio error

Trying to create a project and when I click create it pops up with an error and I can't seem ti find an answer as to why. Any help please.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,273 questions
asked 2024-03-25T10:54:39.14+00:00
jf3000 0 Reputation points
commented 2024-03-29T06:40:06.1766667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,341 Reputation points Microsoft Vendor
0 answers

Upload & download an excel file from Onedrive using C# razor page

I am trying to upload & download an excel file to Onedrive using c# razor pages and have tried following code snippets, // Install Microsoft.Graph SDK // Install Microsoft.Identity.Client (MSAL) SDK // Authentication var…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,080 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
773 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,099 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,103 questions
asked 2024-03-28T11:24:47.2+00:00
Amit Patil 0 Reputation points
commented 2024-03-29T06:24:23.7633333+00:00
Tiny Wang-MSFT 1,571 Reputation points Microsoft Vendor
2 answers

How to send complex objects from one Razor page to another

I am working on an ASP.NET Core 6.0 Identity project. I want to pass an ApplicationUser object to the LoginWith2fs.cshtml page from the Login.cshtml page. The following is my code: Code in Login page: return RedirectToPage("./LoginWith2fa",…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,080 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,221 questions
asked 2024-03-28T21:01:48.6666667+00:00
Sherpa 161 Reputation points
edited an answer 2024-03-29T06:22:35.29+00:00
Brando Zhang-MSFT 2,636 Reputation points Microsoft Vendor
0 answers

ButtonRenderer iOS (PKPaymentButton) crashing for the NaN size error

I'm migrating XF app to MAUI. XF has Apple pay function and has the iOS native Apple pay button. XF app works fine. The below codes bring the error like below. I can tell it's just MAUI does not set the With and Height properly and throw this error.…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-01-17T04:30:14.6333333+00:00
Tom Honggyu 0 Reputation points
commented 2024-03-29T06:20:50.0733333+00:00
honggyu kim 0 Reputation points
1 answer

Deploying .NET 8 Docker images to Azure Container Instances

Hello, I'm having trouble to deploy an .NET 8 Web App Docker container image to an Azure Container Instance. This is my Dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER app WORKDIR /app EXPOSE 8080 EXPOSE 8081 FROM…

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
626 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,080 questions
asked 2024-03-29T00:49:54.0833333+00:00
Alejo Millo 0 Reputation points
answered 2024-03-29T06:10:16.41+00:00
Anveshreddy Nimmala 1,445 Reputation points Microsoft Vendor
0 answers

How to check if a razor component is called by WPF-Blazor hybrid or Blazor application?

As a razor component can be called in a WPF blazor hybrid or Blazor server/wasm project. Is it able to check if current running application is WPF or Blazor in the razor component? Thanks!

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,648 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,351 questions
asked 2024-03-29T06:07:40.87+00:00
William Liu 186 Reputation points
0 answers

About automatic suggestion and completion of XAML codes on Visual Studio Code

Hello I installed the Visual Studio Code application on my computer. I generally work on C#. But I have a problem. When developing a WPF project and working in XAML files, suggestions of XAML codes are not completed by the compiler in CS files as in C#…

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,648 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,099 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.
756 questions
asked 2024-03-24T20:52:48.8666667+00:00
fatih uyanık 80 Reputation points
edited the question 2024-03-29T06:00:16.0566667+00:00
fatih uyanık 80 Reputation points
0 answers

Fixing issues with AOT compilation

Hello! I have a .NET MAUI 8 app that I target for Android, WinUI and iOS. I'm using EF Core (context is in separate project) and SQLite DB that gets created on app launch. The issue is with the iOS version and I'm suspecting the issues is with AOT…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-28T04:42:41.8566667+00:00
MKinOZ 1 Reputation point
commented 2024-03-29T05:44:40.7666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 33,461 Reputation points Microsoft Vendor