.NET MAUI app close when Bluetooth keyboard is connected or disconnect
Hi, I have an app that closes when I connect or disconnect the Bluetooth keyboard to the device. Then I launch it again and it works and the keyboard can be used, it seems that it only has this behavior on changes (if it is connected and I turn off the…
How to create an API controller that will handles multipart/data
Hello, I use ASP NETCore 6, How to create an API controller that will handles multipart/data with the following keys: tifFile --> File hostName --> string accessCode --> string I tried the following using postman, it goes there but I don't have…
How to format text in <asp:TextBox>
Is there any way to make words bold, when using asp:TextBox? I know I can use html markup with asp:Label but I'm still hoping I can figure something out for the textbox. Can it be done?
I would like to know how to prevent the summary page from appearing when I create a MAUI project in VisualStudio2022.
I am using VisualStudio2022Version 17.12.1 on Windows11 23H2. The following screen always appears when I create a new project in the NetMAUI application. It only appears when I create a new one. Also, I don't know how to reopen it once it is closed. I…
how to call store procedure using EF
created parametrized custom data store procedure in using SQL server now I want to call my store procedure using .NET entity framework and get data from it but unable to get data due to various errors
cross-platform approach
I have his method void OnPinMarkerClicked(object turbine) { if (turbine != null) { #if ANDROID || IOS Shell.Current.GoToAsync($"{nameof(TurbineDetailPage)}", true, …
Can I use gradientColor in GraphicsView?
how to use GradientColor in GraphicsView? canvas.FillColor can not use gradientColor
Maximum Length Exceeded
I am seeing the following error in my logs: EntityFramework.Exceptions.Common.MaxLengthExceededException: Maximum length exceeded ---> Microsoft.Data.SqlClient.SqlException (0x80131904): String or binary data would be truncated in table 'dbo.Profile',…
Customize antiforgery failure response
I want to customize the response received by the client when CSRF token validation fails. I was looking at ASP.NET Core's source code and found the middleware I think is supposed to handle CSRF token validation. By looking at it I found that it sets an…
Blazor WASM & Azure Static Web Apps, routes not working
I have a blazor WASM static web app, the "/api/" & "/.auth/" urls that should be handled on the server side by Azure seem to get pick up by the blazor WASM routing. the "sorry, theirs nothing..." here is coming from…
Unable to create a DbContext' Error when Using EF Core in .NET 8 ClassLibrary Project
Hello everyone, I've developed a ClassLibrary project using .NET 8 and C#, and I've utilized EF Core 8 in it. I've defined my own models and context within it. However, when I attempt to use the add-migration command, I encounter this error: "Unable…
Unable to create a DbContext' Error when Using EF Core in .NET 8 ClassLibrary Project
Hello everyone, I've developed a ClassLibrary project using .NET 8 and C#, and I've utilized EF Core 8 in it. I've defined my own models and context within it. However, when I attempt to use the add-migration command, I encounter this error: "Unable…
RenderTargetBitmap renders low quality image of the UIElement
Hi, I have a Xamarin.Forms application deployed in UWP, in which I have added Xamarin.Forms.Image to the page and trying to convert the UIElement to image using RenderTargetBitmap, the converted image quality is reduced. Again I have added the converted…
Publish: Do not copy files in folder App_Data
My ASP.Net Application has been developped several years ago with Visual Studio Express 2013 for Web. Now I edited it with Visual Studio 2022 and published it using the Publish... command. Here I checked the "Do not copy AppData folder"…
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…
gRPC connection error: "Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionExact while unable to establish HTTP/2 connection."
Hello! Can you suggest what might be the source (And remedy) for this error that occurs on certain PCs in our organization, but not others? System.Exception: Unable to establish connection because Rpc error 'Internal':…
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 { …
search bar in shell behavior
So, I need to modify, my behavior on desktop I have the shell, with the Seach bar <Window x:Class="METROWIND.Views.MainWindow" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …
Is using Microsoft Azure Managed Identities the only way of using EF Core?
I am rewriting an old ASP.NET WebForms application, into a server-side Blazor application using .NET 8. And I'm also going to use Entity Framework Core 8. I've been following along in these two Microsoft Learn courses DbContext Lifetime, Configuration,…
packageCatalog.PackageUninstalling event is not triggering when a Package is deleted
Hello, how are you? I'm having a problem with the packageCatalog.PackageUninstalling event. When uninstalling a package from MS Store it is expected to trigger the event packageUninstalling but it does not trigger. I've tested with…