24,748 questions with .NET-related tags

Sort by: Updated
0 answers

DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded.

Hi If you allow, I would like to ask a question. I want to replace the data I brought with the "public async Task<IActionResult> WriterEditProfile()" method with the "public IActionResult WriterEditProfile(AppUser p)"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,336 questions
asked 2024-07-01T13:36:58.2366667+00:00
Yalçın Mete 60 Reputation points
edited a comment 2024-07-02T11:00:19.7266667+00:00
Yalçın Mete 60 Reputation points
0 answers

Whitescreen when reopen a MAUI app from background when app was first opened from push message

Hi, we have a maui blazor app and there is a strange behavior on Android. The app receives push message from firebase. When app is completely closed (not in background) and an incoming push message is clicked the app opens and handles the push message.…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
290 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
259 questions
asked 2024-07-02T10:53:40.18+00:00
alask 0 Reputation points
edited the question 2024-07-02T10:56:43.2633333+00:00
alask 0 Reputation points
1 answer

cannot open program.cs file using "code Program.cs"

When attempting to complete Step 1 of "Add the code for your text to speech application" of the Create a single-shot recognition speech to text application exercise, I have manually typed-in as well as copied/pasted in the following: code…

.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
9 questions
asked 2024-06-28T21:52:09.2066667+00:00
James Hackney 61 Reputation points
edited the question 2024-07-02T10:52:11.67+00:00
Pradeep M 1,385 Reputation points Microsoft Vendor
1 answer

Problem with rewrite the Backgrounding event

Hi, In continue to https://learn.microsoft.com/en-us/answers/questions/1690214/register-close-button-in-mac All my work in pages stop working. Working with http + tasks. it fire the close button event and close the app. Thanks in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-06-18T06:41:00.6+00:00
Dani_S 3,186 Reputation points
commented 2024-07-02T10:51:15.5166667+00:00
Dani_S 3,186 Reputation points
1 answer

How to find where .pkg file store the installed app

I Use the following command to create a .pkg: .NET CLICopy dotnet publish -f net8.0-maccatalyst -c Release Publishing builds the app, and then copies the .app to the bin/Release/net8.0-maccatalyst/ folder or the .pkg to the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-06-25T09:23:23.6533333+00:00
Dani_S 3,186 Reputation points
commented 2024-07-02T10:49:11.4333333+00:00
Dani_S 3,186 Reputation points
0 answers

Maui for Android OCR project Using latest maui and android versions

Hello All. I created new maui project based on an Ocr for Android example. And it start build ok but after a while it throw this error. Please any help to fix this. Thank you. Build…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-07-02T10:46:36.0166667+00:00
Haviv Elbsz 2,006 Reputation points
1 answer

Only one app running in MAC?

