23,491 questions with .NET-related tags

Sort by: Updated
1 answer

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,080 questions
asked 2024-03-29T00:49:54.0833333+00:00
Alejo Millo 0 Reputation points
answered 2024-03-29T06:10:16.41+00:00
Anveshreddy Nimmala 1,445 Reputation points Microsoft Vendor
0 answers

How to check if a razor component is called by WPF-Blazor hybrid or Blazor application?

As a razor component can be called in a WPF blazor hybrid or Blazor server/wasm project. Is it able to check if current running application is WPF or Blazor in the razor component? Thanks!

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,648 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,351 questions
asked 2024-03-29T06:07:40.87+00:00
William Liu 186 Reputation points
0 answers

About automatic suggestion and completion of XAML codes on Visual Studio Code

Hello I installed the Visual Studio Code application on my computer. I generally work on C#. But I have a problem. When developing a WPF project and working in XAML files, suggestions of XAML codes are not completed by the compiler in CS files as in C#…

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,648 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,099 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-24T20:52:48.8666667+00:00
fatih uyanık 80 Reputation points
edited the question 2024-03-29T06:00:16.0566667+00:00
fatih uyanık 80 Reputation points
0 answers

Fixing issues with AOT compilation

Hello! I have a .NET MAUI 8 app that I target for Android, WinUI and iOS. I'm using EF Core (context is in separate project) and SQLite DB that gets created on app launch. The issue is with the iOS version and I'm suspecting the issues is with AOT…

.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-28T04:42:41.8566667+00:00
MKinOZ 1 Reputation point
commented 2024-03-29T05:44:40.7666667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 33,381 Reputation points Microsoft Vendor
1 answer

How to decrease Splash screen time in .net maui? Or How to Remove/Disable Splash Screen in .net maui?

I want to reduce .net maui app splash screen duration, How can i do that. If not possible then give me a way to remove or disable app by default splash screen Completely and i will add custom splash screen.

.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-27T12:45:20.0833333+00:00
Muhammad Bilal 0 Reputation points
commented 2024-03-29T05:39:16.8266667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 33,381 Reputation points Microsoft Vendor
1 answer

[Question] What is the root cause of Event Code: 3005 HttpException Request format is unrecognized.

I would like to learn and understand more about the error (HTTP Error 503. The service is unavailable) that I am getting when attempting to access the URL. When I checked my IIS, the application was in a Stop state. Did it crash or something? See below…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,080 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,221 questions
asked 2024-03-29T05:34:17.5133333+00:00
homerm 60 Reputation points
answered 2024-03-29T05:34:17.5633333+00:00
Q&A Assist
0 answers

.NET MAUI PLUGIN FOR CAMERA SHOT HDR

Good morning, I should develop an application that allows me to take multiple shots in HDR and then be able to combine them into a single photo. Do you know any plugins to use in .net MAUI? Thank you

.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-28T11:53:41.8433333+00:00
marco 0 Reputation points
edited a comment 2024-03-29T05:21:32.4466667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,341 Reputation points Microsoft Vendor
0 answers

How to version the dotnet core assemblies when creating image using a dockerfile

I have a dotnet core 6.0 api running which is building perfectly fine using a docker file and being deployed to aks. We are using Azure devops pipelines. Our team lead wants to version the assemblies now. Heres what I have tried so far but doesn't seem…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,080 questions
asked 2024-03-28T10:27:58.9633333+00:00
Danish Ahmed 0 Reputation points
commented 2024-03-29T04:56:45.7266667+00:00
Prrudram-MSFT 21,461 Reputation points
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,221 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,080 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,221 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,099 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,221 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,099 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,351 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