24,485 questions with .NET-related tags

Sort by: Updated
2 answers

Paging Issue in asp.net MVC

I am trying to add paging but get the error: CS1061: 'IEnumerable<Subject>' does not contain a definition for 'PageCount' and no accessible extension method 'PageCount' accepting a first argument of type 'IEnumerable<Subject>' could be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,281 questions
asked 2024-06-09T04:35:25.08+00:00
Malam Malam 161 Reputation points
edited a comment 2024-06-12T20:05:32.65+00:00
Malam Malam 161 Reputation points
1 answer

When attempting to add Microsoft.Windows.Desktop.App 8.0.6 I am getting "Package ... has packagetype 'DotnetPlatform' that is not supported

As part of moving from the deprecated WMPLib.WindowsMediaPlayer class to the current Windows.Media.Playback.MediaPlayer class, I am attempting to properly include the required DLL and all dependencies. The MediaPlayer class is a Windows Desktop 8 class…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
asked 2024-06-12T19:59:06.6766667+00:00
Ron Oakes 0 Reputation points
answered 2024-06-12T19:59:06.68+00:00
Q&A Assist
0 answers

Publish App Error

I am seeing the following error when I create any .NET Maui app and try to "Reserve a new app name:""An unexpected error occurred when attempting to reserve the app name" This error is occurring repeatedly for different apps, some in…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
asked 2024-06-01T20:24:36.23+00:00
Fritz Switzer 261 Reputation points
commented 2024-06-12T19:08:15.1833333+00:00
Fritz Switzer 261 Reputation points
3 answers

Dispose File stream and stream

Hi, Does I handle the dispose in correct way ? Note: This line contentStream.CopyTo(fileStream); can take long time. I got contentStream here from download file from our website. var zipPathForFolderOrPathForFile =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
asked 2024-06-11T07:29:35.66+00:00
Dani_S 3,046 Reputation points
commented 2024-06-12T18:45:39.05+00:00
Dani_S 3,046 Reputation points
0 answers

.Net MAUI desctop app

I am new to programming. I am trying to figure out how to work with MAUI. The problem is that the program does not start in Windows Explorer, but everything works fine from Visual Studio (mobile and desktop versions).Windows11

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
asked 2024-06-12T18:35:45.7166667+00:00
K00300006: Lionel Jose Maria 0 Reputation points
0 answers

Can't launch my app because of 'you must install .NET Desktop Runtime' popup

Hi everyone, I'm trying to run my application I've just installed on my computer but I'm having an issue with my .NET Runtime. I've been debugging this application in Visual Studio Community 2022 v17.10.2 and it works fine when I start it through Visual…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 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,752 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,622 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
184 questions
asked 2024-06-12T15:25:22.23+00:00
Connor Frayne 0 Reputation points
edited the question 2024-06-12T18:21:44.0533333+00:00
Connor Frayne 0 Reputation points
0 answers

Sporadic System.Net.Http.HttpRequestException: Error while copying content to a stream.

Hi, I receive this sporadic error in subject while calling HttpClient.PostAsync(url, content). I want to make sure that this is not related to my code. public async Task<HttpResponseMessage> UploadPhotoAsync(string productId, MediaGallery…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,281 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,135 questions
asked 2021-04-06T18:37:29.78+00:00
Holysmokes-6260 41 Reputation points
commented 2024-06-12T18:03:37.3333333+00:00
Bruce (SqlWork.com) 59,021 Reputation points
2 answers

How to block same value section on for each loop in XSLT 1

Hi Team, Currently we have a created xslt map with foreach to block looping using single value(PartNumbers) - <PartNumbers>099-923-G</PartNumbers>, in the below example same partnumber(Consideration value) repeating on both…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,924 questions
asked 2024-06-12T11:27:54.77+00:00
Mahesh Madhusanka 176 Reputation points
answered 2024-06-12T17:58:03.6633333+00:00
Mahesh Madhusanka 176 Reputation points
2 answers

why can not connect to ios Simulator?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
asked 2024-06-12T03:35:06.8366667+00:00
mc 3,806 Reputation points
answered 2024-06-12T17:42:54.89+00:00
Bruce (SqlWork.com) 59,021 Reputation points
1 answer One of the answers was accepted by the question author.

Where can I find the code for this? WPF Resizing Controls at Runtime

https://www.youtube.com/watch?v=ykphg1P2_ag I need to do something similar to this and I'd like to look at the code for it. This video doesn't give enough detail. Please help, thanks!

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,694 questions
asked 2024-06-11T21:52:20.69+00:00
Michelle Nieman 0 Reputation points
commented 2024-06-12T14:55:56.5233333+00:00
Michelle Nieman 0 Reputation points
0 answers

Gridview row.cells Unable to cast checkbox as textbox

I have this Gridview where I'm updating a SQL table. Everything works fine until I come across a column that has checkboxes. I'm getting an error message stating unable to cast/convert checkbox to textbox. Here are the lines in question. Dim columnValue…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
asked 2024-06-12T13:33:51.9166667+00:00
Hutty 0 Reputation points
1 answer

.net maui grouping data binding not working, displays blank lines.

My listview does not bind correctly, I'm getting blank lines. ( I'm missing something in the code) (in debug) the for each loop show there is data in the Items object but it does not show up in the listview. Xaml <?xml version="1.0"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
asked 2024-05-30T12:51:24.5833333+00:00
tim 140 Reputation points
edited a comment 2024-06-12T13:06:03.3+00:00
tim 140 Reputation points
0 answers

