23,488 questions with .NET-related tags

Sort by: Updated
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,747 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
1 answer

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
edited an answer 2024-03-29T01:01:58.46+00:00
Mohamed El-Qassas 1,381 Reputation points MVP
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
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
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
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,747 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,747 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

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
answered 2024-03-28T17:27:49.0566667+00:00
Viorel 110.8K 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
0 answers

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,747 questions
asked 2024-03-28T16:36:19.4466667+00:00
paro_ricc 0 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
1 answer

When is the .net pace of change going to slow down, or the length of time to support a given .net version going to increase?

Now that .NET has begun to stabilize (and we're getting close to .NET 10), I'm finding that organizations are having a hard time keeping up with the release versions of .NET - 3 years isn't enough time for them to develop and place into production only…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 questions
asked 2024-03-28T16:02:04.5766667+00:00
Russell Hires 0 Reputation points
answered 2024-03-28T16:27:56.52+00:00
Bruce (SqlWork.com) 53,501 Reputation points
2 answers

What Is the Best Way to See Raw Data Stream Being Passed from SQL to .NET Application?

I am running some functions on application startup for my .NET application. This mostly involves running a bunch of scripts on my SQL database to ensure plans are cached. These queries are generated from EFCore-compiled queries. In doing this, I…

Azure SQL Database
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,264 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
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,486 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,690 questions
asked 2024-03-14T19:52:31.8+00:00
Mike-E-angelo 441 Reputation points
commented 2024-03-28T16:15:12.0766667+00:00
Bruce (SqlWork.com) 53,501 Reputation points
3 answers

Blazor Web Assembly with Azure AAD and Custom authentication Login

I want to implement two authentication mechanism in my Blazor web assembly application (Azure AD and Custom Authentication). i.e. User can either login via Azure AD or he can go for Custom Authentication. When I register both Custom…

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 2022-06-02T21:42:30.053+00:00
Reishabh Saxena 1 Reputation point
answered 2024-03-28T15:57:10.46+00:00
Timothy Provencio 0 Reputation points
0 answers

ASP.NET - xmlformatter

I have software that was developed for me. It is ASP.NET which I have no experience with thus the development. This was delivered a long while ago. I need to make changes and am struggling. This is a webservice with an api that you can call externally…

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-27T19:42:09.1466667+00:00
Darryl Hoar 121 Reputation points
commented 2024-03-28T15:13:41.8533333+00:00
Darryl Hoar 121 Reputation points