10,475 questions with C#-related tags

Sort by: Updated
1 answer

Use of git with Visual Studio 2022 and C#

Maybe someone can help? I've create a little .Net core C# desktop project in VS2022 and save it to git. When I then clone this repo onto another PC, the designer has disappeared and I get errors when I try to build (project.assets.json is missing). 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.
10,475 questions
asked 2024-06-14T07:07:29.7166667+00:00
Richard Johnson 0 Reputation points
answered 2024-06-14T09:45:39.3633333+00:00
Jiale Xue - MSFT 41,271 Reputation points Microsoft Vendor
0 answers

How to get free data hosting for C# desktop application?

Hello I want to design an application with multiple users in my C# wpf project. In short, with the application, users will be able to send and receive some non-large-scale data. Since I don't have the budget, I want to do this for free. I thought of…

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,475 questions
asked 2024-06-14T09:36:20.88+00:00
fatih uyanık 80 Reputation points
0 answers

Reflection

Hello, I try to inject this service in serviceprovider with two parameters. At the end, it will be generic but for this exemple, I put the parameters. Could you help me ? List<ConstructorInfo> ctors; Type[] genericArguments =…

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,475 questions
asked 2024-06-14T09:19:56.48+00:00
PharmaSoft 1 Reputation point
2 answers

How to add a different CSS to a razor page in Blazor WASM?

I am working on a Blazor WASM e-commerce application using the .NET 6 old version with a default template. I want to add a new razor page with a different look while keeping the old ones in the project. How can I achieve this? Specifically, I want to add…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,279 questions
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,449 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,475 questions
asked 2024-06-04T13:24:09.7766667+00:00
Cenk 981 Reputation points
commented 2024-06-14T09:04:37.3+00:00
Jerry Fu - MSFT 561 Reputation points Microsoft Vendor
2 answers

Getting error while search name in the textbox using bootstrap in ASP.NET C#

I am using gridview for reports and it contains more than 10000 (ten thousands) records. i am using one textbox for searching and multiple column values such as (CustNo,CustName,Department,MaterialName,Salary and DateofJoining) All search has to be done…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,362 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,475 questions
asked 2024-06-13T17:34:51.2533333+00:00
Gani_tpt 2,026 Reputation points
answered 2024-06-14T08:49:22.7433333+00:00
Lan Huang-MSFT 27,716 Reputation points Microsoft Vendor
2 answers

convert letters increase by step

Hello, Is there another simple solution if I want to specify the step size? Example + 4 or + 7 Step 4, I will do this. Convert letters increase by step string ret =…

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,475 questions
asked 2024-06-12T17:47:22.8+00:00
Noah Aas 320 Reputation points
commented 2024-06-14T08:30:55.13+00:00
KOZ6.0 5,735 Reputation points
2 answers

The sign-in name or password does not match one in the Microsoft account system

This is my console app project. Previously it was running perfectly but last week it suddenly cannot run. When I try locally, it shows me this error: "The sign-in name or password does not match one in the Microsoft account system". What I…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,004 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,475 questions
asked 2024-06-14T05:30:32.3933333+00:00
Hong Guan Lim 0 Reputation points
commented 2024-06-14T07:57:02.1333333+00:00
Hong Guan Lim 0 Reputation points
0 answers

How to fix mediaInitializationFailure: Media platform failed to initialize and 'Could not find a matching certificate for thumbprint'

Hi I am trying to run https://github.com/microsoftgraph/microsoft-graph-comms-samples/tree/master/Samples/PublicSamples/EchoBot locally using ngrok free account. Since we need to tunnel both HTTP and TCP ports so used cloudfare. Using cloudfare created…

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
767 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,365 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,043 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,475 questions
asked 2024-06-14T06:42:04.5866667+00:00
Khadeer 0 Reputation points
1 answer

Object cannot be cast from DBNull to other types.

Good day, I want to check my DB connection and here's my code. private void Button2_Click(object sender, EventArgs e) { string mysqlcon =…

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,475 questions
asked 2024-05-28T11:44:27.7833333+00:00
BgnerNprg207 246 Reputation points
answered 2024-06-14T05:59:09.08+00:00
感恩的❤ 75 Reputation points
0 answers

Unable to get access token for microsoft store service

Hi, I am building an app for the Microsoft Store. I require the app's server to connect to the microsoft store to validate purchases. I'm using the Microsoft.StoreServices API provided at: https://github.com/microsoft/Microsoft-Store-Services Basically…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,279 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,053 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
899 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,475 questions
asked 2024-06-09T22:08:13.59+00:00
Jacques O 0 Reputation points
edited the question 2024-06-14T04:32:57.34+00:00
Givary-MSFT 29,341 Reputation points Microsoft Employee
1 answer

Varchar() datatype and C# SqlDataReader truncates string

