23,897 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Custom ApiController Model Binding type conversion error

According to the Model Binding documentation: In an API controller that has the [ApiController] attribute, invalid model state results in an automatic HTTP 400 response. So when I send an invalid type in the request body (e.g. int instead of string),…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 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,253 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 60 Reputation points
accepted 2024-04-28T11:08:20.8766667+00:00
iKingNinja 60 Reputation points
0 answers

Touch keyboard changes layout when switching between WPF TextBox controls

Hi, I'm experiencing a strange behaviour in a simple WPF app running on a tablet (Surface Pro 7, Windows 10.0.19043). The UI has several TextBox controls that have InputScope=Number defined. <Window x:Class="SimpleTouchWPF.MainWindow" …

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,673 questions
asked 2024-04-28T10:37:17.14+00:00
Sergey Efremov 0 Reputation points
2 answers

Blazor web app net 8 rendermode auto authentication

I am confused on how to add authorization to my components. In the client part I am using AuthenticationStateProvider and in the server part ServerAuthenticationStateProvider. Segum I've been looking at the documentation and other examples. My blazor app…

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,391 questions
asked 2024-04-26T09:26:54.0033333+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
commented 2024-04-28T07:41:13.7466667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer

How to view/show image from file server path on button click

i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,256 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,253 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,506 Reputation points
commented 2024-04-28T07:04:40.8266667+00:00
Gani_tpt 1,506 Reputation points
0 answers

how to export function in dll to aot?

I created .net class library to build dll and want to publish native aot and I write function public static MyClass { public static int MyFun(int n) { return n*n; } } I publish it to native aot to win-x64 but in dll there is no function why?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,377 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,253 questions
asked 2024-04-23T02:04:43.3933333+00:00
mc 3,681 Reputation points
commented 2024-04-28T01:15:43.6533333+00:00
mc 3,681 Reputation points
0 answers

how do I uninstall Microsoft.NETCore.App 6.0.25 and Microsoft Microsoft.WindowsDesktop.App 6.0.25

I have remove .net using Add or Remove program but when I do dotnet --list-runtimes I still see and I am not sure how to uninstall them. Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.25…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 questions
asked 2024-04-27T21:26:07.1366667+00:00
David Ghoussoub 21 Reputation points
1 answer

Blazor Culture in the Route

Is it recommended to add the language (culture) in the route e.g. site.com/en/page-name or only page name is sufficient e.g. site.com/page-name? How to I change the culture to de-DE if you paste the URL like the following? mysite.com/de/home Thank…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 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,391 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
297 questions
asked 2024-04-26T18:27:26.8766667+00:00
Kuler Master 246 Reputation points
commented 2024-04-27T17:51:27.7266667+00:00
Kuler Master 246 Reputation points
0 answers

Keyboard overlapping entry control in .NET MAUI - .NET 8 (Android)

Does anyone know how can I implement the soft keyboard on Android .NET MAUI? I tried doing like it's said in the docs and in stack overflow forums, but nothing seemed to work. Whatever I do, my keyboard is overlapping the entries from the bottom of the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
asked 2024-04-27T15:02:02.76+00:00
ALEXANDRUSTEFAN CRACEA 0 Reputation points
0 answers

Visual Studio Designer Copy With Name

I created a new label. It came with "label1" name. I changed the name "label1" to "myLabel1". I'm copying this: "myLabel1" When I paste it comes as: "label1" It wasn't like this before. When I paste must…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 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,609 questions
asked 2024-04-27T05:37:43.91+00:00
Doğukan Topaloğlu 0 Reputation points
edited the question 2024-04-27T13:27:28.2033333+00:00
Doğukan Topaloğlu 0 Reputation points
0 answers

Direct API POST method to another URL

Good morning, afternoon or night!! Dear all, I will need to be "listening" to an Access device that will be sending a Json in the POST Method. To do this, I created a (simple) API to do this monitoring and respond with a True or False. Problem:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,377 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,253 questions
asked 2024-04-27T13:11:19.82+00:00
Marcelo Nogueira 20 Reputation points
2 answers One of the answers was accepted by the question author.

