10,860 questions with C#-related tags

Sort by: Updated
1 answer

Intermittent Connection Timeout issue

We have built a .Net Core 8.0 based project in which we are calling an external api every 5 mnts. Everytime this code is invoked , it will fetch around 50 records and create the payload in json object and do a PostAsync call to th external url. I am…

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,860 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,683 questions
asked 2024-07-05T19:00:16.17+00:00
Dey, Subir 0 Reputation points
answered 2024-09-20T14:28:18.05+00:00
Johan Smarius 470 Reputation points MVP
1 answer

Trying to run C#, C# Dev Kit on MacBook Pro Version 11.7.10, visual studio code Version 1.90.2 (Universal)

Hi. I started to learn C# and trying to run it on visual studio code. Does not work. When I press F5, i get a pop up window with "Internal error in the debugger. Open 'launch.json' or Cancel", launch.json: { "version":…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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,860 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
993 questions
asked 2024-09-20T08:42:53.33+00:00
G 0 Reputation points
edited an answer 2024-09-20T13:48:30.9833333+00:00
Tianyu Sun-MSFT 30,356 Reputation points Microsoft Vendor
0 answers

Delete Rows from existing excel using OpenXml

I need to delete certain rows from an excel file which is created based on a template using openXml and may have extra rows at the bottom. I tried to remove it using row.Remove() and re-assign the RowIndex for the remaining rows .But nothing succeeded . …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,529 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,860 questions
asked 2024-09-20T13:42:54.1433333+00:00
Subin Joseph 1 Reputation point
2 answers

How to Store AES Encryption Keys Securely in Windows Application?

Hello I am doing AES encryption in an application I developed in Windows. For this, I need to store Key and IV values ​​securely. What method is used for this? If these values ​​are not present at the start of the application, I am thinking 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,860 questions
asked 2024-09-20T07:12:29.34+00:00
fatih uyanık 80 Reputation points
answered 2024-09-20T12:59:11.1933333+00:00
Jiale Xue - MSFT 44,751 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Number of query values and destination fields are not the same

Hello friends, I received text (.txt) files from our external vendor every morning. My objective is to convert this text files to excel (.xlsx) per our customer's request. I am using SSIS Package, and I am using Script Task to do my conversion from text…

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,567 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.
528 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,860 questions
asked 2024-09-19T18:56:39.9633333+00:00
Villa 206 Reputation points
commented 2024-09-20T11:50:38.2866667+00:00
Villa 206 Reputation points
2 answers One of the answers was accepted by the question author.

How Can I fix lParam pointer Error in Pinvoke/Win32 ?

Hi there, currently I need to dig up some Win32 code which is a part of my project, Actually, it's a part of my WPF application where access Win32 APIs using the traditional Pinvoke method. But Currently I facing some error at lParam pointer…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,594 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,860 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,694 questions
asked 2024-09-18T11:32:18.04+00:00
MERUN KUMAR MAITY 596 Reputation points
accepted 2024-09-20T11:41:04.6933333+00:00
MERUN KUMAR MAITY 596 Reputation points
0 answers

How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?

Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…

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,762 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 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,860 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.
805 questions
asked 2024-09-11T21:41:55.1+00:00
MERUN KUMAR MAITY 596 Reputation points
commented 2024-09-20T11:31:31.4866667+00:00
MERUN KUMAR MAITY 596 Reputation points
1 answer

How can I upload x86 and x64 directories to github?

HelloBa I uploaded my project to github. However, I created a Lib folder in the directory where the project file is located. There are x86 and x64 folders in it. This directory is not uploaded to the repository. How can I include this directory and its…

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,860 questions
asked 2024-08-26T16:46:05.5266667+00:00
fatih uyanık 80 Reputation points
edited the question 2024-09-20T07:47:57.1233333+00:00
Rakesh Gurram 7,005 Reputation points Microsoft Vendor
1 answer

Explain The C# Code

