24,486 questions with .NET-related tags

Sort by: Updated
1 answer

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,517 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,751 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
answered 2024-06-13T03:19:46.4833333+00:00
Tianyu Sun-MSFT 28,576 Reputation points Microsoft Vendor
3 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,517 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,925 questions
asked 2024-06-12T11:27:54.77+00:00
Mahesh Madhusanka 176 Reputation points
answered 2024-06-13T03:16:19.03+00:00
Hongrui Yu-MSFT 575 Reputation points Microsoft Vendor
2 answers

The "CreateAppHost" task failed unexpectedly. How do I fix this?

I opened a project I worked on a few months and a few updates ago. Now I can't open the form designer. The error list states: MSB4018 The "CreateAppHost" task failed unexpectedly. System.IO.IOException: The requested operation cannot be…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,517 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,463 questions
asked 2024-06-13T00:02:22.32+00:00
Jon Hall 0 Reputation points
edited an answer 2024-06-13T03:14:49.2033333+00:00
Jiale Xue - MSFT 41,036 Reputation points Microsoft Vendor
1 answer

Migrating PageRenderer from Xamarin to MAUI crashes the app

Hi, I am migrating an app from Xamarin Forms to MAUI. I am currently facing an issue using PageRenderer in MAUI as it is crashing the application. I plan to migrate it to PageHandler in the future and want the code to work in MAUI without many…

.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-12T06:51:33.4866667+00:00
Srilekha Chowdary 20 Reputation points
answered 2024-06-13T03:12:45.14+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,266 Reputation points Microsoft Vendor
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-13T02:23:42.5266667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,671 Reputation points Microsoft Vendor
1 answer

How to get a particular column from table and display in in label and not in the list in sqlite database in mvvm model

In MVVM model using async connection, I want to retrieve just one column from my async table to a label not to list. all sample I am seeing put all column in the list . I want only one mesa1 column to be displayed in a label.text. public async…

.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-08T10:40:43.1+00:00
Gbenga Banuso Odumosu 40 Reputation points
commented 2024-06-13T02:02:27.1933333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 70,476 Reputation points Microsoft Vendor
0 answers

How can I add a video view to my iOS .NET project?

I want to play a video in my iOS .NET project. I have installed the NuGet package XamarinMediaManager version 1.2.2: https://github.com/Baseflow/XamarinMediaManager But the problem is that I only hear the sound of the video when I debug on my iPad. I…

.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-12T11:59:53.5666667+00:00
Kim Strasser 686 Reputation points
edited the question 2024-06-13T01:23:08.8666667+00:00
Tianyu Sun-MSFT 28,576 Reputation points Microsoft Vendor
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,826 Reputation points
commented 2024-06-13T01:04:12.1566667+00:00
mc 3,826 Reputation points
1 answer One of the answers was accepted by the question author.

registration in authenticator app fails following example in https://learn.microsoft.com/en-us/training/modules/secure-aspnet-core-identity/7-configure-multi-factor-authentication

I followed the description in https://learn.microsoft.com/en-us/training/modules/secure-aspnet-core-identity/7-configure-multi-factor-authentication the code generated in the microsoft authenticator app is rejected with message "Verification code…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
13 questions
asked 2024-05-28T20:47:24.3+00:00
Christof Sidler 20 Reputation points
edited a comment 2024-06-13T00:50:31.31+00:00
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
commented 2024-06-13T00:43:54.0933333+00:00
SurferOnWww 2,091 Reputation points
2 answers

Combine 2 Solutions in to 1

I have 2 separate MVC applications (Project1.sln, Project2.sln) using Entity Framework in VS 2019. Both applications work fine if the project/solution is loaded separately. When I add Project2 in Project1, I get a long list of errors. What's the best way…

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-12T05:31:39.46+00:00
Malam Malam 161 Reputation points
answered 2024-06-13T00:33:26.3733333+00:00
SurferOnWww 2,091 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
commented 2024-06-12T21:15:07.41+00:00
Lloyd Sheen 1,391 Reputation points
4 answers One of the answers was accepted by the question author.

What is the best way to show the loader while uploading the file in gridview

I am using gridview for displaying and inserting new records. i'm using loader wherever it is required in the gridview. it is working fine. i'm trying to use animation loader for specific upload column in gridview. will it possible to show the loader…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,358 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,463 questions
asked 2024-06-07T17:12:49.2366667+00:00
Gani_tpt 2,026 Reputation points
commented 2024-06-12T21:02:55.9533333+00:00
Albert Kallal 5,141 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,517 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
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,517 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

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
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,517 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