10,437 questions with C#-related tags

Sort by: Updated
0 answers

Sql server database saved credentials in memory

Hello team, SQL server saved the credentials in memory in plain text. So how can we mitigate this issue in 2 tier thick application.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,494 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,998 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,437 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,580 questions
asked 2024-06-07T09:29:04.2733333+00:00
Mashuk Raza 0 Reputation points
1 answer

Database credential saved in memory.

Hello team, While testing thick client application. I dumped the memory from task manager and process hacker tools and I got database credentials. So How can I mitigate this issues in C++, C# and .net application. Please suggest and explain in details so…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,494 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,437 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,580 questions
asked 2024-06-05T06:44:07.43+00:00
Mashuk Raza 0 Reputation points
commented 2024-06-07T09:24:05.15+00:00
Mashuk Raza 0 Reputation points
1 answer

Visual Studio C# Windows Forms Application touch screen exception error

I have Windows Forms Visual Studio Project; I have added the code to be able to use a finger instead of the mouse on touch screen monitor. When I use a mouse, everything is working, but when I use a finger to top and double top on the screen also working…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,860 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,735 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,437 questions
asked 2024-06-06T19:12:04.4133333+00:00
Gennady Gurin 21 Reputation points
answered 2024-06-07T08:37:08.4766667+00:00
Jiale Xue - MSFT 39,411 Reputation points Microsoft Vendor
0 answers

How to set up WinUI3 applications to run as administrators

I'm begging to write WinUI3 application. Administrator privileges are required for certain functions. In the Win-form program, simply configure the following in the app. manifest <requestedExecutionLevel level="requestAdministrator"…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
737 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,437 questions
asked 2024-06-07T08:35:00.8433333+00:00
C CB 20 Reputation points
1 answer

How to reproduce the UI control from mock-up using wpf?

Hi Team I have a mock-up and want to reproduce it using wpf controls given by Microsoft forms in windows. Below is my current code and need some adjustment, as well screen shot of the mock-up want to produce using wpf ui controls. ``

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,691 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,437 questions
asked 2024-05-28T16:45:17.65+00:00
Gcobani Mkontwana 40 Reputation points
edited the question 2024-06-07T07:55:36.76+00:00
PRADEEPCHEEKATLA-MSFT 81,151 Reputation points Microsoft Employee
1 answer

How to access/Update Group Policy Objects using C sharp

Hi, We are referring below link to access group policies programmatically   using c sharp. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/wmi_v2/class-library/gpo-class-microsoft-grouppolicy This is sample code which we have written…

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,437 questions
asked 2024-05-08T07:35:50.82+00:00
commented 2024-06-07T06:41:03.4933333+00:00
Jiale Xue - MSFT 39,411 Reputation points Microsoft Vendor
1 answer

Custom fonts not working when uploading Maui Android project to Play Store

I have added custom fonts in the font directory of my Maui project's Resources directory and updated the MauiProgram.cs file accordingly. The fonts work fine when I deploy the application using Visual Studio, but when I publish the app and upload it to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,028 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,437 questions
asked 2024-05-21T16:58:13.6333333+00:00
Mujtaba Ali Panjwani 0 Reputation points
edited the question 2024-06-07T06:05:13.8466667+00:00
Anna Xiu-MSFT 27,016 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

PDF File not opening in modal popup in asp.net using embed

I am unable to open the pdf file which is located in file server path through modal popup. pls. find below code. <script type="text/javascript"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,349 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,437 questions
asked 2024-06-06T13:53:41.8333333+00:00
Gani_tpt 1,986 Reputation points
commented 2024-06-07T04:06:18.46+00:00
Gani_tpt 1,986 Reputation points
2 answers

convert letters increase by 1

Hello, Mask_range="ABCDEFGHJKLMNPQRSTUVWXYZ" Not allowed I and O NewValue: AA AB AG AH BA **Input** NewValue1: AB AC AH AJ BB **Output** NewValue2: …

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,437 questions
asked 2024-06-06T16:23:59.4166667+00:00
Noah Aas 280 Reputation points
answered 2024-06-07T03:28:38.13+00:00
Hongrui Yu-MSFT 495 Reputation points Microsoft Vendor
2 answers

How to check if an audio file is being played by programs like video players or audio players using C# as console-based app?

I want to check if an audio file is being played by audio or video player programs or by other programs. Since I don't have any knowledge or somehow solid knowledge about how to do it, I hope, you all(Microsoft Q&A community) will help me 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.
10,437 questions
asked 2024-06-04T15:43:31.9966667+00:00
Rahmatulloh 40 Reputation points
edited a comment 2024-06-06T20:58:03.48+00:00
KOZ6.0 5,545 Reputation points
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,269 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,442 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,437 questions
asked 2024-06-04T13:24:09.7766667+00:00
Cenk 976 Reputation points
commented 2024-06-06T18:18:08.2733333+00:00
Bruce (SqlWork.com) 58,856 Reputation points
3 answers One of the answers was accepted by the question author.

