11,431 questions with C#-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

How to run PowerShell with admin right

Hi, I need to run PowerShell with admin rights to get permission to run a script in C# code. If there is a solution please leave a comment, many thanks.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 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.
11,431 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,924 questions
asked 2023-03-27T04:15:40.04+00:00
365 timviec 45 Reputation points
commented 2025-05-03T12:49:37.39+00:00
poa 0 Reputation points
1 answer

How to use encrypted DB connectionString at DataSet.xsd?

Hello. I'm want use DataSet.xsd in .Net Framework 4.5 c# winform project with encrypted connection string. I execute below adding TableAdapter in DataSet from Designer view connecting TableAdapter with db using by ConnectionString ConnectionString…

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.
11,431 questions
asked 2025-04-29T01:25:33.5266667+00:00
Min 0 Reputation points
commented 2025-05-03T01:32:03.29+00:00
SurferOnWww 4,391 Reputation points
5 answers

How to fix Add-Migration problem?

Hi, I am trying to add another entity to the database in my e-commerce solution which includes client and admin projects using Blazor WASM and Server, Asp.Net Core API, and data access projects. However, I am getting an error message as shown below: How…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
779 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 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,672 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.
11,431 questions
asked 2024-06-24T17:33:35.47+00:00
Cenk 1,031 Reputation points
answered 2025-05-02T12:02:09.08+00:00
Miyari 003 0 Reputation points
7 answers

Visual Studio find text in code editor auto jumps from the current line to another one

Hello, Does someone knows how to fix an annoying behaviour in the code editor of Visual Studio.? I have a .cs file with 10 000 lines of code. I am positioned within the file to see the lines from 920 to 950 I am trying to find a specific text…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,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.
11,431 questions
asked 2021-12-14T15:38:27.647+00:00
Liviu Ionut Olteanu 11 Reputation points
commented 2025-05-01T22:41:36.37+00:00
Rose Kenner 0 Reputation points
0 answers

Migrate Azure App Service to use Graph API instead of AAD Graph api

Hi Team, I'm in a process of Migrating our Azure App Service application to use graph api instead of AAD Graph api. I followed the steps which is mentioned in the…

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.
11,431 questions
asked 2025-05-01T13:38:55.0566667+00:00
Raman, N. (Nandhini) 0 Reputation points
0 answers

Is it possible to access Exchange Online from an Azure Function App using Managed Identity instead of a client secret?

Hi Microsoft Team, I currently have a Function App that accesses Exchange Online services using a Service Principal (client ID + secret) for authentication. I’d like to eliminate the use of client secrets for improved security and manageability. Is there…

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.
11,431 questions
asked 2025-04-24T02:18:20.0033333+00:00
Niyam Bhat 0 Reputation points
commented 2025-05-01T01:50:10.2666667+00:00
Niyam Bhat 0 Reputation points
0 answers

Azure OpenAI Batch Job (GPT-4o-mini and GPT-4o) gets status Failed with no errors in large requests

I'm creating batch jobs. I am using gpt-4o and gpt-4o-mini with Global Batch. The service version is 2024-10-21. Everything works fine if I send the JSONL file with a maximum of 540 lines. However, when I try to send one with 1,000 lines using the same…

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.
11,431 questions
asked 2025-04-30T18:02:52.43+00:00
Jorge García Cano 0 Reputation points
edited the question 2025-04-30T18:08:56.85+00:00
Jorge García Cano 0 Reputation points
1 answer

Print Report Without Preview

I using visual studio 2022 with MVC NET 8 and C# , JavaScript language and Microsoft reporting service 2016. I want to print an invoice without displaying the report based on its type, for example: cash payment or home delivery. Both invoices have…

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.
11,431 questions
asked 2025-04-30T09:36:39.13+00:00
Mohamed Sediq 0 Reputation points
edited an answer 2025-04-30T15:44:00.19+00:00
Bruce (SqlWork.com) 75,051 Reputation points
0 answers

I need help with SQL table

Can you write some basic SQL code for me pleasesfsdfsdf?

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.
11,431 questions
asked 2025-04-28T19:46:45.5133333+00:00
Max 0 Reputation points
commented 2025-04-30T12:08:59.46+00:00
Karen Payne MVP 35,566 Reputation points
0 answers

Printing a Local Report without Preview

dear all I using visual studio 2022 with MVC NET 8 and C# language and Microsoft reporting service 2016. I want to print an invoice without displaying the report based on its type, for example: cash payment or home delivery. Both invoices have different…

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.
11,431 questions
asked 2025-04-30T08:42:21.9333333+00:00
Mohamed Sediq 0 Reputation points
2 answers

