23,876 questions with .NET-related tags

Sort by: Updated
0 answers

Selection using Selection Rectangle

Can anyone please tell me how to make this kind of behaviour in our own WPF app. Right now i am making a File explorer kind of behaviour using the WPF datagrid. Can someone please help me with the logic or post some code. Here if we see the rows are…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,746 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
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,242 questions
asked 2024-04-24T04:34:37.6333333+00:00
Amit 20 Reputation points
commented 2024-04-26T09:35:27.5366667+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
0 answers

Blazor web app net 8 rendermode auto authentication

I am confused on how to add authorization to my components. In the client part I am using AuthenticationStateProvider and in the server part ServerAuthenticationStateProvider. Segum I've been looking at the documentation and other examples. My blazor app…

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,387 questions
asked 2024-04-26T09:26:54.0033333+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
edited the question 2024-04-26T09:34:10.6833333+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer

Issue of slow data loading in Radzen grid in .net 8 blazor web app in both SSR and CSR And Auto mode ? How to Fix this?

Hi, I have a Razor component and in this component I have Radzen grid to show data , In my data base i have 60000 + rows and I am showing this data to component page using Radzen Datagrid but its taking more then 1 minute to load the data how i can…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,162 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,387 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,242 questions
asked 2024-04-25T13:36:54.2066667+00:00
Kuldeep Y 36 Reputation points
commented 2024-04-26T09:33:06.0766667+00:00
Ping Ni-MSFT 2,085 Reputation points Microsoft Vendor
0 answers

Part of this app has been blocked IIS Worker Process has tried to load Microsoft.Workflow.Compiler.exe

When launching an ASP.Net web application on a Windows 11 system with Smart App Control On, I'm getting the below toast notification. Part of this app has been blocked: IIS Worker Process has tried to load Microsoft.Workflow.Compiler.exe which doesn't…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,242 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,164 questions
Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
333 questions
asked 2024-04-25T03:31:37.73+00:00
Pradeep Viswanathan 0 Reputation points
edited the question 2024-04-26T09:28:45.16+00:00
Yurong Dai-MSFT 2,781 Reputation points Microsoft Vendor
1 answer

How to disable/Remove the hamburger menu icon in Maui - .Net 8

I had added flyout in my maui project (not shell). By default I can able to see the hamburger menu icon in Window. I want to remove that icon. and want add a custom icon. Thanks, Vaibhav Methuku. <?xml version="1.0"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-19T05:22:22.3566667+00:00
Vaibhav Methuku 60 Reputation points
edited an answer 2024-04-26T09:20:52.59+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,316 Reputation points Microsoft Vendor
2 answers

System.Web.UI in .Net

I am trying to migrate several projects from .Net Framework 4.8 to .Net 8 in WinForms, Wpf and Asp.net that use common c# libraries. When trying to compile the common dll, errors appear related to "System.Web.UI" which apparently is not used in…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,162 questions
asked 2024-04-20T05:54:53.8766667+00:00
zequion 91 Reputation points
answered 2024-04-26T08:49:58.4533333+00:00
Ping Ni-MSFT 2,085 Reputation points Microsoft Vendor
3 answers

Azure Static Web App function API refusing connection from web app

I have a Blazor WASM app deployed to an Azure Static Web app with a managed .NET 8 isolated Azure Function API. When calling the API directly from Postman using the auto-generated web app URL + the API route I receive the expected response and can see a…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,263 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 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,387 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
762 questions
asked 2024-03-10T19:43:13.2+00:00
Beau 0 Reputation points
edited an answer 2024-04-26T08:24:29.7466667+00:00
Pinaki Ghatak 2,320 Reputation points Microsoft Employee
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,866 questions
asked 2024-04-25T08:22:03.87+00:00
Babu R 81 Reputation points
edited a comment 2024-04-26T08:23:25.32+00:00
Babu R 81 Reputation points
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,866 questions
asked 2024-04-24T09:56:59.74+00:00
ann 0 Reputation points
edited a comment 2024-04-26T08:13:08.5666667+00:00
ann 0 Reputation points
0 answers

