24,054 questions with .NET-related tags

Sort by: Updated
2 answers

Windows Form App - VB.Net: Change default path of UserAppDataPath

Hi, I wanted to access the Windows.storage.dll assembly but VS 2019 keeps saying : Anyway, it seems I can't use that assembly because it's for UAW apps. So my issue is: I want users to store their data anywhere in their local…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,837 questions
asked 2022-01-23T16:16:40.683+00:00
deskcheck1-0579 411 Reputation points
answered 2022-01-24T21:37:35.867+00:00
deskcheck1-0579 411 Reputation points
1 answer

Troubles with Entity Framework Get Started

I tried play with ef(Net6.0, ef 6.0.1, Sqlite) I took code from "Getting Started with EF Core". I have adds some modifications to Program.cs: var allblogs = db.Blogs .OrderBy(b => b.BlogId) ; foreach(Blog b in allblogs) { …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,412 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,125 questions
asked 2022-01-22T21:57:42.897+00:00
Semen Veslov 1 Reputation point
answered 2022-01-24T20:25:19.98+00:00
Karen Payne MVP 35,196 Reputation points
1 answer

How can I add Pause and Resume Functionality in My Download Application in WPF?

I am developing a Download Manager in which you have to enter link and press Download button. I want to implement multiple files downloading feature ( lets say user have entered one link and press download button after that he can able to enter another…

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,679 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,299 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
767 questions
asked 2022-01-24T09:01:56.427+00:00
Nehal Chaudhari 41 Reputation points
answered 2022-01-24T18:35:46.393+00:00
P a u l 10,406 Reputation points
1 answer

Xamarin Forms (Android) - JNIEnv.cs not found

Hello ! I have updated Xamarin Forms and I have an issue right now. After build was done, at launch, VS says that JNIEnv.cs was not found. How I can fix this issue ? Thanks !

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2021-12-20T12:06:08.76+00:00
Séb Carré (Glanum) 21 Reputation points
commented 2022-01-24T18:14:51.82+00:00
Rob Caplan - MSFT 5,422 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Xamarin - Save data captured from multiple screens.

I have several screens in an application that capture data for a single entity. The entity is composed of many objects. Example: First Screen Student First name Student Last Name Student Date of Birth. Second Screen Student Photograph (from…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-05T22:11:40.303+00:00
Abhijit Shrikhande 317 Reputation points
accepted 2022-01-24T17:29:39.9+00:00
Abhijit Shrikhande 317 Reputation points
2 answers

The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[DB_Payment.Models.GetInvoice]', but this dictionary requires a model item of type 'DB_Payment.Models.GetInvoice'. C# MVC

Hi, Getting an error in C# MVC application: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[DB_Payment.Models.GetInvoice]', but this dictionary requires a model item of type 'DB_Payment.Models.GetInvoice'. …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,285 questions
asked 2021-08-13T04:08:50.963+00:00
Vinisha 1 Reputation point
answered 2022-01-24T17:26:14.38+00:00
Sanhita Roy 1 Reputation point
1 answer

Clicking Unused Space in RecyclerView

I have a RecyclerView that does not always have enough items to fill the screen (it has varying numbers of items as is usually the case). Therefore, part of the RecyclerView will be transparent, which is what I want. However, I want to detect when the…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-16T20:44:09.04+00:00
Nathan Sokalski 4,121 Reputation points
answered 2022-01-24T16:33:17.79+00:00
Nathan Sokalski 4,121 Reputation points
2 answers One of the answers was accepted by the question author.

Error Handling in .net6 minimal API

Hi, I am working on a project which uses minimal API. The project has a only 2 endpoints, GetAllItems and GetItem(with id). For the get all item the code is, app.MapGet("/items", ([FromServices] ItemRepository items) => { return…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,202 questions
asked 2022-01-17T09:51:46.78+00:00
Newbie Dev 151 Reputation points
accepted 2022-01-24T15:55:54.14+00:00
Newbie Dev 151 Reputation points
1 answer

How to block website access on mobile devices?

Hi, Is it possible to block website access/browsing on all mobile phones? I have already tried HttpContext.Request to check IsMobileDevice and User Agent to cross check browser type. It does not work when I select chrome option "Request…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,285 questions
asked 2022-01-24T13:34:19.41+00:00
Nilkanth Nikam 1 Reputation point
answered 2022-01-24T15:38:50.477+00:00
Bruce (SqlWork.com) 56,926 Reputation points
0 answers

Xamarin.iOS issue with Google Libraries

I was having trouble building a release version of a Xamarin.iOS app. In my work to attempt to fix, I tried deleting all NuGet packages and re-adding them. For some reason now, it seems like anything Google related is broken. The app has a map and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2021-04-26T18:08:30.663+00:00
Sean Fawcett 1 Reputation point
commented 2022-01-24T11:10:30.197+00:00
franksaf 1 Reputation point
0 answers

Microsoft.Diagnostics.Runtime throw excepton on iOS

I am looking for the Stack traces for all the threads in the current process. The following code works fine for windows but throws an exception when the same code runs on the iOS platform. using (var target =…

.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,125 questions
asked 2022-01-21T09:49:10.07+00:00
Girish Kumar Sharma 1 Reputation point
commented 2022-01-24T09:10:00.153+00:00
Xingyu Zhao-MSFT 5,356 Reputation points
2 answers One of the answers was accepted by the question author.

Get the current windows logged username to my ASP.net application

I created a small application that I need to get the currently logged user's username. I am running this on a domain pc. In domain pc, my application is working correctly. A popup login is displaying and when I type the username and password it will give…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,285 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,201 questions
asked 2022-01-20T05:31:20.95+00:00
ViVi 21 Reputation points
accepted 2022-01-24T09:09:21.217+00:00
ViVi 21 Reputation points
0 answers

Bluetooth issue when navigating in XAML

Hi, I have a Xamarin mobile app in C# that connects to Bluetooth, using Android.Bluetooth. In that XAML page, all the Bluetooth operation is great/fine tested on the Amazon Android device. If I navigate to another XAML page, the remote bluetooth…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-23T01:26:03.51+00:00
John Thomas 1 Reputation point
commented 2022-01-24T06:44:29.427+00:00
JarvanZhang 23,951 Reputation points
0 answers

watchOS app does not deploy to Simulator

Hi macOS Big Sur 11.3.1 - Intel Core i5 Visual Studio 2019 Community Edition For Mac XCode 12.5 watchOS (WatchKit) app refuses to load on the simulator. The simulator loads just fine. Have tried changing compile targets of both the iOS and…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2021-05-07T06:09:16.077+00:00
K Y Iyer 11 Reputation points
commented 2022-01-24T06:31:37.853+00:00
Mahesh Kumawat 1 Reputation point
0 answers

Issues updating an ObservableCollection from a background thread

I am attempting to run my data collection process in a background thread and then update an ObservableCollection that is bound to a DataGrid. I have tried most different solutions that I have found around the web and unfortunately all keep leading me…

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,679 questions
asked 2022-01-18T11:33:32.16+00:00
Matt Norman 1 Reputation point
commented 2022-01-24T06:11:17.473+00:00
Hui Liu-MSFT 40,666 Reputation points Microsoft Vendor
0 answers

The behavior of SpeechRecognitionResult.Status = Unknown of Windows.Media.SpeechRecognition has changed.

Hello. Using the speech recognition API (Windows.Media.SpeechRecognition) I'm creating a WPF app. 〇 What happened: Windows.Media.SpeechRecognition API on January 17, 2022 Used to perform speech recognition. SpeechRecognitionResult.Status =…

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,679 questions
asked 2022-01-20T08:09:16.627+00:00
山下 大輔 1 Reputation point
commented 2022-01-24T03:47:12.69+00:00
山下 大輔 1 Reputation point
1 answer

The Frame does not respond to Height set

Good Day i have the following <Frame BackgroundColor="#6966AE" CornerRadius="8" HorizontalOptions="CenterAndExpand" HeightRequest="40" > <StackLayout Margin="15" >…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-21T22:08:51.75+00:00
Vuyiswa Maseko 351 Reputation points
answered 2022-01-24T02:05:34.41+00:00
JarvanZhang 23,951 Reputation points
0 answers

Value issue

Hi, To the code, it does override the original value of field tb_valid_from. How to resolve it? $(function () { $("#tb_valid_from").datepicker({ autoclose: true, todayHighlight: true …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,285 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,299 questions
asked 2022-01-22T15:49:27.547+00:00
Peter_1985 2,526 Reputation points
commented 2022-01-24T02:01:03.117+00:00
Yijing Sun-MSFT 7,071 Reputation points
1 answer One of the answers was accepted by the question author.

Loadon Demand in a ListView Xamarin

Good Day i followed this Example https://github.com/HoussemDellai/Infinite-Scroll-Xamarin-Forms-Demo to implement the LoadOnDemand on a Listview and it works perfectly. but it takes time to load the data as compared to when i was just binding 300…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
asked 2022-01-04T00:55:48.227+00:00
Vuyiswa Maseko 351 Reputation points
commented 2022-01-24T01:10:47.003+00:00
JarvanZhang 23,951 Reputation points
0 answers

Hadoop and Big Data

I recently started studying Big Data in my university. But i am having troubles in understanding how is Hadoop and Big Data related? Anyone can explain this?

.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
150 questions
asked 2022-01-23T15:25:23.903+00:00
Anyagard 1 Reputation point