24,713 questions with .NET-related tags

Sort by: Updated
0 answers

Powershell: how does calling a .NET method work?

When I make a call to .NET in, let's say, PowerShell 7.4.3, such as: $HT = [System.Collections.Hashtable]::new() am I right when I say that PowerShell uses the .NET version on which it is based, in my example 8.0.6?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,256 questions
asked 2024-07-01T08:24:30.82+00:00
Hinterleitner Andreas 0 Reputation points
1 answer One of the answers was accepted by the question author.

export to excel with header data and column alignment should be perfect and center

This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="A.aspx.cs" Inherits="Default3" %> <html> <head runat="server"> <title>demo</title> <script…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,391 questions
asked 2024-07-01T04:23:36.8166667+00:00
RAVI 996 Reputation points
accepted 2024-07-01T08:16:28.89+00:00
RAVI 996 Reputation points
2 answers

How Can I track the Last DPI which is sent by WM_DPICHANGED in WPF?

I want to scale my WPF application according to available screen DPI. I know there Per Monitor DPI aware available but that are completely different what I want to achieve. I want to disable scaling for my WPF application even if windows has some scale…

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,704 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,491 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,550 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,608 questions
asked 2024-06-23T21:10:17.6933333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-07-01T08:09:32.03+00:00
Castorix31 82,666 Reputation points
0 answers

How to create html inside jQuery function dynamic instead of using html controls static ?

I work on jQuery i have issue I can't append html inside jQuery script SO jQuery function GET_ITO_PROJECTS_DASHBOARD_SP() will create all html scripts below and i will remove html static and i will create all html at runtime within function so exactly…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,391 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
920 questions
asked 2024-06-30T23:28:19.83+00:00
ahmed salah 3,216 Reputation points
commented 2024-07-01T08:00:40.8333333+00:00
Lan Huang-MSFT 28,276 Reputation points Microsoft Vendor
0 answers

How to make UWP MediaElement to be loop mode when casting to a TV?

I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…

Universal Windows Platform (UWP)
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,704 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,550 questions
asked 2024-06-28T08:17:01.82+00:00
Tom JD1 Xue 21 Reputation points
edited the question 2024-07-01T07:54:42.0733333+00:00
Junjie Zhu - MSFT 16,391 Reputation points Microsoft Vendor
1 answer

only parentheses data not filtering

Hello This is my aspx page <%@ Page Language="C#" AutoEventWireup="true" CodeFile="A.aspx.cs" Inherits="Default3" %> <html> <head…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,391 questions
asked 2024-07-01T04:29:40.17+00:00
RAVI 996 Reputation points
answered 2024-07-01T07:44:32.5+00:00
Lan Huang-MSFT 28,276 Reputation points Microsoft Vendor
0 answers

How to draw 3D scatter graph and Heat map using input CSV/Excel data in WPF app?

I have a WPF app and need to have scatter graph in 3D. By taking the input either CSV or Excel file and plot a graph and Heat map. Unable to figure out any alternative for this. With the help of "Oxyplot" package scatter map is done but not…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 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,704 questions
asked 2024-06-27T12:43:02.1333333+00:00
Santhosh Badam 20 Reputation points
commented 2024-07-01T07:21:33.1333333+00:00
Hongrui Yu-MSFT 780 Reputation points Microsoft Vendor
1 answer

How ro change Hamberger icon backgound color to green in .net maui

When i am clicking on push notification it navigates to the Consumable request details page and when clicking on back button it navigates to the Consumable request page. When it navigates to Consumable Request page tools bar color changing to black…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-27T20:16:02.1666667+00:00
Thombre, Ashish 125 Reputation points
commented 2024-07-01T07:09:02.7433333+00:00
Thombre, Ashish 125 Reputation points
0 answers

MAUI ios app build fail with doesn't have a target for 'net8.0-ios/iossimulator-x64'

After updating my laptop from an Intel-based Mac to a Silicon-based Mac, I am unable to build my project . In my project i am targeting ios only . The error message I received is as…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-28T18:17:27.3566667+00:00
RAgib Noor 1 Reputation point
commented 2024-07-01T06:58:15.05+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,281 Reputation points Microsoft Vendor
0 answers

Switching Between System Power Saving Mode in UWP app ,makes the app non-responded for a while

My UWP app was not responding for sometime, when switching between power Saving mode(windows settings) while App was running. To Reproduce the issue , Run the app Open Windows System Battery Settings -> Enable/Disable Power Saving Mode Now try to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,033 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
Universal Windows Platform (UWP)
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,550 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.
780 questions
asked 2024-06-28T10:13:12.27+00:00
Prem Kumar S 0 Reputation points
commented 2024-07-01T06:56:51.1033333+00:00
Prem Kumar S 0 Reputation points
2 answers

EF Core - High Memory Usage For Query that Runs for 20 seconds

