Microsoft Q&A

.NET

20,730 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,730 questions with .NET-related tags

Sort by: Updated
0 answers

How to find common parent class

I often have to find a class or interface common to controls or objects that make up controls. Is there an automatic tool to determine the first parent common to two or more classes or a shared interface?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,815 questions
asked 2023-09-29T14:43:12.0933333+00:00
Guglielmo Cancelli 0 Reputation points
commented 2023-10-02T03:26:54.1+00:00
Tianyu Sun-MSFT 20,696 Reputation points Microsoft Vendor
1 answer

Maui - Order of launch

Hi, What order of steps that Maui launch ? Maui program.cs. app.xaml...... Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,875 questions
asked 2023-10-01T06:21:36.58+00:00
דני שטרית 1,221 Reputation points
edited an answer 2023-10-02T03:19:03.5733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,166 Reputation points Microsoft Vendor
0 answers

How do I disable content filtering?

Can't get on websites

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,481 questions
asked 2023-10-01T10:20:55.9+00:00
Brady Lassa 0 Reputation points
edited a comment 2023-10-02T03:18:12.7733333+00:00
Hui Liu-MSFT 21,611 Reputation points Microsoft Vendor
0 answers

how to remove realm database used in swift iOS in .NET MAUI?

Hello, I rebuild iOS app using .NET MAUI. There was data stored in realm database in iOS app. In MAUI, i want to remove it because it's no longer needed. Is there any way to that? Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,875 questions
asked 2023-10-02T03:18:00.0066667+00:00
Nam Pham 71 Reputation points
2 answers One of the answers was accepted by the question author.

How to automatically copy clipboard text into textbox using timer

Using VB.Net, am trying to get the text in clipboard into a specific textbox. Once text get into clipboard, I want it to be getting pasted and queuing automatically into the textbox, using timer. The below code was supposed to do as expected but only…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 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,321 questions
asked 2023-10-01T14:44:33.0233333+00:00
Wilfred Eghenedji 306 Reputation points
edited a comment 2023-10-02T03:12:49.29+00:00
Wilfred Eghenedji 306 Reputation points
1 answer

Getting Data in a List using four different tables

I have the following database tables Employee table -Database name Employee - EmployeeID is the primary key JobTitleID EmployeeNumber SectionID EmployeeId 9 1234 2 1 2 8976 3 …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,583 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.
9,022 questions
asked 2023-09-30T05:58:29.78+00:00
Anjali Agarwal 1,041 Reputation points
answered 2023-10-02T02:56:30.82+00:00
Zhi Lv - MSFT 27,831 Reputation points Microsoft Vendor
1 answer

TreeListView in .NET6

As per title, I am looking for a TreeView control with column support that is compatible with .NET4+, but also .NET 6 and 7. All the supposedly such controls I have found are too old and not compatible with the new versions. I also take this opportunity…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
asked 2023-09-29T14:38:36.68+00:00
Guglielmo Cancelli 0 Reputation points
answered 2023-10-02T02:48:18.2033333+00:00
Hui Liu-MSFT 21,611 Reputation points Microsoft Vendor
2 answers

Session Timeout

Overview: Our ASP.NET 3.5 framework based web application is upgraded to .Net 4.8. There is no change to the code and the way sessions are handled. For some of the users the session timeout occurs though the inactivity on the page is less than 2-3…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,640 questions
asked 2022-08-30T13:10:57.187+00:00
Siripurapu Deepthi 1 Reputation point
commented 2023-10-02T02:13:07.45+00:00
Nam Văn 0 Reputation points
1 answer

HttpListener used on Xamarin.IOS app. "Safari cant open the page because it couldn't connect to the server" error only on iOS 17 devices.

Our project uses the latest Xamarin and our app has a function that creates a HTTP server to store a html and config file, and we use SfSafariViewController to view the contents on the html file. However, after the release of iOS17, this function does…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,160 questions
asked 2023-09-20T06:21:25.29+00:00
ZNXJH 0 Reputation points
commented 2023-10-02T01:42:56.04+00:00
ZNXJH 0 Reputation points
2 answers

UI freezing due to Task.Run activity in async/await Task.Run() scenario (reworded)

[Previously} Help needed understanding C# await Task.Run() and threading I’m creating a desktop C# Winforms app.  If an exception is thrown due to a missing essential component the user can choose an automated fix option that searches the app’s archives…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,638 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.
9,022 questions
asked 2023-09-12T12:34:08.5533333+00:00
Art Hansen 561 Reputation points
commented 2023-10-02T01:11:33.2933333+00:00
Jiale Xue - MSFT 11,336 Reputation points Microsoft Vendor
2 answers

How to register Microsoft.ACE.OLEDB.12.0 provider on my machine?