REST interface, server for GET,PUT,POST,DELETE

Hello, My goal is to control a Rest Server from a WPF C# desktop app. Get, Push, Pop, Delete should be tested. The server does not require extensive logic, only test data. Later, the customer REST server is connected. How can I achieve this? How should I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,269 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,349 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,437 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.
311 questions
asked 2024-05-23T17:15:44.0466667+00:00
Noah Aas 280 Reputation points
accepted 2024-06-06T16:18:48.6133333+00:00
Noah Aas 280 Reputation points
0 answers

how to fix "Designer load encountered and error. Please ensure that the project can be built successfully."

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,860 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,437 questions
asked 2024-04-12T17:01:22.2533333+00:00
Santos, Mark Jairo (Student) 5 Reputation points
commented 2024-06-06T15:23:35.8466667+00:00
mikefinch87@gmail.com 60 Reputation points
3 answers One of the answers was accepted by the question author.

How to open pdf file in modal popup in ASP.NET C#

I am developing ASP.NET application. i used gridview to insert, update and delete the data. Also, i am uploading documents in file server path. now, i am uploading all the documents as pdf and in past days i have uploaded document as image. Now and…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,349 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,437 questions
asked 2024-06-04T18:32:27.64+00:00
Gani_tpt 1,986 Reputation points
answered 2024-06-06T14:00:11.34+00:00
AgaveJoe 26,426 Reputation points
3 answers

Visual Studio 2022 generates virus?

I was just now following a tutorial and asked to run my code. The execution failed because it did not have access to the file, and my virus scanner then reported the file had been quarantined as it detected Gen:Variant.Cerbu.123013 Anyone else…

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,437 questions
asked 2021-12-22T06:46:13.877+00:00
Michael Frandsen 16 Reputation points
answered 2024-06-06T12:52:58.2266667+00:00
José Feitosa de Andrade Filho 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to replace OperationContext in new V12 SDK Azure.Storage.Blobs

I'm switching from Microsoft.WindowsAzure.Storage to Azure.Storage.Blobs. In the former versions I could log retries, this seems to be missing in the new SDK. I used OperationContext for this: var context = new OperationContext(); …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,860 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,795 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,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,437 questions
asked 2024-06-04T11:18:12.8033333+00:00
Becker, W 66 Reputation points
accepted 2024-06-06T11:02:12.6966667+00:00
Becker, W 66 Reputation points
1 answer

Mitigation for Dll hijacking

Hello Team, I found dll injection in c#, .net and c++thick client applications. But to perform dll here I needed admin access. in this case I had admin access. So what will be the standard mitigation to prevent dll injection after even get the admin…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,494 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,437 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,580 questions
asked 2024-06-03T09:12:59.99+00:00
Mashuk Raza 0 Reputation points
commented 2024-06-06T08:26:12.35+00:00
Jiale Xue - MSFT 39,411 Reputation points Microsoft Vendor
4 answers

login.microsoftonline refused to connect from iframe

Hi All, I have an enterprise application integrated with Azure AD using SAML SSO. Also, all the users in the tenant has MFA and SSPR enabled with few users yet to configure their SSPR. Architecture of application: Enterprise app is similar to an…

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,437 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,992 questions
asked 2021-05-08T09:55:15.427+00:00
Diljith PC 16 Reputation points
commented 2024-06-06T07:59:35.0533333+00:00
Samuel Breu 0 Reputation points
2 answers

exeがwindows defenderに検疫される

exeを作成して 複数のユーザーからダウンロードをするのですが、 その時に、exeがwindows defenferに引っ掛かり検疫されたり、されなかったりするのですが その違いは何でしょうか。 ちなみに、構成としては インストーラexe(←デジタル署名あり  ├本体.exe(←デジタル署名なし  └dll等 また、「本体.exe」にデジタル署名を付与すれば 上記の問題は解決するのでしょうか。 ご教授いただければ幸いです。

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,437 questions
asked 2024-05-24T10:16:40.0766667+00:00
佐藤 誠紘 0 Reputation points
edited the question 2024-06-06T06:35:27.9433333+00:00
Rakesh Gurram 4,320 Reputation points Microsoft Vendor
1 answer

My listview is listing only the id instead of 3 items on the table

PLEASE HELP ME I am working on sqlite database , i have the following code in c# maui return (await conn.Table

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,028 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,437 questions
asked 2024-05-28T15:40:05.35+00:00
Gbenga Banuso Odumosu 40 Reputation points
edited the question 2024-06-06T06:34:54.62+00:00
Rakesh Gurram 4,320 Reputation points Microsoft Vendor