11,101 questions with C#-related tags

Sort by: Updated
1 answer

Should I bind navigation properties or entity ids in reusable components?

I am using Blazor with InteractiveServer at the applcation level and Radzen component library. I would like to create resuable components that fetch their own data for things like dropdowns. For example, I have a Request entity with the following…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
762 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,616 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,101 questions
asked 2024-12-05T20:38:11.81+00:00
Caleb Weeks 0 Reputation points
answered 2024-12-05T22:18:42.9933333+00:00
Bruce (SqlWork.com) 68,081 Reputation points
1 answer

Public Client Application MSAL.NET deployed to Azure App Service

I have developed a Web-Api application which does access 3rd party users mail. The application is obtaining access through MSAL.NET with a PublicClientApplicationBuilder sample of which is shown at the following link:…

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,101 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,019 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,435 questions
asked 2024-12-05T11:10:58.9666667+00:00
Avrohom Singer 0 Reputation points
answered 2024-12-05T22:02:09.5866667+00:00
Bruce (SqlWork.com) 68,081 Reputation points
1 answer

Application getting logout frequently - ASP.NET session has expired or could not be found - Microsoft.ReportViewer.WebForms

Dear all, we are getting below error frequently from few days without any deployment on production environment, unable to find the solution. even after increasing session time out and tried various suggestions on internet still facing the same issue.…

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,538 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,606 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,950 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,101 questions
asked 2024-12-05T08:06:48.54+00:00
Rupesh Musale (Ext) 0 Reputation points
answered 2024-12-05T17:44:14.8733333+00:00
Albert Kallal 5,331 Reputation points
1 answer One of the answers was accepted by the question author.

Reading Emails from outlook in C#

Hi, hope you are well. Junior dev here. I am trying to figure out how to get my C# application to read emails from a certain address, if it matches then check if it has an attachment. IF it does extract the attachment and store it locally. I can not…

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,101 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,327 questions
asked 2024-07-02T06:46:39.94+00:00
Keagan S 20 Reputation points
commented 2024-12-05T15:35:48.7+00:00
Yassine Hasni 0 Reputation points
1 answer

Looking for SQL Database advice for a cms

Hi I am looking for some advice on which sql database setup to use, I am building a multi tennent CMS, in the simplest form, it has 3 table structures 1 for file search, one for cms search and 1 for statistics. I can't use no sql becuase the costs are…

Azure SQL Database
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,101 questions
asked 2024-12-05T12:11:17.23+00:00
EnenDaveyBoy 71 Reputation points
edited an answer 2024-12-05T15:16:24.65+00:00
Mahesh Kurva 1,070 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to enable TCP protocol of SQL Server Express 2019 through C# code?

I have MS SQLExpress 2019 installed in Windows 11 desktop. I want to enable SQLExpress TCP protocol programmatically from Windows Application using c#. So, I have written following simple code. using…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,907 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,973 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.
14,141 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,101 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,675 questions
asked 2024-12-04T07:17:35.38+00:00
Anoop Choudhary 0 Reputation points
accepted 2024-12-05T13:17:04.8633333+00:00
Anoop Choudhary 0 Reputation points
2 answers

configurar permisos para acceso a sharepoint

Necesitamos conocer qué permisos API y configuración general necesitamos para una autenticación moderna desde c#. Por código obtenemos un token, pero nos da error 401 de no autorización. El acceso es para leer y escribir en librerias sharepoint.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,485 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,101 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,118 questions
asked 2024-12-03T14:00:07.6066667+00:00
Francisco Rubio Cid 0 Reputation points
commented 2024-12-05T12:36:49.69+00:00
Francisco Rubio Cid 0 Reputation points
1 answer

Azure batch immediately returning trigger to dependent task when resourcefilles are added

Hi, I am using Azure batch task dependencies feature and facing one issue. I have one parent task which needs some data to process. I have configured ResourceFiles for my parent task so that it can download the files to process. I have dependent (child)…

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
344 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,101 questions
asked 2024-12-05T06:06:56.4766667+00:00
Parikh, Disham [ext] 0 Reputation points
commented 2024-12-05T08:23:33.0033333+00:00
Parikh, Disham [ext] 0 Reputation points
1 answer

Unable to publish with fulltrustprocess and Multiple instances of UWP app

UWP experts , There are three components here. Main UWP app with multiple instances supported through package manifest - C# UWP FullTrustprocess that acts as the appserviceconnection server - C# .NET 8 WAPP Package that bundles UWP app and…

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.
11,101 questions
asked 2024-12-03T06:00:38.49+00:00
DotNET Fan 271 Reputation points
edited a comment 2024-12-05T03:57:08.4566667+00:00
DotNET Fan 271 Reputation points
2 answers

TSS.MSR / TSS.NET - How can I list persistent handles on a TPM2 device via C#?

If I am on Linux, with the tpm2-tools installed, I can run a tpm2_getcap handles-persistent command and get a list of persistent handles, like: 0x81000001 0x81010001 I want to do the same thing on Windows with an enabled TPM2. Ideally, I'd like to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,973 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,101 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,207 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,952 questions
asked 2024-12-04T16:32:15.3266667+00:00
Warrick Wilson 0 Reputation points
edited the question 2024-12-04T18:09:46.1033333+00:00
KarishmaTiwari-MSFT 20,222 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Invalid UserName in ASP.NET Core 6