I have a 64-bit version of Microsoft Windows 11. Whenever I try to run my apps, the error registers Microsoft.ACE.OLEDB.12.0 provider is not registered on my machine. I need that provider to run my apps that include a Data Grid View control. Are there…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
asked 2023-09-29T01:25:21.3766667+00:00
John 366 Reputation points
commented 2023-10-02T01:06:12.0033333+00:00
Jiale Xue - MSFT 11,336 Reputation points Microsoft Vendor
0 answers

Unable to add data into SQL table - exception thrown, but query works OK

I created a temp table in Server Management Studio, and imported it into my application using Scaffol-DbContext ` Scaffold-DbContext 'Data Source=MyServer;Initial Catalog=MyCatalog;Integrated Security=True;Connect Timeout=30;Encrypt=False;Trust…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 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.
11,007 questions
asked 2023-10-01T22:54:03.6033333+00:00
Robert Salasidis 111 Reputation points
commented 2023-10-02T00:46:40.43+00:00
Robert Salasidis 111 Reputation points
0 answers

Display value of DropDownList SelectedItem on a label

Hello, I have been trying to show the value of DropDownList selecteditem in a label but all efforts could not yield desired result. I have a table Data as follows: IdFruits colors1Apple Red2Banana …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,640 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
620 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.
9,022 questions
asked 2023-10-02T00:25:37.77+00:00
Donald Symmons 2,026 Reputation points
commented 2023-10-02T00:33:15.12+00:00
SurferOnWww 1,136 Reputation points
0 answers

No suitable constructor was found for entity type 'FilterDescriptor'

I have Visual Studio 2022 with a .NET 7 API project in it. I have been building out a set of models and having EntityFramwork build the database in Microsoft Sql Server. That has been going great. Today I added a .NET 7 Web App (MVC) to the solution and…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,583 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
989 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.
243 questions
asked 2023-04-21T12:59:02.4+00:00
Joseph Cambron 0 Reputation points
commented 2023-10-01T23:56:02.09+00:00
Casey Spaulding 0 Reputation points
2 answers

EF Core: Map multiple c# classes to DB table

Hello, I have a DB table named JobPosting with 60 columns. I'd like to have 2 c# entities JobPostingFull & JobPostingLite which both reference the JobPosting table. The JobPostingFull class has all columns from the DB, the JobPostingLite class has…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 questions
asked 2023-09-30T14:36:07.7+00:00
Satish Cherian 0 Reputation points
commented 2023-10-01T21:31:53.3833333+00:00
Bruce (SqlWork.com) 44,646 Reputation points
0 answers

Is there a way to automate adding the FullText Index to an Entity Framework migration

Hi all; Yes I can add the script to the Migration.Up() everytime I revise my model. But that is fundamentally no different from having a CreateIndexes.sql that I just run in SSMS after creating a DB. Is there some way to declare the full text indexes in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 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.
11,007 questions
asked 2023-10-01T21:18:20.5333333+00:00
David Thielen 1,426 Reputation points
0 answers

How do I get the FreeTextTable.Rank via Entity Framework

Hi all; I'm able to get a list of records using FreeTextTable in Entity Framework as follows: var EventsSqlWhere = $"SELECT top 200 * FROM FreeTextTable(Events, *, {0}, 200) as t INNER JOIN Events u on u.Id = t.[KEY] ORDER BY t.[RANK]…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 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.
11,007 questions
asked 2023-10-01T21:17:12.57+00:00
David Thielen 1,426 Reputation points
1 answer

How can I do a [MemberNotNull] for an Entity Framework IncludeAll() method I wrote?

I have the following helper method. This includes all complex properties in my Event DbSet (actually there's 9 properties but I reduced it for clarity): public static IQueryable<Event> IncludeAll(this IQueryable<Event> source) { return…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 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.
9,022 questions
asked 2023-09-16T17:40:21.58+00:00
David Thielen 1,426 Reputation points
commented 2023-10-01T21:14:59.0166667+00:00
David Thielen 1,426 Reputation points
1 answer

Asp.Net MVC 5 Jquery serialize Array not map class list property in

Jquery serializeArray, not map class list property. I am passing master and detail records using Ajax post request to my API controller List of Vias does not map; it gives a null value, but when I try this on a simple controller, it works. How can I…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
989 questions
asked 2023-10-01T15:19:36.39+00:00
AHSAN ALI 1 Reputation point
accepted 2023-10-01T19:21:44.96+00:00
AHSAN ALI 1 Reputation point
0 answers

"Failed to get document because the client is offline" error in Xamarin.Forms project

Here is my code of App.xaml.cs file of a Xamarin.Forms project: public partial class App : Application { public App() { CrossFirebaseCrashlytics.Current.HandleUncaughtException(); InitializeComponent(); …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,160 questions
asked 2023-10-01T17:36:29.6766667+00:00
Costas Athan 21 Reputation points