23,863 questions with .NET-related tags

Sort by: Updated
1 answer

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,368 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 0 Reputation points
answered 2024-04-25T11:50:53.4333333+00:00
lunchtiemre 0 Reputation points
1 answer One of the answers was accepted by the question author.

what is the most current Windows platform for .NET and C#

I see on the internet that MS has deprecated UWP. What do I need to add to my Visual Studio 2022 Community edition in order to program using the latest flavor of Windows for general Windows Apps? I'm getting frustrated trying to discern the myriad…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,611 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 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,604 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,235 questions
asked 2024-04-24T14:20:14.18+00:00
Joe Babb 0 Reputation points
commented 2024-04-25T11:42:07.5866667+00:00
Joe Babb 0 Reputation points
2 answers One of the answers was accepted by the question author.

what capability must I add to my manifest to enable access to audio devices?

I am working with Visual Studio 2022 Community edition. Years ago I wrote a program in Win32 that opened an audio device and plotted the signal on the screen. I want to do that same function but now with .NET. When I do a var endpointId =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
asked 2024-04-23T12:43:43.2+00:00
Joe Babb 0 Reputation points
accepted 2024-04-25T11:39:02.61+00:00
Joe Babb 0 Reputation points
0 answers

Error with mso99Lwin32client.dll when running WeldingIOTApplication.exe

I received an error message when running WeldingIOTApplication.exe which says "Faulting module name: mso99Lwin32client.dll, version: 16.0.5041.1000, time stamp: 0x5f0562ec". The full error message along with the application and module paths,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 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,671 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,604 questions
asked 2024-04-25T11:14:20.84+00:00
Omkar Khamkar 0 Reputation points
3 answers One of the answers was accepted by the question author.

Unable to submitting the form using jquery post request like a form submit

Using Form Submit redirecting page from one page to another page and the page is redirecting successfully but the parameter value getting length 0(if array) or null(if string) based on the data passed on param. To achieve this concept I have used the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2024-04-24T11:36:47.15+00:00
Ashok Kumar 141 Reputation points
commented 2024-04-25T11:11:52.8333333+00:00
Ashok Kumar 141 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,368 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
asked 2024-04-18T08:06:36.18+00:00
Dani_S 2,726 Reputation points
commented 2024-04-25T10:58:52.9966667+00:00
Dani_S 2,726 Reputation points
0 answers

I'm trying to read excel from sharepoint by using asp.net but its giving me following error fail: PowerBi_Report.Controllers.HomeController[0] An error occurred while processing the request: The remote server returned an error: (401) Unauthorized.

I have all the permissions for excel present in sharepoint still I'm getting same error can someone please help me out on this I'm pasting my code below using System; using System.Diagnostics; using System.Net; using Microsoft.AspNetCore.Mvc; using…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 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,604 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,235 questions
asked 2024-04-25T10:50:08.6333333+00:00
Rathor, Pradnya 0 Reputation points
1 answer

Why => is called token?

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-operator is => a Token?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 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,235 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
asked 2024-04-24T23:59:48.6466667+00:00
LAN SHUHAO 0 Reputation points
commented 2024-04-25T09:52:59.0733333+00:00
Olaf Helper 40,741 Reputation points
0 answers

Recurring Crash Issue When Opening Same App in Maui Project

I'm encountering an issue with two apps, let's call them A and B. When I open app B from app A, then close app B, and subsequently reopen app A, it crashes. To identify this issue, I created a new project, let's call it C. Interestingly, when running app…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
asked 2024-04-25T05:19:51.1733333+00:00
Sarfaraz Sable 20 Reputation points
commented 2024-04-25T09:49:07.43+00:00
Sarfaraz Sable 20 Reputation points
1 answer

EditForm in Blazor does not work on submit

Below is the source code, brand new blazor project vs2022 , Version 17.9.5 put a break point on string breakpointhere = "z"; examine xx variable - for the model, you will see that the MyTitle string is always null. Such basic stuff…

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,385 questions
asked 2024-04-20T15:03:25.1633333+00:00
Rob Bertora 0 Reputation points
commented 2024-04-25T09:41:34.8333333+00:00
JasonPan - MSFT 4,201 Reputation points Microsoft Vendor
0 answers

CTRL Commands Not Working with Winforms Web Browser

Hello, We have an application with a winforms web browser hosted on a WPF window and this browser is used to load HTML's within our application. These HTML files have fields that allow users to fill out. Letters and numbers work fine when put into the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,827 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,671 questions
asked 2024-04-22T20:38:22.62+00:00
Lpatz-4663 20 Reputation points
commented 2024-04-25T09:40:48.23+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
0 answers

[MAUI] How to set the icon of a new window in MAUI? Including Android and Windows platforms

I need to open a new window on my Android device and set its icon, similar to a WeChat mini program, but I haven't seen any API documentation related to it in the official documentation that allows me to set its icon, so I want to ask if this is possible…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
asked 2024-04-18T01:43:45.9833333+00:00
studio XFE 5 Reputation points
commented 2024-04-25T09:35:37.4+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,491 Reputation points Microsoft Vendor
1 answer

While enabling the .net framework form control panel getting an error, .net is the prerequisite for interspec application, we are unable to perform the installation

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
asked 2024-04-22T15:08:19.31+00:00
THUMMALURU RAJESH REDDY 0 Reputation points
commented 2024-04-25T09:17:19.6366667+00:00
Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
0 answers

Is it normal that the publishing of my NET MAUI app on iOS never ends?

Hello everyone, I am actually trying to do an ad-hoc deploy on iOS, of my .NET MAUI app. But for some reason it don't work. I've followed every step from there…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
asked 2024-04-23T11:41:03.2766667+00:00
Cyril Auquier 0 Reputation points
commented 2024-04-25T09:07:50.61+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,221 Reputation points Microsoft Vendor
2 answers

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,157 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,235 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 40 Reputation points
commented 2024-04-25T09:04:47.15+00:00
iKingNinja 40 Reputation points
1 answer

.NET MAUI Application is not supported on Visual Studio Mac

When I tried to run the MAUI project on Visual Studio Community 2022 for Mac, I faced the error below. Error: Could not find any available provisioning profiles for ApplicationName on iOS. I fixed the above error by deleting the .vs, obj, and bin folders…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,604 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
asked 2024-04-20T11:26:10.47+00:00
Aleena George 20 Reputation points
commented 2024-04-25T08:46:28.84+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,221 Reputation points Microsoft Vendor
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,861 questions
asked 2024-04-24T13:17:59.2633333+00:00
Srilekha Chowdary 20 Reputation points
commented 2024-04-25T08:41:12.7133333+00:00
Srilekha Chowdary 20 Reputation points
1 answer One of the answers was accepted by the question author.

how to change the sdk and emulator path?

the android sdk and emulator is all in C:\\ how to change the path? one of the emulator path is C:\Users\ljzj\.android\avd\pixel_5_-_api_30.avd how to change it to other path

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
asked 2024-04-19T13:11:37.76+00:00
mc 3,641 Reputation points
accepted 2024-04-25T08:37:55.4766667+00:00
mc 3,641 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,368 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,235 questions
asked 2024-04-23T02:04:43.3933333+00:00
mc 3,641 Reputation points
commented 2024-04-25T08:37:49.9433333+00:00
mc 3,641 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,861 questions
asked 2024-04-25T08:22:03.87+00:00
Babu R 61 Reputation points