I'm wondering if there is a better way to optimize the below query. Granted, it's pulling in 80,000 - 160,000 records, but the RAM usage on my web server, shoots up to ~3gig while it's running for a total of 20 seconds, when testing it in my API, but,…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
717 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,550 questions
asked 2024-06-29T05:22:38.7933333+00:00
muttBunch 100 Reputation points
answered 2024-07-01T06:51:08.61+00:00
Hongrui Yu-MSFT 780 Reputation points Microsoft Vendor
0 answers

Need Help Diagnosing Maui runtime Crash in iOS App

Hi everyone, I'm experiencing a crash in my iOS app and would appreciate some assistance in diagnosing the issue. The crash report indicates a SIGABRT (signal 6, abort trap) caused by an abort() called in the main thread. Here are the relevant details…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 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,136 questions
asked 2024-07-01T03:39:18.5466667+00:00
Jonathan Abraham 0 Reputation points
commented 2024-07-01T06:32:57.88+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 Reputation points Microsoft Vendor
1 answer

I cant install windows IIS

I am trying to install it says you already have this but I dont have internet information services in either windows administrative tools or windows start. I googled it but couldnt find any solution.

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
asked 2024-06-29T20:55:11.2866667+00:00
ali ala 10 Reputation points
edited an answer 2024-07-01T06:14:38.0533333+00:00
XuDong Peng-MSFT 10,341 Reputation points Microsoft Vendor
1 answer

Maui MediaPicker.Default.CapturePhotoAsync windows doesn't display camera

When I run the app is the VS 2022 on Windows 10 the MediaPicker.Default.CapturePhotoAsync method displays the camera and allows me to capture a photo. When the app is published and installed on Windows 10 the MediaPicker.Default.CapturePhotoAsync method…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,033 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-04-30T16:15:24.1733333+00:00
Grant Schaffer 25 Reputation points
commented 2024-07-01T06:12:20.49+00:00
Felipe Pineda O-I 0 Reputation points
2 answers

#How to convert ASP.NET for Microsoft Graph API to an open public API?

Hello, I have followed the instructions for creating an application that can pull data using the Microsoft Graph API: …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,328 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,194 questions
asked 2024-06-28T13:08:45.0433333+00:00
Jorziño Barradas 20 Reputation points
edited an answer 2024-07-01T05:57:42.2166667+00:00
Tiny Wang-MSFT 2,171 Reputation points Microsoft Vendor
0 answers

How to Increase timeout

I scaffolded a asp.net core application from Postgresql db, I get the below error , please suggest. TimeoutException: Timeout during reading attempt I fails here SupaCrud.Controllers.QuestionsController.Index() in QuestionsController.cs + return…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,328 questions
Azure Database for PostgreSQL
asked 2024-07-01T05:54:40.5+00:00
Kalyan A 0 Reputation points
edited the question 2024-07-01T05:55:48.98+00:00
Kalyan A 0 Reputation points
1 answer

Intermittent C# Compiler failure

Anyone seen the error below? I'm seeing this in a sub-project of a large build. It doesn;t always happen but it does seem to happen on the same component each time. I've not been able to get it to repeat reliably, ideas???? FWIW. It's a .NET Framework…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
asked 2024-06-28T14:54:45.0533333+00:00
Nabialek, Sam 0 Reputation points
answered 2024-07-01T05:54:41.0866667+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
0 answers

Looking for DX12/11 sample for MAUI

We're currently working on porting our 3D rendering SDK to support MAUI for Windows, and we already have support for .NET8 Winforms, WPF on Windows, and MAUI on Android and iOS. Are there any DX12 or DX11 based samples or demos that we might have…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
asked 2024-06-26T11:01:14.3333333+00:00
AGNIHOTRI Sahil 1 Reputation point
edited a comment 2024-07-01T05:40:36.63+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,281 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

can't covert Adobe PDF into Microsoft world

I'm having trouble converting an Adobe PDF to Microsoft Word. I've tried using different methods, but the formatting doesn't seem to carry over correctly, and some elements are missing. What steps can I take to ensure a smooth and accurate conversion,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
.NET Training
.NET Training
.NET: Microsoft Technologies based on the .NET software framework.Training: Instruction to develop new skills.
8 questions
asked 2024-06-30T07:37:18.5433333+00:00
MADY56 0 Reputation points
edited a comment 2024-07-01T05:24:38.81+00:00
MADY56 0 Reputation points
1 answer

InvalidOperationException: No policy found: System.Object[] in .NET 6 project on Visual Studio 2022 Version 17.10.3

`I recently installed the latest version of Visual Studio 2022 Version 17.10.3 and started working on a .NET 6 project. When I run my project, I encounter the following exception: InvalidOperationException: No policy found: System.Object[].…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,328 questions
asked 2024-06-28T09:30:23.84+00:00
Madanraj A 20 Reputation points
commented 2024-07-01T05:20:35.64+00:00
Tiny Wang-MSFT 2,171 Reputation points Microsoft Vendor