23,489 questions with .NET-related tags

Sort by: Updated
2 answers

show financial year from date and to date

Hello I have two requriements 1) Current financial year Is Apr-2023 TO Mar-2024 In asp.net dropdownlist it has to show previous 3 years financial format as below for example on pageload Apr-2023 TO Mar-2024 Apr-2022 TO Mar-2023 Apr-2021 TO Mar-2022 …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,220 questions
asked 2024-03-28T09:44:11.2633333+00:00
RAVI 776 Reputation points
answered 2024-03-29T03:52:27.9733333+00:00
Lan Huang-MSFT 24,461 Reputation points Microsoft Vendor
0 answers

Dotnet Maui Release build is very slow, about 25 minutes

I am trying to build my app in release, but is very slow to complete...abount 25 minutes...the process freeze in the log commented bellow. What I can do to build mor faster and improve the time? MacOs 14 - Sonoma <PackageReference…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-29T03:41:50.4866667+00:00
Rafael Sacomani 0 Reputation points
2 answers

How to send complex objects from one Razor page to another

I am working on an ASP.NET Core 6.0 Identity project. I want to pass an ApplicationUser object to the LoginWith2fs.cshtml page from the Login.cshtml page. The following is my code: Code in Login page: return RedirectToPage("./LoginWith2fa",…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,079 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,220 questions
asked 2024-03-28T21:01:48.6666667+00:00
Sherpa 161 Reputation points
answered 2024-03-29T03:34:20.4566667+00:00
Brando Zhang-MSFT 2,636 Reputation points Microsoft Vendor
1 answer

How to make System.Timers.Timer call async function synchronously when elapsed?

Hello! I am developing a telegram bot using .NET and I am having an issue. I have two timers that execute functions when elapsed. First timer re-posts a message (deletes a message and then posts identical copy, this is a workaround for the fact that…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 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,098 questions
asked 2024-03-28T10:27:40.66+00:00
Roman Kovalov 0 Reputation points
commented 2024-03-29T03:03:10.0533333+00:00
Jiale Xue - MSFT 24,021 Reputation points Microsoft Vendor
1 answer

MAUI apps with .NET 8 don't work on android

I'm trying to execute on android the demo app created by visual studio when you create a new MAUI .NET 8 project but I encountered different problems in debug and release mode. Visual Studio version : 17.9.5 When I try to run the app in debug it crashes…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-28T16:36:19.4466667+00:00
paro_ricc 0 Reputation points
answered 2024-03-29T02:39:27.3233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 33,381 Reputation points Microsoft Vendor
0 answers

MAUI .net 8 app can't get past splash screen on Android

Hi I am trying to run a new .net MAUI project on Android, it doesn't get past the splash screen and is stuck there. how to fix this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2023-12-29T16:10:52.7833333+00:00
SSB 81 Reputation points
commented 2024-03-29T02:35:30.4966667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,561 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Send email form Gmail account using C#

When sending an email using the followng code, I'm getting an error, I'm asking for your help. Authentication Required. Learn more at string adSoyad = txtAdSoyad.Text; string konu = "Koçaslanlar Web Konu başlığı"; string epostaAdresi =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,220 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,098 questions
asked 2023-02-03T11:30:34.83+00:00
kadir koçaslan 65 Reputation points
commented 2024-03-29T02:30:23.35+00:00
Andres Sosa 0 Reputation points
0 answers

Reading and Writing Files on Android 13

I want to read and write files in internal storage on android 13, but I get an error. What is the best way to deal with this?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,273 questions
asked 2024-03-29T00:45:08.4566667+00:00
木幡 弘文 1 Reputation point
edited a comment 2024-03-29T02:23:49.7333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,561 Reputation points Microsoft Vendor
0 answers

How to use <InputSelect> inside component with eventCallback

I am using Blazor Server , in the following code i Use <inputSelect > , the selection is getting passed to the parent component, but the element it self does not get updated for the selection @* Select Filter Property *@ @if (SelectionProperties !=…

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,350 questions
asked 2024-03-28T23:01:56.2866667+00:00
Ramzi Sahawneh 20 Reputation points
commented 2024-03-29T02:19:58.4+00:00
JasonPan - MSFT 4,196 Reputation points Microsoft Vendor
0 answers

Strange difference between using Azure OpenAI via the Playground studio and a simple C# .Net program

So I'm testing my Azure AI subscription. I'm running into a difference between the AI Studio (web site) and a simple .Net (C#) program that I find strange. I'm using the same AI deployment for both the Studio as my C# program. It is using…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,017 questions
asked 2024-03-28T12:52:13.6433333+00:00
Dutchottie 0 Reputation points
commented 2024-03-29T01:55:59.2+00:00
YutongTie-MSFT 44,966 Reputation points
0 answers

Customize the close/minimize/maximize location

Hi, I tested n it not worked on this link: Can you please check with sample code in the end of in this link: https://github.com/dotnet/maui/issues/21007 I added this code in login page and MyRootPage and is not worked. // override the method of the page…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-26T09:29:51.33+00:00
דני שטרית 2,486 Reputation points
edited a comment 2024-03-29T01:33:07.8333333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,561 Reputation points Microsoft Vendor
1 answer

Best Practices for Two-Way Data Binding in Large .NET Applications

Hello Microsoft Q&A community, I’m working on a large-scale .NET application, and I’ve been using two-way data binding in my XAML views. However, I’ve heard that this approach can become problematic in large projects. I’d like to understand the best…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
711 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
756 questions
asked 2024-03-19T17:01:43.8666667+00:00
arunkumar.mr 0 Reputation points
commented 2024-03-29T01:17:06.07+00:00
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
0 answers

Deploying .NET 8 Docker images to Azure Container Instances

Hello, I'm having trouble to deploy an .NET 8 Web App Docker container image to an Azure Container Instance. This is my Dockerfile: FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER app WORKDIR /app EXPOSE 8080 EXPOSE 8081 FROM…

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
626 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,079 questions
asked 2024-03-29T00:49:54.0833333+00:00
Alejo Millo 0 Reputation points
2 answers

Visual studio installer project code signing issue

I've been trying to get my .NET core program signed (the executable and dlls) with Visual Studio. In the build directory everything works fine: the properties of the files show my digital signature. However when I use the Visual Studio Installer…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 questions
asked 2022-08-03T11:30:14.767+00:00
jesdev7 6 Reputation points
answered 2024-03-28T22:15:08.08+00:00
Michael Pasternak 0 Reputation points
4 answers One of the answers was accepted by the question author.

How to wait for a return value from executed JavaScript MAUI Android Threading

Hello all I want get "right Threading way" when I wait for a JavaScript's result inside android webview (unfortunately function EvaluateJavaScriptAsync doesn't work :-(, cause I have own handler – need both directions from and to Javascript-C#…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2024-03-25T07:51:44.2733333+00:00
Wheelstring 125 Reputation points
edited a comment 2024-03-28T22:01:48.3666667+00:00
Bruce (SqlWork.com) 53,501 Reputation points
3 answers

Performance Issue with CollectionView in .NET MAUI

Hello, I am experiencing slow performance issues with .NET MAUI's CollectionView on Android. I am using .NET 7 with VS 17.6.5 I suspect the issue may be related to the use of controls within CollectionView.ItemTemplate. Please help me find a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,748 questions
asked 2023-07-19T09:01:54.0666667+00:00
Asem AS 50 Reputation points
answered 2024-03-28T21:49:25.4833333+00:00
Stephane Louge 0 Reputation points
1 answer

Opening a Window Using Its Name

From my MainWindow I am trying to open another window knowing only its name. In my MainWindow ViewModel, I have: Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (lpClassName As String, lpWindowName As String) As…

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,647 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,542 questions
asked 2024-03-26T09:29:31.52+00:00
RogerSchlueter-7899 1,176 Reputation points
commented 2024-03-28T20:11:10.8633333+00:00
KOZ6.0 4,495 Reputation points
0 answers

Windows Insider SDK not working since 25936

I'm trying to build a simple .NET 6.0 app - Just install the 25936 insider preview SDK then create a blank WPF/.NET 6.0 app and add to the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 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,647 questions
asked 2024-03-25T18:02:12.0833333+00:00
yoyodyne01 26 Reputation points
commented 2024-03-28T18:46:04.6533333+00:00
yoyodyne01 26 Reputation points
1 answer

Solutions for .NET Interop Issues involving Sensitivity Labels?

We have code that is supposed to create an Excel document via .NET Interop, then save this workbook. The problem is, starting with Office 365 Build 2312, the sensitivity label functionality has changed, seemingly to accommodate increased restriction on…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,253 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 questions
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
896 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,400 questions
asked 2024-02-26T17:59:41.4833333+00:00
JK 40 Reputation points
answered 2024-03-28T16:54:15.26+00:00
Yiannis Papoutsis 10 Reputation points
1 answer One of the answers was accepted by the question author.

Animation duration for RotateTransform not enforced?

Hello. I'm unable to get a simple rotation animation to work properly on a simple WPF application. I'm targeting .NET 8. Here's what I've done: Created a new WPF C# application using VS2022 Community. My MainWindow.xaml looks like the…

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,647 questions
asked 2024-03-26T21:08:29.2866667+00:00
Lionel Keene 20 Reputation points
commented 2024-03-28T16:35:14.17+00:00
Lionel Keene 20 Reputation points