How to fix StackOverflowException after upgrading from .Net 6 to .Net 8

Hello,   I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio. When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,162 questions
asked 2024-04-26T06:39:38.71+00:00
Abhishek, Burra 0 Reputation points
edited the question 2024-04-26T07:36:48.4033333+00:00
Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
0 answers

How to add a placeholder with ability to change placeholder color to DatePicker and TimePicker in Dot Net MAUI?

Previously in Xamarin.Forms I used below code to do that? [assembly: ExportRenderer(typeof(CustomDatePicker), typeof(CustomDatePickerRenderer))] namespace MyEstateLife.Droid.CustomRenderers { public class CustomDatePickerRenderer :…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-25T14:22:16.44+00:00
Ruvindra Senevirathne 1 Reputation point
commented 2024-04-26T07:21:38.88+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,571 Reputation points Microsoft Vendor
0 answers

How can I prevent window titles from overlapping in a Maui app with shell navigation and modals?

I'm developing a Maui app with shell navigation and modals, and I'm encountering an issue with overlapping window titles. When navigating from the main page to another page using shell navigation, a back button appears, causing the window title to shift…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-25T16:52:05.36+00:00
Ansh 0 Reputation points
edited a comment 2024-04-26T07:03:21.8566667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,316 Reputation points Microsoft Vendor
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,371 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2024-04-18T08:06:36.18+00:00
Dani_S 2,726 Reputation points
commented 2024-04-26T06:47:58.7966667+00:00
Dani_S 2,726 Reputation points
0 answers

Returning consistent errors in .NET Web API

I have a backend .NET Core Web API application and React App on the front. I would like to be able to return errors from the API and display them in the app. The problem I'm facing is that some classes return errors differently. For example, I'm using…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,371 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,162 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.
294 questions
asked 2024-04-25T13:01:35.0233333+00:00
Sebastian Meckovski 25 Reputation points
commented 2024-04-26T06:45:10.9933333+00:00
JasonPan - MSFT 4,201 Reputation points Microsoft Vendor
2 answers

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,371 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 0 Reputation points
answered 2024-04-26T06:35:13.9033333+00:00
Junjie Zhu - MSFT 14,751 Reputation points Microsoft Vendor
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,828 questions
asked 2024-04-25T12:58:15.02+00:00
LRC1006 0 Reputation points
edited the question 2024-04-26T06:27:27.8433333+00:00
romungi-MSFT 41,961 Reputation points Microsoft Employee
0 answers

Access denied error when installing .MAUI sideload misx package

I published .NET MAUI Windows MSIX to sideload that is signed with a valid certificate. When I click .msix file, nothing happened because msix extension was not known on windows 10 by default. It seems that I have to install App Installer from Microsoft…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
asked 2022-09-08T00:18:16.98+00:00
Muhammad Kamran 1 Reputation point
commented 2024-04-26T06:22:05.72+00:00
Szilard David 0 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,866 questions
asked 2024-04-25T05:19:51.1733333+00:00
Sarfaraz Sable 20 Reputation points
commented 2024-04-26T05:47:43.51+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,316 Reputation points Microsoft Vendor
1 answer

xamarin control changing button invisible true false in code

How can I control if a button is visible in code. <buttons:BindableButton BindingContext="{Binding Close_Page_Clicked}" HorizontalOptions="EndAndExpand" IsVisible="{Binding…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 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-26T00:40:13.3866667+00:00
tim 80 Reputation points
answered 2024-04-26T05:39:29.7133333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,571 Reputation points Microsoft Vendor
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 Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,162 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 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,242 questions
asked 2024-04-25T10:50:08.6333333+00:00
Rathor, Pradnya 0 Reputation points
edited the question 2024-04-26T02:57:44.18+00:00
XuDong Peng-MSFT 10,101 Reputation points Microsoft Vendor