how do I find the working area of my uwp app in .net using C#

This is a simple question but I'm having a rough time finding an answer. What I want to find is the working area of my application. I'm working in Visual Studio 2022 and have created the basic project. Searches on the internet result in many answers…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,377 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 60 Reputation points
commented 2024-04-27T12:24:47.1166667+00:00
Joe Babb 60 Reputation points
1 answer

Customize the EmailConfirmation and 2FA token expiration in .NET 8.0

Is there a way to extend the 2FA and Email confirmation token expiration timespan with email in .NET 8.0? I am using the Microsoft.AspNetCore.Identity and Microsoft.AspNetCore.Authentication classes to use the 2FA with…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 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,253 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
297 questions
asked 2024-04-27T00:03:30.5266667+00:00
Francisco A. Henríquez N 0 Reputation points
answered 2024-04-27T11:48:44.14+00:00
AgaveJoe 26,201 Reputation points
0 answers

I've made an app I need a list of email addresses for internal and closed app testers to help me test my app for publishing from my google play console?

I've made an app I need a list of email addresses for internal and closed app testers to help me test my app for publishing from my google play console?

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,673 questions
asked 2024-04-27T10:20:24.1833333+00:00
Luke Ferguson 46 Reputation points
4 answers

How to copy big file 5g with task and within impersonation

Hi, How to copy big file 5G from source to destination using impersonation: WindowsIdentity.RunImpersonated( ImpersonationHelper.Token Thanks,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,377 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
asked 2024-04-18T08:06:36.18+00:00
Dani_S 2,726 Reputation points
commented 2024-04-27T09:00:28.5566667+00:00
Dani_S 2,726 Reputation points
0 answers

Microsoft.Maui.Essentials packages

I have an razor class library and want to use Microsoft maui SecureStorage. In visual studio , NuGet interface, when select the latest Microsoft.Maui.Essentials packages, get the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,377 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,391 questions
asked 2024-04-27T08:45:34.1866667+00:00
Qun Shen 40 Reputation points
0 answers

Column in grid overlapping when the data is updated at runtime

I am using a custom control with a frame(contains an entry and an icon in a horizontal grid) and a collection view in stack layout with vertical orientation as attached below. I am facing an issue wherein when a search text is typed matching lowest…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
asked 2024-04-24T13:17:59.2633333+00:00
Srilekha Chowdary 20 Reputation points
commented 2024-04-27T07:17:35.6033333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
0 answers

Selection using Selection Rectangle

Can anyone please tell me how to make this kind of behaviour in our own WPF app. Right now i am making a File explorer kind of behaviour using the WPF datagrid. Can someone please help me with the logic or post some code. Here if we see the rows are…

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.
4,748 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,673 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,253 questions
asked 2024-04-24T04:34:37.6333333+00:00
Amit 20 Reputation points
commented 2024-04-27T05:11:46.4666667+00:00
Amit 20 Reputation points
0 answers

How do I add a CAPTCHA to a web site written with ASP.NET/VB

A bot seems to be using my web site to send out emails via AmazonSES. I want to add a CAPTCHA to it to prevent this. I came across https://stackoverflow.com/questions/71515717/how-to-add-captcha-in-asp-net-project which appears to be what I want, but…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,256 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,572 questions
asked 2024-04-27T05:08:50.44+00:00
Robert Barnes 71 Reputation points
1 answer

Change android alert dialog background and text color from code in .NET8 MAUI

I would like to change the default white background color on the android (API 34) alert dialogs (like the one what appers when the user taps on a normal Picker). Its important that I would not like to use the styles.xml solution, I need a c# code that…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
asked 2024-04-26T13:17:25.6733333+00:00
Sztárcsevics Gábor 0 Reputation points
answered 2024-04-27T03:50:10.3666667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
0 answers

how to install APP in android in maui?

I will download new version update and install it in my android device.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
asked 2024-04-26T01:06:26.5333333+00:00
mc 3,681 Reputation points
commented 2024-04-27T03:04:55.41+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor