Microsoft Q&A

.NET

20,731 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,731 questions with .NET-related tags

Sort by: Updated
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
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,009 questions
asked 2023-10-01T22:54:03.6033333+00:00
Robert Salasidis 111 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,009 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,009 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,020 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

i cant install visual studio{visual studio installer has stopped working}

when try to install visual studio i cant intall.it stopped working .i tried every other versions also.not working.windows 7 64 bit link fot vslog = https://1drv.ms/u/s!Amb604zyg9tMbNeqdOFfEH2Zr14?e=xoN0a7

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,020 questions
F#
F#
A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
36 questions
.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
64 questions
asked 2023-10-01T15:30:27.63+00:00
GODHANA exe 0 Reputation points
commented 2023-10-01T20:48:31.1633333+00:00
Karen Payne MVP 32,991 Reputation points
0 answers

Missed my Exam due to issue with onvue ,

i had an appointment for MS-900 certification using onvue joined 30 minuted before the exam and Application lunched successfully but when the exam started , i can't lunch onvue to start my exam

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,639 questions
asked 2023-10-01T20:35:32.9+00:00
Hani Nabil 0 Reputation points
edited the question 2023-10-01T20:36:42.6666667+00:00
Hani Nabil 0 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
1 answer

How rendering handling concurrency in razor page from API response?

Hi, I'm following up on all the discussions I've had about handling concurrency errors. 1 - I would like to know if it is possible to handle concurrency errors in a context where I have a DataGrid in edition mode on a line? 2 - I have defined a put…

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,111 questions
asked 2023-09-29T16:15:02.6566667+00:00
sblb 1,141 Reputation points
answered 2023-10-01T17:10:59.9533333+00:00
sblb 1,141 Reputation points
4 answers

Working on a tutorial and cannot find the Web Site Administration Tool.

Hello, I am working on a login tutorial and cannot find the Web Site Administration Tool to use to configure asp.net. Here is a link to the tutorial: https://learn.microsoft.com/en-us/previous-versions/aspnet/yh26yfzy(v=vs.100) I vaguely…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
asked 2022-06-29T01:41:15.137+00:00
AlphaCr8tive 1 Reputation point
answered 2023-10-01T16:57:07.2133333+00:00
Bruce (SqlWork.com) 44,646 Reputation points
2 answers

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,322 questions
asked 2023-10-01T14:44:33.0233333+00:00
Wilfred Eghenedji 306 Reputation points
commented 2023-10-01T15:57:14.53+00:00
KOZ6.0 960 Reputation points
0 answers

Maui for android entry screen keyboard issue

Hi all. how to prevent on screen keyboard when a specific entry get focus. Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,874 questions
asked 2023-10-01T15:56:30.79+00:00
Haviv Elbsz 1,251 Reputation points
0 answers

How to get a .NET 8.0 (isolated) function app to appear in my release pipeline, or successfully deploy from Visual Studio

I made a new .NET 8.0 Isolated Function App on by B1 App Service plan three days ago and I'm used to being able to select my Azure Subscription, then "Function App on Windows", and then select the resource from the dropdown, but I see nothing…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,464 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,068 questions
asked 2023-10-01T15:33:15.31+00:00
Richard Traviolia 0 Reputation points
0 answers

How to protect Net.Core server from malicious content uploads by users?

Hi! I have a website where on certain pages the user can (through checks in the controller method): To save (upload to server) text in text fields and to CKEditor. To save (upload to server) images (.jpg) to website through CKEditor and through …

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
asked 2023-10-01T15:31:24.0033333+00:00
Volk Volk 301 Reputation points
1 answer One of the answers was accepted by the question author.

How to remember last closed form

Hi , Working on a application , where i have two pages in my application : sale and purchase . I need to find out on which form i was working before closing the application , so that it can be the starting form of my application at run time . For…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,639 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,020 questions
asked 2023-10-01T09:59:34.1566667+00:00
ankit goel 586 Reputation points
accepted 2023-10-01T13:24:37.98+00:00
ankit goel 586 Reputation points
0 answers

Blazor accessing global variable issue

Hi all I asked here how to save variable state and i get long answers and what I want is to know if it's possible in blazor to define a variable somewhere in the app structure so I can access it from any component. something like in console program…

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,111 questions
asked 2023-10-01T07:18:17.1633333+00:00
Haviv Elbsz 1,251 Reputation points
commented 2023-10-01T13:12:57.47+00:00
Haviv Elbsz 1,251 Reputation points
0 answers

Visual studio blazor wrap properly values issue

Hi all in visual studio in a blazor project the wrap properly have only the values soft and hard but not also the value off. This caused me problem because I didn't know about the off value . and that waste many time of me. why visual studio don't…

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,111 questions
asked 2023-09-28T08:21:26.92+00:00
Haviv Elbsz 1,251 Reputation points
edited a comment 2023-10-01T13:08:58.8433333+00:00
Haviv Elbsz 1,251 Reputation points
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