23,363 questions with .NET-related tags

Sort by: Updated
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,616 Reputation points Microsoft Vendor
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
answered 2024-03-19T02:58:51.77+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,616 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,336 Reputation points
commented 2024-03-19T02:49:30.9733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,096 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,242 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
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,823 questions
asked 2024-03-16T19:15:22.5966667+00:00
Marc Graham 6 Reputation points
edited the question 2024-03-19T01:08:48.1066667+00:00
Jeanine Zhang-MSFT 8,766 Reputation points Microsoft Vendor
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,242 questions
asked 2024-03-18T21:52:53.8766667+00:00
Homer Macalintal 20 Reputation points
edited the question 2024-03-18T23:02:08.3533333+00:00
Homer Macalintal 20 Reputation points
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
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-18T21:05:06.86+00:00
OneWorld 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,076 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,242 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
0 answers

Using and dispose correctly MediaElement

Hello, I'm developing a small android app using MAUI. In this app i have a MediaElement from MAUI Community Toolkit. I have two page; the home and about page. How i can correctly dispose media element when i close the application? Now i have put dispose…

.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-18T16:13:29.7933333+00:00
first100 81 Reputation points
commented 2024-03-18T20:18:58.2533333+00:00
Viorel 110.3K Reputation points
1 answer

How to fix provider: SSL Provider, error: 0 - One or more of the parameters passed to the function was invalid.

We have updated TLS 1.1 to 1.2 on application server where ASP.NET web application is hosted on IIS. The application is built with .Net framework 4.7.2. But after installing cipher on the application server, application unable to connect the SQL database…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,400 questions
asked 2023-02-03T15:13:20.1966667+00:00
Milind Panchal 0 Reputation points
commented 2024-03-18T19:38:26.2166667+00:00
Dawid Kiersnowski 0 Reputation points
2 answers

Getting null continuation token ItemLinqQueryable

I seem to be having a strange issue when trying to use GetItemLinqQueryable method from the .NET implementation of the Microsoft.Azure.Cosmos. Specifically when I try to get around 40,000 records I got around ~3000 or so before I get a null continuation…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,242 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,384 questions
asked 2024-03-13T19:37:16.25+00:00
Andrew Rogers 0 Reputation points
answered 2024-03-18T18:54:31.0233333+00:00
Oury Ba-MSFT 15,601 Reputation points Microsoft Employee
0 answers

IIS 10 with Windows Authentication not working anymore HTTP Error 401.2 - Unauthorized

I have created an application with asp.net core mvc v8 that works with Windows authentication in IIS 10. Setting: Authentication: all are disabled except Windows authentication. I have it mounted on a server and I need it to work on my local network. And…

Internet Information Services
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 2024-03-18T14:34:06.6566667+00:00
Luis Cáceres 0 Reputation points
commented 2024-03-18T18:45:33.38+00:00
Lex Li (Microsoft) 4,242 Reputation points Microsoft Employee
1 answer

System.IO.Ports only availble on windows, but im using windows - .NET6

So i'm trying to read arduino serial from c#, but it shows me the folowing exeption when i try to open the port: System.PlatformNotSupportedException: 'System.IO.Ports is currently only supported on Windows I am currently using windows 11. Also i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,242 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-17T16:58:29.7233333+00:00
Borda Ákos 0 Reputation points
commented 2024-03-18T18:16:53.5066667+00:00
David Lowndes 2,065 Reputation points MVP
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,336 Reputation points
commented 2024-03-18T17:48:34.27+00:00
Eduardo Gomez 3,336 Reputation points
3 answers

MUAI Blazor App: A Blank "Screen" between splash page and login page.

Hi - We are using MAUI+ Blazor to develop our mobile App. One thing we notice is that as the app is starting, the splash screen shows, then it hides, then a very fast white flash shows right before the login page (or index page), because we are…

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
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2023-01-06T18:14:57.55+00:00
Bianyu Wang 11 Reputation points
commented 2024-03-18T16:51:32.8966667+00:00
Bruce (SqlWork.com) 53,251 Reputation points
0 answers

MAUI: Issue with deleteing the last item from ObservableCollection

I am using an ObservableCollection saving comments. When I delete a comment, I will fetch the deleted comment id and delete that comment from the ObservableCollection. My Problem is if I delete the last comment all the previous comments are vanishing…

.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-15T10:40:04.7333333+00:00
Sreejith Sreenivasan 671 Reputation points
edited a comment 2024-03-18T15:15:16.1266667+00:00
Sreejith Sreenivasan 671 Reputation points