24,078 questions with .NET-related tags

Sort by: Updated
8 answers

Connexion to database SQL SERVER (2019)

Hi, I've an Blazor Wasm application. Until now I worked with a local database that I've created by migration. "Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\\Users\\...\\source\\repos\\DATASERVEUR\\Developers.mdf;Integrated…

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,404 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.
12,811 questions
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
496 questions
asked 2022-04-22T15:01:09.27+00:00
sblb 1,166 Reputation points
commented 2022-04-27T06:53:08.41+00:00
sblb 1,166 Reputation points
2 answers One of the answers was accepted by the question author.

Cant select items in a WPF combobox(VSTO Addin) if they are outside the parent window

When using a Combobox in a WPF UserControl via ElementHost for a VSTO AddIn, the Combobox items that are outside of the parent Office application cannot be selected. In the clip below, the blue area is a WPF UserControl inside an ElementHost and you…

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,681 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,309 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,532 questions
asked 2021-03-11T21:22:09.757+00:00
Matt V 21 Reputation points
answered 2022-04-27T06:37:29.127+00:00
Юрий 1 Reputation point
1 answer One of the answers was accepted by the question author.

C# Timer WinForms

Hello, public System.Threading.Timer AsyncProgramChangeTimer = null; public void MyStartTimer() { lock (this) { AsyncProgramChangeTimer = new System.Threading.Timer((o) => { …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 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,309 questions
asked 2022-04-26T10:43:54.263+00:00
Markus Freitag 3,786 Reputation points
accepted 2022-04-27T06:01:58.053+00:00
Markus Freitag 3,786 Reputation points
2 answers

Post JSON Object RestSharp v107

I have to post this json data (data is generated in javascript and must be post to the enpoint from backend): JSON.stringify(dataRest) is:…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,208 questions
asked 2022-04-25T11:08:08.187+00:00
Federico Luna salazar 21 Reputation points
answered 2022-04-27T04:42:16.01+00:00
SurferOnWww 1,916 Reputation points
3 answers

Function giving the follwing Error : The parameters dictionary contains a null entry for parameter 'FileID' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.PartialViewResult FileDetails(Int32) not seeing why>

Hi All, The Function below gives this error, it is not clear why: The parameters dictionary contains a null entry for parameter 'FileID' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.PartialViewResult FileDetails(Int32)' in…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
asked 2022-04-26T22:28:11.913+00:00
App Dev 86 Reputation points
answered 2022-04-27T02:25:18.81+00:00
Yijing Sun-MSFT 7,071 Reputation points
3 answers

SingalR Angular Error 404

I am trying to install SignalR on Angular. I have achived this before with ReactJs Looking at several Forum topics and articles I cant really get it to work: Error Code that i get: Utils.js:149 [2022-04-24T03:47:55.451Z] Error: Failed to start…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,208 questions
asked 2022-04-24T04:09:57.907+00:00
osyris 236 Reputation points
answered 2022-04-27T01:29:36.31+00:00
Zhi Lv - MSFT 32,021 Reputation points Microsoft Vendor
1 answer

Xamarin Forms application error java.lang.ArrayIndexOutOfBoundsException : Index 4 out of bounds for length 4

I'm getting the below error in VS2022 when trying to debug a Xamarin Forms app on Android emulator. The same works on VS2019 with the same sdk. java.lang.ArrayIndexOutOfBoundsException : Index 4 out of bounds for length

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-04T12:12:29.683+00:00
teja 16 Reputation points
commented 2022-04-27T01:04:21.487+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,901 Reputation points Microsoft Vendor
1 answer

Who Wants to Tackle Huge SQL to EF?

Would anyone like to help me convert this to EF? SELECT DISTINCT Item.ITEMID AS StockItem, ISNULL(DsoItems.ITEMID, N'') AS DsoItemId, DsoInventItem.ITEMNAME, ISNULL ((SELECT SUM(PHYSICALINVENT) AS Expr1 FROM DP_AX_PROD.dbo.INVENTSUM WHERE (ITEMID =…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
asked 2022-04-26T14:09:25.673+00:00
Nick R 66 Reputation points
answered 2022-04-26T21:56:33.243+00:00
Erland Sommarskog 101.8K Reputation points MVP
1 answer One of the answers was accepted by the question author.

Is there a way to revert a Visual Studio Project to the previous build

So I am Quite frustrated because my Visual Studio Project wasn't updating the code so I decided to rebuild it and now all the files are gone from the debug folder and the project is pretty much impossible to use. Is there a way to recover it? I have…

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,581 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,126 questions
asked 2022-04-26T20:29:14.47+00:00
John Glynn 106 Reputation points
commented 2022-04-26T21:32:22.487+00:00
John Glynn 106 Reputation points
3 answers

Deploy Error: An Lockdown error occurred. The error code was "MuxError"

I get the above error but it means nothing to me other than that there was a problem with the deploy. I did a search but found nothing similar. What does that message mean and how can I fix it? This is a Xamarin Forms app being deployed on an iPad…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2021-11-09T17:21:16.697+00:00
WillAutioItrax 201 Reputation points
answered 2022-04-26T20:29:53.563+00:00
Dylan Mills 1 Reputation point
1 answer

Is it possible to have an EF Core middleware or something that can apply to filter to every query?

Hi folks, I've got an existing ASP.NET Core web application that uses EF Core for the database queries. A requirement has come up that requires me to basically filter every query's result using some logic that takes into consideration a user's…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
698 questions
asked 2022-04-25T22:44:59.117+00:00
Ryan Cole 21 Reputation points
answered 2022-04-26T18:13:01.15+00:00
Bruce (SqlWork.com) 56,931 Reputation points
1 answer

designing class diagram to a system

hey, I'm working on a software engineering project and there are a few things I'm not certain about, hoping you could help... it's an MVC based system and I need to design an MVC diagram, class diagram and a few sequence diagrams. what is the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
asked 2022-04-25T14:43:59.76+00:00
ROG 21 Reputation points
commented 2022-04-26T17:40:10.303+00:00
AgaveJoe 26,146 Reputation points
2 answers

How to publish winform application

Hello all, Pls guide me how to publish my winform application through visual studio 2022 , as i have user id and password of my sql databse in app.config file , i need you help to publish my winform application in a most secured way .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 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,309 questions
asked 2022-04-25T06:45:05.653+00:00
ravi kumar 331 Reputation points
answered 2022-04-26T17:35:46.717+00:00
Bruce (SqlWork.com) 56,931 Reputation points
2 answers

Process.start() in Asp.net core app : Failed to create an ipc port, Access denied :(

Hello everybody, I wrote a little web api using ASP.net core, running on IIS. In this API i have to launch an EXE, wait for execution, then push an answer to the client who invoke my API. After a few use of this API, my process.start() fail and i…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,208 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,309 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,581 questions
asked 2022-04-25T14:39:01.05+00:00
Nicoco 1 Reputation point
answered 2022-04-26T16:02:00.763+00:00
MotoX80 32,076 Reputation points
1 answer One of the answers was accepted by the question author.

Error "The group or resource is not in the correct state to perform the requested operation" when doing WebView2.TrySuspendAsync

I basically need to pause a video when the WebView2 control loses its visibility. What I did was this: /*********************************************************************/ private async void SuspendWebView2(WebView2 webView2 ) { …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 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,309 questions
asked 2022-04-25T17:41:01.93+00:00
Pablo Glomby 186 Reputation points
accepted 2022-04-26T13:02:44.4+00:00
Pablo Glomby 186 Reputation points
1 answer One of the answers was accepted by the question author.

Tabcontrol in Xamarin.form

Hi to All. Excuse me for a simple question. I need to know the equivalent control in Xamarin of Tabcontrol in Windows form. I have not found it in Visual Studio and I am a novice in doing App (now on Android). Someone can suggest me a way to use…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-26T11:35:14.987+00:00
Paolo Mossa 161 Reputation points
accepted 2022-04-26T12:30:27.673+00:00
Paolo Mossa 161 Reputation points
2 answers

For Loop and SkiaSharp

Hi, How can I use for in SkiaSharp, Let's say I want to show every word for 10 seconds (600 frames). It sounds simple, but I haven't figured it out today. for code string[] numbers = { "one", "two", "three",…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 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,309 questions
asked 2022-04-11T11:40:35.067+00:00
Yusuf 691 Reputation points
commented 2022-04-26T09:17:38.897+00:00
JessieZhang-MSFT 7,706 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Firebase Push notification

Good Day As you know a lot of HUAWEI phones don't support Firebase Push notification . Is there a way i can check in Xamarin forms if a phone support Firebase push so that i implement a different Push for that phone programmatically ? Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-19T17:25:28.23+00:00
Vuyiswa Maseko 351 Reputation points
commented 2022-04-26T09:05:26.203+00:00
Vuyiswa Maseko 351 Reputation points
1 answer

Have Picker scroll to currently selected item on dropdown of the list

Cannot find anything about how to cause the Picker control to scroll to the selected item when the dropdown is opened. I have a Picker that can have many items and it is a pain having to scroll manually to get to where you were on last selection. Also…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
asked 2022-04-08T17:45:44.487+00:00
Lloyd Sheen 1,386 Reputation points
commented 2022-04-26T09:04:14.2+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,751 Reputation points Microsoft Vendor
2 answers

Windows form and User Control Pannel not adjusting in different Computer Screen?

Recently I have coded a simple software using C# in Visual Studio 2019. In the software, there is only 1 windows from (form 1) and five User Control windows. As you can see, from the windows form, I can access each of the user control panel by…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,838 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,309 questions
asked 2022-04-16T17:22:51.28+00:00
Faisal Shovon 1 Reputation point
commented 2022-04-26T08:58:10.657+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor