23,365 questions with .NET-related tags

Sort by: Updated
0 answers

Are there known compatibility issues with WS_EX_TOPMOST and Windows 11’s Start menu?

Title: Issue with WS_EX_TOPMOST in .NET App on Windows 11 Overlapping Start Menu Body: Hello, I’ve developed an application using the .NET Framework that applies the WS_EX_TOPMOST window style to create a watermark overlay. This overlay remains on top of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,825 questions
asked 2024-03-18T09:16:32.8+00:00
Ayush Mehta 0 Reputation points
edited the question 2024-03-19T06:28:58.9033333+00:00
Ayush Mehta 0 Reputation points
1 answer

How to add a row to a DataGridView that has a ComboBox

I've been running this application for years. I just went from w10 to w11 and get the error message "DataGridViewComboBoxCell value is not valid" when loading data. The DataGridView has a ComboBox column, but I add structures that have only…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,808 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,358 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,825 questions
asked 2024-03-16T19:15:22.5966667+00:00
Marc Graham 6 Reputation points
commented 2024-03-19T06:11:13.2033333+00:00
Viorel 110.3K Reputation points
0 answers

What is the meaning of "System.IndexOutOfRangeException: Index was outside the bounds of the array"?

I would like to know more about the "System.IndexOutOfRangeException: Index was outside the bounds of the array at System.Collections.Generic.HashSet`1." What could cause this exception during my login and recycling the application pool in IIS…

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
asked 2024-03-18T21:52:53.8766667+00:00
Homer Macalintal 20 Reputation points
commented 2024-03-19T05:59:17.09+00:00
Homer Macalintal 20 Reputation points
1 answer

call an api in C#