How to select multiples images on iOS using .NET MAUI

I'm using .NET MAUI and I want to select multiple images in iOS gallery (photos folder). I tried 2 libraries to do so. The first one is FilePicker, here is the implementation public class PicturePickerImpl : IPicturePicker { async public…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
asked 2024-06-12T12:51:17.79+00:00
Wyllis Monteiro 21 Reputation points
1 answer

Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring nuget packages in VS 2022.

Hi All, I am getting the error "Unable to load the service index for source https://api.nuget.org/v3/index.json while restoring Nuget packages in VS 2022. I have tried to delete Nuget config file as well but it did not help. Can anyone please…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
asked 2024-06-11T10:51:54.7633333+00:00
Munjal, Kanha (Gurugram) 0 Reputation points
commented 2024-06-12T12:49:36.11+00:00
Munjal, Kanha (Gurugram) 0 Reputation points
1 answer One of the answers was accepted by the question author.

how to write code in cs file in xamarin.ios?

I create xamarin.ios. there is tabbed application in the default file. there is Main.storyboard some of it code is : <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> <autoresizingMask…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,311 questions
asked 2024-06-10T07:25:54.96+00:00
mc 3,806 Reputation points
accepted 2024-06-12T12:42:31.8933333+00:00
mc 3,806 Reputation points
2 answers

Gridview ID problem

Hello, I have two gridviews set up. Both of them use the default scrolling buttons. In one gridview if you look at the properties of the scroll > buttons the ID property is missing like this: <input type="image"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,358 questions
asked 2024-06-06T17:56:28.6366667+00:00
Wheeler, Lee 0 Reputation points
commented 2024-06-12T12:40:26.5066667+00:00
Wheeler, Lee 0 Reputation points
1 answer One of the answers was accepted by the question author.

When device is locked/using another app, if Navigation occurs it will fail and leave a blank page.

In android, if the user decides to lock their device, the app shows blank page if the navigation happens during this period. In my scenario we are popping the page. I am using .net 8 Please let me know if you need any other details. thanks in advance.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
asked 2024-06-05T12:14:30.1033333+00:00
Keerthana Krishna 60 Reputation points
accepted 2024-06-12T12:11:36.03+00:00
Keerthana Krishna 60 Reputation points
1 answer

Seeking Alternatives to UIMenuController for Text Input Field Customization

I'm currently working on migrating a Xamarin.Forms project to MAUI, where I need to customize the behavior of text input fields, especially on iOS. Previously, in Xamarin.Forms, I utilized UIMenuController to manage options like copy, paste, and cut.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,043 questions
asked 2024-05-17T06:20:56.7333333+00:00
Omkar Pawar 0 Reputation points
commented 2024-06-12T12:01:05.72+00:00
Victoria 0 Reputation points
0 answers

Azure B2C / .NET - Handling a failed MFA verification flow

I have a WPF application with the following client code to fetch a token from Azure B2C endpoint: public static async Task<AuthenticationResult> AcquireTokenAsync(this IPublicClientApplication publicClientApp) { try { var accounts =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,037 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,058 questions
asked 2024-06-12T05:50:33.9466667+00:00
Giedrius Stasiulis 0 Reputation points
edited the question 2024-06-12T12:00:28.5033333+00:00
Giedrius Stasiulis 0 Reputation points
2 answers

How to restart the service when time is reach only once a day

Hi, in continue to https://learn.microsoft.com/en-us/answers/questions/1663229/service-monitor how to restart the service when time is reach only once a day ? protected override async Task ExecuteAsync(CancellationToken stoppingToken) { while…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,516 questions
asked 2024-06-06T10:23:27.6266667+00:00
Dani_S 3,046 Reputation points
commented 2024-06-12T11:42:41.56+00:00
Dani_S 3,046 Reputation points