Hi, Does this code work on MAC, only one app running ? Thanks, public partial class App : Application { private static Mutex mutex = new Mutex(true, Assembly.GetEntryAssembly().GetName().Name); public App() { if…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-06-26T12:02:14.2933333+00:00
Dani_S 3,186 Reputation points
commented 2024-07-02T10:42:32.45+00:00
Dani_S 3,186 Reputation points
0 answers

How to make UWP MediaElement to be loop mode when casting to a TV?

I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…

Universal Windows Platform (UWP)
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,705 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,564 questions
asked 2024-06-28T08:17:01.82+00:00
Tom JD1 Xue 21 Reputation points
edited a comment 2024-07-02T10:19:28.7966667+00:00
Tom JD1 Xue 21 Reputation points
0 answers

.NET MAUI Google maps return an error when following the detailed guide to setup.

I have created an new .Net Maui 8.0 application. From there I have faithfully followed the setup at "https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/map?view=net-maui-8.0#setup" After every step I have built the project…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-07-02T09:48:31.2233333+00:00
Paul Sumner 0 Reputation points
1 answer

carry forward total of each column

Hello This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="A.aspx.cs" Inherits="Default3" %> <html> <head runat="server"> <title>demo</title> …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,394 questions
asked 2024-07-01T13:28:54.6333333+00:00
RAVI 1,036 Reputation points
commented 2024-07-02T09:47:19.5866667+00:00
RAVI 1,036 Reputation points
0 answers

Targetting xaml for multi platform

I have a xaml that includes android specific library as assembly and it needs to compiled only for android target platforms. I tried by putting it in platforms folder but it did not work . My assembly inclusion is present in xaml itself like the below…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-07-01T11:57:57.6166667+00:00
Manickam, Suraj 280 Reputation points
edited a comment 2024-07-02T09:35:37.5166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,281 Reputation points Microsoft Vendor
0 answers

using HWND in C++ CLR build error (.NET core 8)

I have a C++ CLR that contains windows forms on it, the project is a C++ CLR DLL, somewhat related to this: https://learn.microsoft.com/en-us/answers/questions/1745336/porting-c-clr-net-framework-winform-to-net-8 however, when I declare a variable for…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,566 questions
asked 2024-07-02T09:32:16.24+00:00
cebuhax0r 46 Reputation points
0 answers

Dirty log for font

Hi, I get error for in the log, bu app work as expected. Where this error come from? Thanks, 2024-06-30 13:47:22,492 [1] ERROR Microsoft.Maui.FontManager - Error loading font 'Assets/Fonts/Arial.ttf'. System.ArgumentException: The parameter is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-07-02T09:25:28.8333333+00:00
Dani_S 3,186 Reputation points
1 answer

Maui MediaPicker.Default.CapturePhotoAsync windows doesn't display camera

When I run the app is the VS 2022 on Windows 10 the MediaPicker.Default.CapturePhotoAsync method displays the camera and allows me to capture a photo. When the app is published and installed on Windows 10 the MediaPicker.Default.CapturePhotoAsync method…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,045 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-04-30T16:15:24.1733333+00:00
Grant Schaffer 25 Reputation points
edited a comment 2024-07-02T09:04:09.67+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 Reputation points Microsoft Vendor
2 answers

How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?

I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…

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,705 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,493 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,564 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,608 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-07-02T08:58:37.5966667+00:00
Hongrui Yu-MSFT 780 Reputation points Microsoft Vendor
2 answers

On remote desktop machine (Windows 11), the DataGrid (WPF C# application .Net Framework 4.7.2) event is throwing System.Reflection.TargetInvocationException.

The DataGrid event is giving the exception"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Added item does not appear at given index '4'. " while…

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,705 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,564 questions
asked 2024-07-01T14:03:37.68+00:00
Sharayu Mahadeorao P 0 Reputation points
answered 2024-07-02T08:29:44.59+00:00
Hongrui Yu-MSFT 780 Reputation points Microsoft Vendor
0 answers

ASP Net Core 8.0-A potentially dangerous Request.QueryString value was detected from the client

Hi, I hit the issue "A potentially dangerous Request.QueryString value was detected from the client (filter="...dList eq '<bZFZ0B4I...")" . My project is netcore 8.0,and it's stand-alone executable. I found that the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,336 questions
asked 2024-07-02T08:15:51.9333333+00:00
Liangjun Hu 0 Reputation points Microsoft Employee
1 answer

can not use UIKit or others in .net ios Bindings?

I created ios Binding project. and want to compile .a file to .dll there is ApiDefinition and StructsAndEnums.cs but both of them can not use ios UIImage NativeHandle Export Verify and all of it. CGSize Static can not use too. I can not use this…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,134 questions
asked 2024-07-01T10:46:09.4966667+00:00
mc 4,006 Reputation points
commented 2024-07-02T07:52:47.3033333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 Reputation points Microsoft Vendor
1 answer

Issue with an earlier well functioning AppService

Hello Team, I would like to ask your help in a technical issue. I am creating an AI chatbot flaskbased application , where using mostly open source libraries. For semantic search and ranking I am using FlashRank library…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,336 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,394 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,258 questions
asked 2024-06-21T09:00:34.67+00:00
Viktor Banai 0 Reputation points
commented 2024-07-02T07:45:53.9933333+00:00
JasonPan - MSFT 4,791 Reputation points Microsoft Vendor
1 answer

error format of the initialization string does not conform to specification starting at index 0

I am programming an ASP.NET Core project with Razor pages, which is database first. After executing the Scaffold-DbContext command in Power Console Manager, the classes and context were created correctly and after running the program, the data was read…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,336 questions
asked 2024-07-02T02:55:47.64+00:00
Ashkan 1 Reputation point
edited an answer 2024-07-02T07:01:33.37+00:00
SurferOnWww 2,326 Reputation points