I have the following code: namespace TwilioSendMessages.Controllers { [Route("api/[controller]")] [ApiController] public class SMSController : ControllerBase { private readonly IWebHostEnvironment _webHostEnvironment; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-03-18T04:07:46.5366667+00:00
Anjali Agarwal 1,326 Reputation points
commented 2024-03-19T05:58:23+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
0 answers

The namespace ’pcl_Solution’ already contains a definition for 'Resource' (CS0101) (PCl_Solution)

Hi Team,   I am trying to deploy my .net-android app into the app center using azure pipelines. I have one common Base class library solution which contains business logic, I have added ."net7.0;net7.0-android" as my target Frameworks in my…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
asked 2024-03-19T05:52:52.8766667+00:00
SHEETAL RODRIGUES 20 Reputation points
1 answer

Maui - create only one instance

Hi, I have maui app on WINDOWS 8 desktop. I have shortcut to exe. When i click on exe it create and instance of this app. It possible to limit to only one instance of app will be alive ? Thanks in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T08:35:55.1366667+00:00
דני שטרית 2,406 Reputation points
commented 2024-03-19T05:37:29.6233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,926 Reputation points Microsoft Vendor
1 answer

net maui windows platform trying to create control inside collectionview or bindableproperty ?

I am trying to small menu which is clickable gruop of buttons inside collectionview or bindableproperty I could not manage it .. my problem is not show contents and zindex problem when open the menu change the positions of the other content.. how to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-17T19:11:51.4533333+00:00
Sami 821 Reputation points
edited an answer 2024-03-19T05:31:26.21+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,926 Reputation points Microsoft Vendor
0 answers

Securetorage Null

So, for my app, I need the functionality of letting the user change role (Student, Coordinator or teacher) So, the way that it was setup was when I log in, I immediately get the email from firebase. this was working fine. but for some reason when I quit…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T02:25:22.75+00:00
Eduardo Gomez 3,416 Reputation points
commented 2024-03-19T04:40:06.71+00:00
Eduardo Gomez 3,416 Reputation points
0 answers

Update iOS SDK to 17 or later

Hi, After publishing my app to AppStore, I received this email I'm using Visual Studio 2022 Mac version 17.6.9 (build 415) , and Xcode 15.2 After receiving that email, I went to my iOS Xamarin project -> Properties -> iOS->Build and changed my…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,267 questions
asked 2024-03-15T20:29:41.0266667+00:00
Huynh Than 50 Reputation points
commented 2024-03-19T03:50:11.1533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,071 Reputation points Microsoft Vendor
1 answer

Pasing data to viewModel contractor

Since I need m data immediately, I decide to pass my class to the WelomePage Contractor public partial class WelcomePageViewModel : BaseViewModel { DemyUser? loggedUser; public WelcomePageViewModel(DemyUser demyUser) { loggedUser =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-10T00:24:52.37+00:00
Eduardo Gomez 3,416 Reputation points
commented 2024-03-19T03:31:12.6466667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,071 Reputation points Microsoft Vendor
0 answers

how to solve a dot net core MAUI Dependency Injection failure that just hangs

I am developing a MAUI application with dot net core 8. i need to setup getting data from a rest api and binding the data to xaml pages with MVVM. i have used online examples to be the basis for my code and the samples run. in my app a content page will…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T14:59:18.7433333+00:00
denny figuerres 0 Reputation points
commented 2024-03-19T03:25:51.2466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,096 Reputation points Microsoft Vendor
0 answers

How to add accessible name ( aria-label ) in @DropDownListFor in razor?

I have filter dropdown and trying to add comply with 508 compliance. I used aria_label, aria-label and aria_labelledby but unable to see accessible name for the DropDownListFor. I see No ARIA attributes under ARIA Attributes on Chrome Browse tool. How…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
asked 2024-03-18T17:56:37.2133333+00:00
OneWorld 0 Reputation points
commented 2024-03-19T03:25:14.29+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
0 answers

Explicit concurrent copying GC freed 10645(416KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 5663KB/11MB, paused 331us total 12.731ms

Explicit concurrent copying GC freed 10645(416KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 5663KB/11MB, paused 331us total 12.731ms how to fix it? add heap size? how to increase it?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-15T08:48:32.7366667+00:00
mc 3,501 Reputation points
commented 2024-03-19T03:11:14.1733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,096 Reputation points Microsoft Vendor
0 answers

Maui Need information to add stack smashing protection in ios build

Need information about to add -fstack-protector-all flag on ios Build

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T06:25:22.6333333+00:00
Vinothkumar Thulasiraman 0 Reputation points
commented 2024-03-19T03:02:02.1066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,926 Reputation points Microsoft Vendor
4 answers

Error: 'Package restore failed rolling back package change for' while running Scaffold-Dbcontext in Entity Framework Core 7.0.14

Hello, I'm working on a project using .NET Core 7 and encountering an issue when running Scaffold-DbContext with Entity Framework 7.0.14. The error message I'm getting is "there was an error running the selected code generator package restore failed…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2023-12-19T20:12:20.84+00:00
UMUT CAN 5 Reputation points
answered 2024-03-19T02:31:34.14+00:00
Hoang Anh Vu 0 Reputation points
1 answer

Why is OnInitializedAsync() called twice on a page reload

Hi all; Normally when a page is being created & rendered in Blazor version 8, RenderMode.InteractiveServer, OnInitializedAsync() is called once. But when I do a Reload on Chrome, it is called twice. And all child components in the page are called…

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,343 questions
asked 2024-03-17T23:34:40.2933333+00:00
David Thielen 1,926 Reputation points
commented 2024-03-19T02:28:04.98+00:00
David Thielen 1,926 Reputation points
0 answers

.NET Authentication .NET 7 Vs .NET 8 in my simple API service

I’m working on a relatively simple .NET Core web API service that performs CRUD operations on a database. Not sure what's the best way to implement authentication. Here’s the situation: In .NET 7, I had to manually define all the authentication…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 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.
284 questions
asked 2024-03-18T18:49:31.74+00:00
Sebastian Meckovski 0 Reputation points
commented 2024-03-19T02:20:07.38+00:00
Brando Zhang-MSFT 2,636 Reputation points Microsoft Vendor
2 answers

How to remove html tags and line break plain text

I wish to re format the email html page text below to a plain text style in a legible presentation with line breaks where breaks are present. The regularExpression example i am following for simplification, does not seem to work? ```Note, i am…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
asked 2024-03-12T14:25:43.47+00:00
peter liles 516 Reputation points
commented 2024-03-19T01:37:01.4633333+00:00
Lan Huang-MSFT 24,081 Reputation points Microsoft Vendor
0 answers

get a value of the row or item in ListView using a Button in Xaml

Currently I am able to get the value I have set the SelectedItem property to of the .Net Maui ListView by selecting an item in the ListView. However, I now have a button on every row of the listview that I would like to be able to click on and get a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
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,053 questions
asked 2024-03-18T16:01:46.2766667+00:00
Tom Meier 0 Reputation points
edited a comment 2024-03-18T21:52:44.7766667+00:00
Tom Meier 0 Reputation points
1 answer

How to setup functions in azure portal after upgrade?

Hello, I have upgraded my project to .NET 7 (isolated process), Azure Functions from v3 to v4 and CosmosDB to latest version, I have tested everything locally and, after a long journey, is working well. So, I deployed everything in our test env,…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,075 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
asked 2024-03-14T09:20:30.3233333+00:00
Stefania Grillo 25 Reputation points
commented 2024-03-18T20:51:23.9866667+00:00
Ryan Hill 24,731 Reputation points Microsoft Employee