Microsoft Q&A

C#

6,920 questions

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.

Browse all C# tags

6,920 questions with C#-related tags

Sort by: Answers
26 answers One of the answers was accepted by the question author.

How I can do raw query in jquery datatable to acces to the files from sqlserver file table?

Hi, I have an asp.net core 5 application that displays the entire sqlserver file table content. My question is : How can open the file in colunm Name? I would like to modify the code below (extract from jquery-datatable-in-aspnet-core …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
6,920 questions
asked 2022-06-09T16:31:23.507+00:00
sblb 831 Reputation points
commented 2022-06-16T17:17:57.943+00:00
AgaveJoe 16,946 Reputation points
24 answers

ASP.NET CORE server side processing to acces to the files stored in FILE TABLE ?

Hi, first I want to create an ASP.NET core application linked to the FILE TABLE to open the files directly in my interface After several attempts I was able to implement in my interface the links of my files to be able to consult them. In the FILE…

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.
6,920 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 questions
asked 2022-05-31T13:16:42.73+00:00
sblb 831 Reputation points
commented 2022-06-07T18:02:47.927+00:00
AgaveJoe 16,946 Reputation points
16 answers

JsonConvert System.ArgumentNullException : 'Value cannot be null. Arg_ParamName_Name'

Hi, I tried to do the tree view structure. The code behind is public string TreeViewJSON { get; set; } public void OnGet() { List<TreeViewNode> nodes = new List<TreeViewNode>(); …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
6,920 questions
asked 2022-07-12T14:11:32.053+00:00
sblb 831 Reputation points
commented 2022-07-15T18:07:24.12+00:00
sblb 831 Reputation points
16 answers One of the answers was accepted by the question author.

I am looking for updates for .NET 4.5.x (i.e. 4.5, 4.5.1 and 4.5.2) for Win 10 IoT Enterprise 2019 LTSC

Hi I am working on a legacy application and need to find updates for .NET 4.5.x (i.e. 4.5, 4.5.1 and 4.5.2) for Win 10 IoT Enterprise 2019 LTSC. Kind regards

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.
6,920 questions
Windows 10 IoT Core
Windows 10 IoT Core
An Azure subscription offering that provides the essential services needed to commercialize a device on Windows 10 IoT Core.
232 questions
asked 2022-02-25T16:54:52.51+00:00
CU 21 Reputation points
answered 2022-03-12T13:06:02.34+00:00
Derek A Palmateer 1 Reputation point
16 answers

Execute task in an already existing thread

Hello, I would like to execute a task on an already existing thread. How can I tell the task to use this specific thread? I saw there is a task scheduler available in .net but if this would be the vehicle to implement I have no glue how to do…

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.
6,920 questions
asked 2022-01-19T17:19:45.25+00:00
Michael Zdarsky 96 Reputation points
answered 2022-01-22T10:03:25.3+00:00
Michael Zdarsky 96 Reputation points
15 answers

Excel row height logic calculation

Using C# and OpenXML, given a font name and its height, I need to calculate the exact row height in pixels in order to draw an Excel spreadsheet in a CAD software. What I have done so far: I have been able to accurately calculate a column width given…

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.
6,920 questions
Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
89 questions
asked 2021-02-03T19:20:57.723+00:00
Fabio Almeida 1 Reputation point
answered 2022-09-28T17:43:12.98+00:00
Hung-Chun Yu 896 Reputation points Microsoft Employee
14 answers

Please HELP! performance in C#

HI All, I've migrated a VB.Net code to C# and will working very well, the performance of the C# code is really awful, about 5 times slower than its VB.Net counterpart. Granted, I've made some changes, from Modules to Classes, and from ByRef to ByVal, and…

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.
6,920 questions
asked 2021-12-03T23:39:09.96+00:00
PB 1 Reputation point
commented 2021-12-06T01:47:46.96+00:00
Ken Tucker 5,796 Reputation points
13 answers One of the answers was accepted by the question author.

API to connect a FileTable in Blazor Wasm

Hi, I've created a Filetable via SqL server 2019 to have an architecture of the file (quantities 100 000 files). I would now like to display my database file on a razor page to open the files directly from my interface. Is this possible? Do you have…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
783 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.
6,920 questions
asked 2021-12-31T15:33:00.9+00:00
sblb 831 Reputation points
answered 2022-02-07T15:32:38.377+00:00
sblb 831 Reputation points
12 answers

Databindings are not working

I have made a small Project where I have a wcf service and an wpf app to look up weather data in between certain dates. At first, everything was fine, but when I used Databindings, the Datagrid stayed emty. Can someone help me? //WCF interface: public…

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.
6,920 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.
556 questions
Windows Communication Foundation
Windows Communication Foundation
A Microsoft runtime and set of application programming interfaces in the .NET Framework for building service-oriented applications.
258 questions
asked 2022-05-22T19:42:59.943+00:00
noname 6 Reputation points
answered 2022-09-12T22:20:12.233+00:00
Simon Aigner 1 Reputation point
12 answers

About the IIS site request queue length?

OS: Windows Server 2016 Standard IIS: Version 10.0.14393.0 Web Sites: WebIISQueueTest .NetFramework4.5 Asp.net mvc Question 1: By which performance counter does the site's request queue length be monitored? Question 2: The request queue…

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.
6,920 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.
143 questions
Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,175 questions
asked 2021-12-27T08:19:18.123+00:00
aspx 1 Reputation point
commented 2022-07-23T13:01:55.36+00:00
Zdravko Stojkoski 1 Reputation point
12 answers

Still having big problems with Object reference not set to an instance of an object in my solution but have nailed it down.

Hi I get the above error and when removing all try/catch stack trace sais the problem is in the method Conn in my Helper Class in the DAL project. using System; using System.Configuration; namespace DAL { public class Helper { …

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.
6,920 questions
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,170 questions
asked 2021-03-19T15:56:29.38+00:00
Anja 426 Reputation points
commented 2021-03-23T19:00:08.587+00:00
Duane Arnold 3,211 Reputation points
11 answers One of the answers was accepted by the question author.

Creating an multidimensional array of measurement files dynamically

Hello All, I want to create an app for reading multiple measurement files. First of all I don't know how many files I will get. I also don't know how many measurement points one file has. The situation could be as follows: I have 7 measurement…

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.
6,920 questions
asked 2022-08-09T14:54:39.057+00:00
Raymond Gilbers 176 Reputation points
commented 2022-08-11T18:22:32.767+00:00
Raymond Gilbers 176 Reputation points
11 answers One of the answers was accepted by the question author.

C# Task - LazyAsyncResult - NullReferenceException

There is something wrong with the following method: public async Task<ExtendedProductDTO> GetProductByUniqueIDAsync(string id) { var product = await _productRepo.FindFirstOrDefaultAsync(i => i.UniqueID ==…

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.
6,920 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
953 questions
asked 2021-01-22T14:44:52.577+00:00
Sal Datoccio 96 Reputation points
commented 2021-01-26T16:12:18.633+00:00
Sal Datoccio 96 Reputation points
10 answers One of the answers was accepted by the question author.

How to target .NET 6.0 with Visual Studio 2019?

Hello: I know .NET 6.0 is released, but I don’t know how to create a WinForm App targeting .NET 6.0 with Visual Studio 2019 (Version 16.11.5) on Windows 10 (Version 21H1) I can download the following packages: .NET 6.0 SDK (v6.0.100) - Windows x64…

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.
6,920 questions
asked 2021-11-09T09:12:02.417+00:00
john zyd 406 Reputation points
commented 2022-10-17T13:01:02.427+00:00
Karen Payne MVP 29,226 Reputation points Microsoft MVP
10 answers

Need a query builder for Deleting specific Rows

Need a query builder for BulkDeleting specific Rows by using SqlBulkCopy. List<Part> parts = new List<Part>(); parts.Add(new Part() { PartName = "crank arm", PartId = 1234 }); parts.Add(new Part() { PartName = "chain…

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.
6,920 questions
Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
216 questions
Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,473 questions
asked 2022-04-22T14:24:47.88+00:00
IDGO 426 Reputation points
answered 2022-05-02T11:49:51.32+00:00
IDGO 426 Reputation points
9 answers

Windows Server 2012 R2 TLS 1.2 Cipher Suites

Hello - I have a .Net application that accesses an external website to retrieve data. The external website removed TLS 1.1 support and only supports the following TLS 1.2 cipher suites: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384…

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.
6,920 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,121 questions
asked 2021-01-12T14:41:41.363+00:00
Rusty Short 6 Reputation points
commented 2022-01-14T20:33:39.36+00:00
MrDoug 1 Reputation point
9 answers One of the answers was accepted by the question author.

SQL Server Management Studio - Create queries, Export, Import

Hello, What is the best way to create a SQL query with the studio? Is there a wizard similar to Office Access? I have a data model with primary key, foreign key. Can I have the complete database model displayed visually? If yes how? I have to fill the…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
8,473 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.
6,920 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.
365 questions
asked 2021-12-18T16:25:34.577+00:00
Markus Freitag 2,961 Reputation points
accepted 2022-01-12T17:24:03.447+00:00
Markus Freitag 2,961 Reputation points
9 answers One of the answers was accepted by the question author.

JsonSerializer throws exception in xamarin.ios

While in android everything works fine (as most times), in iOS this line var payload = System.Text.Json.JsonSerializer.Serialize(postData); throws an exception: System.TypeInitializationException: The type initializer for…

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.
6,920 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,803 questions
asked 2021-03-07T20:29:53.31+00:00
Stesvis 1,016 Reputation points
commented 2021-10-11T14:45:47.04+00:00
Sikandar Amla 1 Reputation point
8 answers One of the answers was accepted by the question author.

How to create a .NET 5.0 Console application in Visual Studio 2019

I have Visual Studio 2019 Community, version 16.8.3. How do I use it to create a .NET 5.0 Console application without editing the project file? If I choose the Console .NET Core template, it creates a project file targeted for .NET Core 3.1…

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.
6,920 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,394 questions
asked 2021-01-01T20:27:19.26+00:00
Nicholas Piazza 401 Reputation points
commented 2022-07-01T19:48:10.653+00:00
MM 1 Reputation point
8 answers

How to implement trigger on File Table in Sql ?

Hi, How can I implement a trigger on the file table to insert rows in the document table eg strem_id? The simple table call FileDescriptions and is defined as below : public class FileDescription { public int Id { get; set; } …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,531 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.
8,473 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.
6,920 questions
asked 2022-05-27T12:10:18.31+00:00
sblb 831 Reputation points
answered 2022-05-31T05:14:45.223+00:00
sblb 831 Reputation points