using System; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { Console.WriteLine("Hello World"); var nums = new List

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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,860 questions
asked 2024-09-19T13:04:31.2266667+00:00
Adish Jain 0 Reputation points
edited the question 2024-09-20T07:40:05.2966667+00:00
Rakesh Gurram 7,005 Reputation points Microsoft Vendor
2 answers

Regex.Matches Idn

Hello I'm using this to collect emails from string: Dim mc As MatchCollection = Regex.Matches(src, "([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,9})", RegexOptions.CultureInvariant Or RegexOptions.IgnoreCase Or…

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,860 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,715 questions
asked 2024-08-01T12:02:02.1266667+00:00
StewartBW 1,145 Reputation points
edited an answer 2024-09-20T06:52:51.55+00:00
Jiachen Li-MSFT 31,011 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Unable to make full screen splash in .NET MAUI

How can I make splash to display in full screen instead of just at the center of the mobile screen in .NET MAUI? I've tried different base sizes, but not working. Target android version up-to 13. <ItemGroup> <MauiSplashScreen…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,427 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,860 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.
805 questions
asked 2024-06-11T04:27:11.4933333+00:00
Md Mosabbir Alam 20 Reputation points
commented 2024-09-20T05:51:06.8+00:00
Md Mosabbir Alam 20 Reputation points
2 answers

How can I create a clean project folder structure?

Hello I use many libraries that I downloaded from Nugget in a wpf c# project. These libraries are normally located under the "Bin" folder. I want to create a cleaner folder structure. For this, I want to collect these libraries under a folder…

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,762 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,860 questions
asked 2024-09-11T07:10:33.9366667+00:00
fatih uyanık 80 Reputation points
edited a comment 2024-09-20T05:44:39.1066667+00:00
Hui Liu-MSFT 48,511 Reputation points Microsoft Vendor
1 answer

How to make the Popup control in WPF ignore mouse events

I want to implement a function: display Popup when the mouse enters the Grid, update the Popup position when the mouse moves, and close Popup when the mouse leaves the Grid. This is my current xaml and cs: MainWindow.xaml <Window…

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,762 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,860 questions
asked 2024-09-18T06:11:26.24+00:00
HoWe Yu 41 Reputation points
commented 2024-09-20T05:40:56.7866667+00:00
Hongrui Yu-MSFT 1,680 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Problem with DisableProcessing()

I'm trying to prevent a control from being rendered in Wpf because it takes too long to process the items. Since I haven't been able to achieve this, I'm now trying to prevent the screen Form from being rendered. After doing…

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,860 questions
asked 2024-09-19T01:36:18.99+00:00
zequion 401 Reputation points
accepted 2024-09-20T04:29:40.9933333+00:00
zequion 401 Reputation points
3 answers

how to return value from popup table to the C# asp.net code

Hi, On clicking a button on UI, we have to show a dialog or Popup Table on the center of the screen asking user to enter integer value of area(Mandatory) when one condition is met, then user clicks Ok(which has captureAreaVal() function in my script as…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,460 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 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,860 questions
asked 2024-08-29T14:32:28.9533333+00:00
VG 0 Reputation points
commented 2024-09-20T02:31:15.5+00:00
Lan Huang-MSFT 29,246 Reputation points Microsoft Vendor
1 answer

DateTime.ParseExact returns today if date string and format are set to "General"

During troubleshooting, I came across this weird behaviour which occurs when parsing text to create a DateTime object in C# (in .Net Core 8.0). Can anybody explain why the following statements return today's date when I would have expected them to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 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,860 questions
asked 2024-09-06T11:47:07.03+00:00
Shola Ogunde 0 Reputation points
commented 2024-09-20T02:29:34.05+00:00
Jiachen Li-MSFT 31,011 Reputation points Microsoft Vendor
2 answers

Connection Manager not getting Iniialized

Hi, I'm currently writing a C# code in Script Component which is making a connection to MSSQL DB using ADO.NET Connection Manager. But it returns a NullReferenceException every time when I run it. I have tried the sample code as mentioned in the link …

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,695 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,567 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,860 questions
asked 2024-09-04T15:02:14.76+00:00
Mittal, Umang 0 Reputation points
commented 2024-09-20T02:05:21.0666667+00:00
Jiachen Li-MSFT 31,011 Reputation points Microsoft Vendor
2 answers

Unable to fetch some group properties via C# SDK

I am trying to fetch groups via graph api and get resourceBehaviorOptions and resourceProvisioningOptions properties. Eventhough these properties exist in the direct graph api response, I am unable to find them when I use c# graph SDK. I can see these…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,890 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,860 questions
asked 2024-09-13T04:16:44.4666667+00:00
Yasitha Pandithawatta 141 Reputation points
answered 2024-09-19T23:35:17.5066667+00:00
Yasitha Pandithawatta 141 Reputation points
2 answers

All Toolbox Options Greyed in Visual Studio 2022

I have recently upgraded my WinForm C# application from .Net 4.7.x to .Net 6 I wish to make a change to one of the Forms, however when I try to add any control to any form, I find that all options are greyed out in the Toolbox, so I can modify any of the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,884 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,860 questions
asked 2024-04-20T11:10:48.4966667+00:00
Tony Hedge 6 Reputation points
answered 2024-09-19T19:27:22.0166667+00:00
JohnKarajim 0 Reputation points
2 answers

How to get current User outside of Controller in another layer

In ASP.NET Core 6, I need to get the current user in service layer This is code: public class ServiceModel { private readonly IHttpContextAccessor accessor; public ServiceModel(IHttpContextAccessor accessor) { this.accessor =…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
737 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,529 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,860 questions
asked 2024-09-18T22:15:23.81+00:00
mostafa ahmed 41 Reputation points
answered 2024-09-19T17:41:23.7666667+00:00
Bruce (SqlWork.com) 64,566 Reputation points