When I try and read into my C# program using an SQLDataReader, the Discrepency field above defined above as varchar(512) gets truncated to 255 characters. I verified that the ColumnSize is 512 with the following C# code: SqlDataReader = dr2 =…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,058 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,475 questions
asked 2024-06-13T22:54:05.3533333+00:00
Timothy Alvord 211 Reputation points
answered 2024-06-14T03:24:33.0733333+00:00
Jiale Xue - MSFT 41,271 Reputation points Microsoft Vendor
2 answers

My ViewModel Constructor is executed before my property is set. So I am having to put my method ( RefreshData )that I want to execute in the Constructor in the ApplyQueryAttributes method.

My ViewModel Constructor is executed before my property is set Id = myPackage.packageId; . So I am having to put my method ( RefreshData ) that I want to execute in the Constructor in the ApplyQueryAttributes method. Otherwise, My parameter value is…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,053 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,475 questions
asked 2024-06-13T18:18:55.96+00:00
Tom Meier 140 Reputation points
answered 2024-06-14T03:03:32.6133333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,421 Reputation points Microsoft Vendor
0 answers

How to disconnect a BLE device after successful connection

I have successfully connected to BLE device by using BluetoothLEDevice.FromIdAsync(deviceInfo.Id) and bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Cached) API's in unpaired mode over Windows 10 with .NET Framework 4.7.2 but I was…

Universal Windows Platform (UWP)
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,475 questions
asked 2024-06-13T10:31:14.1533333+00:00
Prajnith Kumar 0 Reputation points
edited a comment 2024-06-14T02:33:17.6866667+00:00
Junjie Zhu - MSFT 16,146 Reputation points Microsoft Vendor
1 answer

Control Flow guard

Hello Team, Control flow guard is only for visual c++ based application or for all c++ compilers or it will works for all like c#, .net based application.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,525 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,475 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,590 questions
asked 2024-06-07T11:13:32.64+00:00
Mashuk Raza 20 Reputation points
commented 2024-06-14T01:55:26.78+00:00
Minxin Yu 10,461 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

What is the best way to show the loader while uploading the file in gridview

I am using gridview for displaying and inserting new records. i'm using loader wherever it is required in the gridview. it is working fine. i'm trying to use animation loader for specific upload column in gridview. will it possible to show the loader…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,362 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,475 questions
asked 2024-06-07T17:12:49.2366667+00:00
Gani_tpt 2,026 Reputation points
commented 2024-06-14T01:48:21.4233333+00:00
Lan Huang-MSFT 27,716 Reputation points Microsoft Vendor
1 answer

VirtualizingStackPanel Scrollviewer height

I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…

Universal Windows Platform (UWP)
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,475 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.
778 questions
asked 2024-05-22T06:12:58.1066667+00:00
shriram 90 Reputation points
commented 2024-06-14T01:45:54.5066667+00:00
Junjie Zhu - MSFT 16,146 Reputation points Microsoft Vendor
0 answers

async Task method with await Task.Run make application crash shutdown without any errors/exceptions. how to solve?

when running the application, it starts doing the code in the method but then after few seconds the application crash shutdown without showing any errors or exceptions and it's never reaching any of the catch places. maybe there is a deadlock? not…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,863 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,475 questions
asked 2024-06-14T00:32:37.6766667+00:00
Chocolade 516 Reputation points
commented 2024-06-14T01:42:04.2133333+00:00
KOZ6.0 5,735 Reputation points
1 answer One of the answers was accepted by the question author.

Task Timeout Not Asign IsCompletedSuccessfully

In the url: https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.delay?view=net-8.0 say "After the specified time delay, the task is completed in the RanToCompletion state". Once "Timeout = true", I checked that…

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,475 questions
asked 2024-06-12T05:28:41.4933333+00:00
zequion 191 Reputation points
accepted 2024-06-13T21:59:36.31+00:00
zequion 191 Reputation points
2 answers One of the answers was accepted by the question author.

SAS Token not working for FileUpload IoTHub

I'm trying to replicate this https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/device/samples/getting%20started/FileUploadSample/FileUploadSample.cs example to upload a file. This part works: `// Note: GetFileUploadSasUriAsync and…

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
390 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,542 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,143 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
211 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,475 questions
asked 2024-06-12T17:16:40.47+00:00
mikefinch87 80 Reputation points
commented 2024-06-13T17:22:58.4733333+00:00
Antonio Toga 0 Reputation points
0 answers

Azure.Search.Documents vector search successful, but response is null

I am currently performing vector search according to the code guide that can be found here:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,525 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,475 questions
asked 2024-06-07T19:05:07.25+00:00
Rossana Modolin 0 Reputation points
commented 2024-06-13T15:44:23.4266667+00:00
Rossana Modolin 0 Reputation points