26,224 questions with .NET-related tags

Sort by: Updated
0 answers

.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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,661 questions
asked 2024-11-23T23:28:22.9733333+00:00
NickNN 40 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,645 questions
asked 2024-11-23T08:36:20.2266667+00:00
Dondon510 221 Reputation points
edited an answer 2024-11-23T22:49:09.2233333+00:00
AgaveJoe 28,621 Reputation points
3 answers One of the answers was accepted by the question author.

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?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,521 questions
asked 2024-11-21T04:47:07.1933333+00:00
Coreysan 1,756 Reputation points
edited an answer 2024-11-23T22:08:23.97+00:00
Albert Kallal 5,331 Reputation points
0 answers

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…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,230 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,661 questions
asked 2024-11-23T16:33:07.0266667+00:00
けんけんけーん 0 Reputation points
1 answer

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

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
108 questions
asked 2024-11-23T13:10:39.1333333+00:00
mohammad fayaz 0 Reputation points
answered 2024-11-23T13:11:53.1733333+00:00
mohammad fayaz 0 Reputation points
0 answers

cross-platform approach

I have his method void OnPinMarkerClicked(object turbine) { if (turbine != null) { #if ANDROID || IOS Shell.Current.GoToAsync($"{nameof(TurbineDetailPage)}", true, …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,661 questions
asked 2024-11-23T11:36:16.55+00:00
Eduardo Gomez Romero 965 Reputation points
edited the question 2024-11-23T12:18:33.5566667+00:00
Eduardo Gomez Romero 965 Reputation points
0 answers

Can I use gradientColor in GraphicsView?

how to use GradientColor in GraphicsView? canvas.FillColor can not use gradientColor

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,661 questions
asked 2024-11-23T11:09:52.6333333+00:00
mc 4,756 Reputation points
2 answers One of the answers was accepted by the question author.

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',…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
757 questions
Azure SQL Database
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,663 questions
asked 2024-11-22T14:57:18.8166667+00:00
Mike-E-angelo 521 Reputation points
answered 2024-11-23T11:03:25.42+00:00
Viorel 118.4K Reputation points
2 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,645 questions
asked 2024-11-21T11:56:42.16+00:00
iKingNinja 100 Reputation points
edited a comment 2024-11-23T09:34:38.73+00:00
iKingNinja 100 Reputation points
2 answers

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…

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,605 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
990 questions
asked 2024-11-21T23:25:55.95+00:00
JohnM 25 Reputation points
edited the question 2024-11-23T09:08:48.0433333+00:00
JohnM 25 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
757 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
757 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
asked 2024-06-01T01:35:11.9766667+00:00
Kamyab Faghih 65 Reputation points
commented 2024-11-23T07:26:02.4366667+00:00
Abelardo Rodriguez 0 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
757 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
757 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
asked 2024-06-01T01:35:11.9766667+00:00
Kamyab Faghih 65 Reputation points
commented 2024-11-23T07:26:02.4366667+00:00
Abelardo Rodriguez 0 Reputation points
1 answer

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,362 questions
Universal Windows Platform (UWP)
asked 2023-01-17T14:53:16.2+00:00
Imman Kumar 6 Reputation points
commented 2024-11-23T07:14:27.24+00:00
ManojKumar 0 Reputation points
1 answer

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"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,521 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,230 questions
asked 2024-11-22T10:46:08.7733333+00:00
Bernd Morgeneyer 0 Reputation points
commented 2024-11-23T01:00:30.4233333+00:00
SurferOnWww 3,286 Reputation points
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,661 questions
asked 2024-11-19T09:41:03.52+00:00
Kim Strasser 1,096 Reputation points
commented 2024-11-22T23:38:48.1333333+00:00
Graham McKechnie 421 Reputation points
1 answer

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':…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
asked 2024-11-22T16:12:04.1466667+00:00
Eric Brandt 25 Reputation points
edited a comment 2024-11-22T22:39:20.8966667+00:00
Eric Brandt 25 Reputation points
1 answer One of the answers was accepted by the question author.

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,661 questions
asked 2024-11-20T16:15:51.9433333+00:00
Eduardo Gomez Romero 965 Reputation points
accepted 2024-11-22T22:39:10.08+00:00
Eduardo Gomez Romero 965 Reputation points
0 answers

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" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,661 questions
asked 2024-11-22T10:58:06.6833333+00:00
Eduardo Gomez Romero 965 Reputation points
edited the question 2024-11-22T22:37:51.3633333+00:00
Eduardo Gomez Romero 965 Reputation points
2 answers

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,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
757 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,605 questions
asked 2024-11-21T22:06:20.5+00:00
Falanga, Rod, DOH 240 Reputation points
answered 2024-11-22T21:33:56.7033333+00:00
Bruce (SqlWork.com) 67,401 Reputation points
0 answers

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…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,548 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
asked 2024-11-22T21:29:20.3733333+00:00
edited the question 2024-11-22T21:29:55.92+00:00