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)"…
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.…
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…
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,
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…
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…
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…
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…
.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…
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> …
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…
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…
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…
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…
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…
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…
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…
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…
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…
![](https://techprofile.blob.core.windows.net/images/YykzxgI8WU-FS8_8mZ06MQ.png?8D9F28)
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…
![](https://techprofile.blob.core.windows.net/images/BShhHLCLI0-r4Esm5bkqDQ.png?8D8B44)