I am working on an ASP.NET Core 6 MVC application that uses ASP.NET Core Identity. When I try to create a new user using the UserManager, I get this error: User name ' ' is invalid, can only contain letters or digits Username do not has any…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
762 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,671 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,101 questions
asked 2024-07-22T09:02:47.1366667+00:00
mostafa ahmed 41 Reputation points
edited an answer 2024-12-04T17:30:03.0266667+00:00
lokisinary 3d 0 Reputation points
1 answer One of the answers was accepted by the question author.

Azure.RequestFailedException: 'Cannot access source document location with the current permissions. Status: 200 (OK) ErrorCode: InvalidRequest

I have two containers in Azure storage, in order to do translations original and transcribed, they are containers, because I need to access it I have a method, to upload my document public async Task<Uri> UploadToAzureBlobStorage(string…

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,975 questions
Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
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.
11,101 questions
asked 2022-09-30T03:37:00.117+00:00
Eduardo Gomez 3,431 Reputation points
commented 2024-12-04T17:23:15.8566667+00:00
Emad Atassi 0 Reputation points
1 answer One of the answers was accepted by the question author.

Serverless Throttling?

Hi. I have written a method using the guidance at https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/tutorial-dotnet-bulk-import. To shorten the code I have removed most logging. It looks something like this (questions follow): public async…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,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.
11,101 questions
asked 2024-12-02T12:52:10.26+00:00
MikeM-8643 20 Reputation points
accepted 2024-12-04T15:48:06.5233333+00:00
MikeM-8643 20 Reputation points
3 answers

Can a custom windows service stop/start/restart itself? Created in Visual studio 2019 c#

Created a custom windows service in c# using visual studio 2019. I have created a custom winform application that communicates with the custom service using sockets. Since users don't have admin rights, its a pain to stop/start/restart 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,101 questions
asked 2024-12-03T21:23:13.1+00:00
Darryl Hoar 181 Reputation points
commented 2024-12-04T15:00:31.5066667+00:00
RLWA32 45,941 Reputation points
1 answer

How to access camera preview frames with MediaCapture class in Unity?

Using the Windows MediaCapture class we can capture videos and images on the HoloLens 2. The class also offers preview capabilities (see here). However, I am not sure how to get the preview stream within Unity and then display it to the user. In the docs…

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.
11,101 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
402 questions
asked 2024-11-15T08:24:11.62+00:00
Valentin 40 Reputation points
commented 2024-12-04T14:12:30.4266667+00:00
Chat Point 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Remove Language Folders (cs, es, tr, etc.) and resources.dll Files from WPF Project Output in .NET 8?

Hello, I’m developing a WPF application using .NET 8. In the bin output folder, several language-specific folders (cs, es, tr, etc.) are being generated along with .resources.dll files inside them, such as: …

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,795 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,101 questions
asked 2024-12-01T19:08:09.39+00:00
fatih uyanık 140 Reputation points
accepted 2024-12-04T11:16:14.48+00:00
fatih uyanık 140 Reputation points
2 answers

JSON for logging

Hello, I have the REST interface and would like to log the data, request, response. To make it clearer, correct JSON format. I notice this behavior. What would be a good solution 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.
11,101 questions
asked 2024-11-21T18:55:41.65+00:00
Noah Aas 505 Reputation points
commented 2024-12-04T09:48:30.17+00:00
Jiale Xue - MSFT 47,581 Reputation points Microsoft Vendor
4 answers

ASP.NET Core Web Site Publishing Problem from Subfolder

Hello, I am developing a website using Visual Studio with [ASP.NET] Core MVC (C#) .NET 8 and I have published my site. My project files are located in the httpdocs/frez folder of the server. But normally web files should be in the httpdocs folder. When I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,671 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,101 questions
asked 2024-11-28T12:07:06.8833333+00:00
Enes Gündoğdu 0 Reputation points
commented 2024-12-04T08:48:11.1366667+00:00
SurferOnWww 3,376 Reputation points
1 answer

Cant able to get all properties of user by using Graph API in C# ?

Code Line => User user = await graphClient.Users[userObjectId].Request().GetAsync().ConfigureAwait(false); I can able to fetch Green highlighted one but other than that getting null in "user1" (code line) object. question => Is…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,359 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,485 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,101 questions
asked 2024-11-21T10:26:25.2533333+00:00
Venkatesh Naik 20 Reputation points
edited the question 2024-12-04T03:24:57.4333333+00:00
Givary-MSFT 34,101 Reputation points Microsoft Employee
1 answer

Need graph api call full code for pushing notification for particullar user in C# console app

Hello, I am not able to find the full code or latest code that will send notification to the user from c# console application.Need your help please. I have tried this link…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,485 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,101 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,399 questions
asked 2024-11-26T14:43:50.52+00:00
Mayur 0 Reputation points
edited the question 2024-12-04T02:36:14.3866667+00:00
Givary-MSFT 34,101 Reputation points Microsoft Employee