23,364 questions with .NET-related tags

Sort by: Updated
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,243 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,054 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,075 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 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,399 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,243 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

.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,243 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.
285 questions
asked 2024-03-18T18:49:31.74+00:00
Sebastian Meckovski 0 Reputation points
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,243 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,054 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
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,243 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
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-18T14:05:30.6266667+00:00
Huynh Than 50 Reputation points
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
edited a comment 2024-03-18T13:45:42.7466667+00:00
peter liles 516 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,896 Reputation points
commented 2024-03-18T13:40:48.5933333+00:00
David Thielen 1,896 Reputation points
1 answer

Inject EntityFramework DbContext in a .NET 6 Azure Function

Where do I have to put the DbContext in a .NET 6 Azure Function? builder.Services.AddDbContext

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,075 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,481 questions
asked 2023-01-21T13:03:51.93+00:00
Bernhard Sumser 111 Reputation points
commented 2024-03-18T13:24:34.16+00:00
JV 0 Reputation points
1 answer One of the answers was accepted by the question author.

How can I access calendar and reminder items on .net MAUI?

I have made a .net MAUI app, and I would like to access the calendars on phones and also be able to create reminders. Is there a native .net MAUI way to do this? Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,267 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2022-12-24T03:26:32.363+00:00
Sacha B 116 Reputation points
commented 2024-03-18T12:37:56.5133333+00:00
michot jean-louis 0 Reputation points
1 answer

How to troubleshoot registration errors particularly in the RegisterModel page and carefully review the server-side registration process to implement sweetalert pop up.

I can not register with this code. I am encountering registration errors despite the notification popping up but i would get is error message and can't register, how to address issues with the server-side registration process or with how the form data is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,243 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
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,054 questions
asked 2024-03-18T07:09:55.7933333+00:00
MiKhel Navarra 20 Reputation points
edited an answer 2024-03-18T12:27:07.67+00:00
AgaveJoe 25,841 Reputation points