23,901 questions with .NET-related tags

Sort by: Updated
2 answers

Reuse legacy COM component in ASP .NET core Web API

I have a legacy COM dll which exposes business logic via COM objects. Its implemented using VC++. I am in process of modernising my application for web. Initially I wanted reuse this COM component without any change. A single instance of COM object only…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,170 questions
asked 2024-04-26T16:04:18.72+00:00
Rajesh Subramanian 0 Reputation points
edited the question 2024-04-29T07:04:10.69+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
0 answers

COM aggregation, "stabilization" AddRef/Release pair, necessary? (Don Box book)

To the excellent members of the COM team:   I have one question with the “stabilization” technique introduced in Don Box’s book.   In functions like FinalConstruct(), the outer object might create inner aggregation objects. These inner objects in turn…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,530 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,493 questions
asked 2024-04-29T07:02:22.5866667+00:00
masterjodi 0 Reputation points
0 answers

How to set JDK path used by dotnet build command

Hello, We build our .NET MAUI app for android using the dotnet publish command on the command line. During the build, the wrong version of the JDK (Java Development Kit) gets picked. How can we specify the path to the JDK that should be used for the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,874 questions
asked 2024-04-29T07:00:01.4566667+00:00
Simon 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,379 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,170 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,256 questions
asked 2024-04-27T13:11:19.82+00:00
Marcelo Nogueira 20 Reputation points
edited the question 2024-04-29T06:55:46.5966667+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
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,874 questions
asked 2024-04-27T15:02:02.76+00:00
ALEXANDRUSTEFAN CRACEA 0 Reputation points
commented 2024-04-29T06:54:25.0166667+00:00
ALEXANDRUSTEFAN CRACEA 0 Reputation points
0 answers

.Net core deployed application not supporting Chinese font in PDF.

I have chines font in my code when the app is deployed in app service and there is a logic to download the PDF file with the Chinese font, but the font is not visible.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,170 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,258 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,885 questions
asked 2024-04-29T06:30:59.03+00:00
Deepak Ramesh (SX/EDA2) 0 Reputation points
0 answers

How to add to "GraphicsView" class with “DrawableProperty" in dotnet maui

Hello! I trying drawing of the circle in center which is touched in the "GraphicsView" control. And I thought the one of the important points is how to add "GraphicsView" class with "DrawableProperty" in dotnet Maui. Please…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,874 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,256 questions
asked 2024-04-27T01:29:11.7533333+00:00
康二郎 井上 0 Reputation points
commented 2024-04-29T05:27:37.1233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
1 answer

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,830 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
answered 2024-04-29T04:38:49.2+00:00
Tianyu Sun-MSFT 27,271 Reputation points Microsoft Vendor
1 answer

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,258 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
answered 2024-04-29T03:45:15.3233333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

Not able to add a View in Visual Studio 2022 .net 6

I'm trying to add View in .net and getting below error popup. Kindly assist me to resolve this. I'm using .net 6 and visual studio 2022 community version.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 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-20T14:16:48.7133333+00:00
srivatshan br 0 Reputation points
commented 2024-04-29T03:39:56.2333333+00:00
Anna Xiu-MSFT 25,631 Reputation points Microsoft Vendor
1 answer

Location tracking while app is in suspended state

Hi, I am developing a location tracking app for drivers. We need to track locations in particular intervals and send it to server. We are able to track locations when app is active or in background. How can we get locations for both android & iOS…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,874 questions
asked 2024-04-24T09:56:59.74+00:00
ann 0 Reputation points
commented 2024-04-29T03:10:46.7233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
1 answer

Blazor web app net 8 rendermode auto with API

I am creating a web application with blazor web app and net 8 with rendermode Auto. I have an api created in .net hosted on another server different from where the blazor web application will go. The api needs a token in each call, I am having problems…

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-24T15:40:36.8+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
commented 2024-04-29T03:10:07.46+00:00
Tiny Wang-MSFT 1,571 Reputation points Microsoft Vendor
1 answer

How can I access SharePoint files via a C# web api that uses no user authentication?

I have followed numerous guides on how to access SharePoint via C# and no matter what I do I end up with a "401 Unauthorized response:" I am out o fideas. Anybody able to help? Would prefer working code examples. using…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,632 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,256 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-26T17:41:06.5666667+00:00
David Finkelstein 0 Reputation points
answered 2024-04-29T03:09:58.7266667+00:00
RaytheonXie_MSFT 31,076 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

converting Xamarin to .net maui.

Now that I completed coding my app using Xamarin, It appears that I should convert my app to .NET Maui. (due to Xamarin support being E.O.L. ) I found a Microsoft page that suggests adding ".NET upgrade assistant" via the extension but when I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 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
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,874 questions
asked 2024-04-28T16:23:24.6166667+00:00
tim 120 Reputation points
edited the question 2024-04-29T02:54:14.6466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,656 Reputation points Microsoft Vendor
1 answer

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,672 questions
asked 2024-04-28T10:37:17.14+00:00
Sergey Efremov 0 Reputation points
answered 2024-04-29T02:50:54.6533333+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
1 answer

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,379 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
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,874 questions
asked 2024-04-27T08:45:34.1866667+00:00
Qun Shen 40 Reputation points
answered 2024-04-29T01:13:41.1333333+00:00
S.Sengupta 15,111 Reputation points MVP
3 answers

Using SQL Server Read/Write Image Ever Day With A Table

I've a case that need to save Image in database, than user can search/upload site(DB) to site(DB) ever day from winform. Every image size average 250kb - 350kb, The total usage with image perhaps growth 110GB/year without delete form database. I'll…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 questions
asked 2024-04-25T12:58:15.02+00:00
LRC1006 0 Reputation points
commented 2024-04-29T01:03:50.48+00:00
LRC1006 0 Reputation points
0 answers

connected Device Get Service always return null

I want to connect bluetooth device (JDY-23) for serial communication and my device is connecting and shows id also. But when I tried to get service it always return null. Is there any problem with my code below var adapter =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,874 questions
asked 2024-04-25T08:22:03.87+00:00
Babu R 81 Reputation points
commented 2024-04-29T01:02:34.48+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
1 answer

How to calculate years from two different date in ASP.NET C#

I have Employee Admission Date which is stored in SQL table. In the ASP.NET click event, i want to calculate and find the years from the Admission Date and Current Date. For example, Admission Date : 10-MAR-2023 Current Date : 28-APR-2024 condition is…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,258 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,256 questions
asked 2024-04-28T17:11:24.31+00:00
Gani_tpt 1,506 Reputation points
answered 2024-04-28T20:05:49.37+00:00
hossein jalilian 2,770 Reputation points
2 answers

Community toolkit install is not working

I have had community toolkit installed on this project for quite a while and now it gives the following error when I am trying to update: Severity Code Description Project File Line Suppression State Error NU1605 Warning As Error: Detected package…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,874 questions
asked 2024-04-17T13:38:10.5+00:00
Lloyd Sheen 1,376 Reputation points
commented 2024-04-28T19:56:32.6333333+00:00
Lloyd Sheen 1,376 Reputation points