c# error when connect to mysql "Object cannot be cast from DBNull to other types" (mariadb 10.3)

Object cannot be cast from DBNull to other types" (mariadb 10.3)

Azure Database for MariaDB
Azure Database for MariaDB
An Azure managed MariaDB database service for app development and deployment.
60 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
949 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.
11,431 questions
asked 2023-03-27T04:27:32.28+00:00
kriangkrai kongsamlee 5 Reputation points
answered 2025-04-30T00:39:01.34+00:00
SurferOnWww 4,391 Reputation points
0 answers

Unable to send SMS

Hello, I have purchased two phone numbers to send SMS to our SaaS platform's subscribers in America region. Currently, they are showing 'Verification in progress'. We need help expedite the verification process since it is business critical.

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.
11,431 questions
asked 2025-04-29T13:15:56.89+00:00
Contact NaT 0 Reputation points
0 answers

Unable to share file sharepoint site using graph api to external user using client credentials

I have a multitenant application i have followed the steps mentioned in the below https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow created the app registration in tenant a with the follow app permissions Read…

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.
11,431 questions
asked 2025-04-29T06:17:55.6366667+00:00
zpy978 11 Reputation points
0 answers

Nest.js troubleshooting

I need some basic frontend to this code in nest.js my backend looks like this: nestjs controller: @Controller('authors') export class AuthorsController { constructor( private readonly authorsService: AuthorsService ) {} @Get() getAuthors() { …

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.
11,431 questions
asked 2025-04-28T20:05:20.5+00:00
Samir ⚽⚽⚽ 0 Reputation points
commented 2025-04-28T20:36:13.7433333+00:00
Samir ⚽⚽⚽ 0 Reputation points
0 answers

Winforms adding customers

I need to help with winforms adding list my main form looks like this public partial class JobOfferDemandGridForm : Form { public BindingList<JobOfferDemand> Demands { get; set; } /// <summary> /// Konstruktor formuláře po…

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.
11,431 questions
asked 2025-04-28T20:16:02.73+00:00
Max 0 Reputation points
commented 2025-04-28T20:20:39.34+00:00
Samir ⚽⚽⚽ 0 Reputation points
1 answer

Can you make for me Graph in GDI

I need help with making some basic graphs in GDI for winforms

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.
11,431 questions
asked 2025-04-28T19:41:24.0333333+00:00
Samir ⚽⚽⚽ 0 Reputation points
answered 2025-04-28T19:42:54.3766667+00:00
Max 0 Reputation points
3 answers

Why ins'nt C# 7.0.0 not recognized ?

I just installed the 7.0.0 runtime for the tutorial about razor pages cause it's the required version according to the terminal "dotnet watch dotnet watch 🔥 Hot reload enabled. For a list of supported edits, see…

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.
11,431 questions
asked 2025-04-26T20:40:30.5633333+00:00
Pierre-Jean Martin 0 Reputation points
answered 2025-04-28T16:58:55.2366667+00:00
Pierre-Jean Martin 0 Reputation points
0 answers

Microsoft VBE interop version 16

I got to know that Microsoft.Office.Interop package is renamed to MSOffice.Interop for version 16 office applications. I am trying to read macros from excel file and see that I would need Microsoft.Vbe.Interop but it's latest version is 15 which results…

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.
11,431 questions
asked 2025-04-28T15:52:30.5733333+00:00
Bhavya Bhatt 0 Reputation points
0 answers

File Download Issue in WebView2 New Windows After Recent Edge Updates

Dear Microsoft WebView2 Team, I am developing a desktop application using the WebView2 Runtime, where I embed a browser window within the application. Following recent Microsoft Edge updates, I have encountered an issue related to file downloads in newly…

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.
11,431 questions
asked 2025-04-25T13:43:51.4633333+00:00
Efe KIR 10 Reputation points
commented 2025-04-28T09:28:03.79+00:00
aiwitmx 0 Reputation points
2 answers One of the answers was accepted by the question author.

413 content to large for .net core

I have an API endpoint that accepts a multipart/form-data request containing 10 files along with some additional form fields. This works perfectly in my local development environment where I’ve configured Kestrel to allow unlimited request body size…

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.
11,431 questions
asked 2025-04-24T10:04:51.1066667+00:00
Paras Panchal 20 Reputation points
commented 2025-04-25T06:14:31.2533333+00:00
SurferOnWww 4,391 Reputation points