10,642 questions with C#-related tags

Sort by: Updated
0 answers

Run a scheduled job in Azure app service using Quartz.net

Hi, I am using a .Net console app (A) deployed in Azure app service to run a scheduled job using Quartz.net library. The job is configured to execute another .Net console executable (B) during the trigger. But executable(B) randomly stops execution in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 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,642 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,402 questions
asked 2024-07-25T16:09:06.29+00:00
Joby Joby 0 Reputation points
0 answers

Effective file search solution in UWP

Hi, I need to search for files based on their type, creation date, and size (something like in windows). What are the options for an efficient search? I tried to use the Storage API, but the search is quite slow, in turn, System.IO can access folders…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,096 questions
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,642 questions
asked 2024-07-25T15:52:39.7766667+00:00
123244 0 Reputation points
2 answers

ReadAsStringAsync and ReadAsByteArrayAsync without Cancellationtoken

I use the latest version of VS and C# in a .Net 8 project. I have a function that retrieves the content of a remote file using HttpContent.ReadAsByteArrayAsync() and HttpContent.ReadAsStringAsync(); I can't use the CancellationToken parameter because…

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,642 questions
asked 2024-07-25T00:28:16.9133333+00:00
zequion 271 Reputation points
answered 2024-07-25T15:46:06.8766667+00:00
Bruce (SqlWork.com) 61,491 Reputation points
2 answers

The scriptmain.cs can not be found in the SSIS package

I have a SSIS package with a script task. I can edit this script taks, but when I add a breakpoint in the C# code and I run the package I get an error that the ScriptMain.cs can not be found. I use Visual studio 2022 with data tools 2017 and integration…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,885 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,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,642 questions
asked 2024-07-17T08:24:57.6333333+00:00
Eric Bezemer 196 Reputation points
commented 2024-07-25T15:42:17.6633333+00:00
Yitzhak Khabinsky 25,731 Reputation points
1 answer One of the answers was accepted by the question author.

Advice on C# code to be triggered during an event

Hello Forum. I am looking for some advice. I am going to write some code to produce a program that waits until a system event happens and then launches., Is this a situation when I should write a PROCESS rather than a piece of code to be compiled into…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,420 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,642 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,717 questions
asked 2024-01-22T14:41:42.9666667+00:00
William Thompson 120 Reputation points
accepted 2024-07-25T15:21:26.76+00:00
William Thompson 120 Reputation points
7 answers

Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass'

Hi I've this C# application which opens excel file and updated another excel file. The application developed in Visual studio 2005 and Office 2016. I've recently uninstalled Office 2016 and installed Office 365. Since then " Unable to cast…

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,642 questions
asked 2021-02-04T07:21:21.033+00:00
Venkata Ramana Nori 36 Reputation points
answered 2024-07-25T15:20:07.0166667+00:00
CobraDev 0 Reputation points
0 answers

UWP eSimManager download profile fails

Hello, i am trying to use the eSimManager to mange eSim in Windows 11. my code is var result = await _eSim.DownloadProfileMetadataAsync("MY ESIM PROFILE ACTIVATION CODE"); but i get result of "cardGeneralFailure" the eSim…

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,642 questions
asked 2024-07-23T15:00:04.3+00:00
mgal 0 Reputation points
commented 2024-07-25T10:53:36.15+00:00
mgal 0 Reputation points
1 answer

How to send Mail using azure Entra Id User tenant mail in .NET core programmatically ?

Hi, I have an azure Entra ID Subscription where I have created user and the email with my domain, For example (ABC@abcemi.com) and I tried to send mail programmatically. Here are the steps that I have followed to Send Mail via .NET core code: - …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 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,642 questions
asked 2024-07-23T14:41:16.6833333+00:00
Kuldeep Y 41 Reputation points
commented 2024-07-25T10:44:34.2166667+00:00
Kuldeep Y 41 Reputation points
2 answers

Connection string issue

Hi, What kind of file can be inserted, regarding Connection string, into Maui App?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,227 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,642 questions
asked 2024-07-16T06:07:51.48+00:00
Peter_1985 2,586 Reputation points
commented 2024-07-25T09:54:09.04+00:00
Peter_1985 2,586 Reputation points
0 answers

Using Xamarin.Google.UserMessagingPlatform with MAUI for presenting a GDPR consent message

I am trying to present a GDPR consent message in a MAUI app using the Xamarin.Google.UserMessagingPlatform NuGet package. I'm targeting Android 34 on .NET 8. I have used both this: https://stackoverflow.com/a/71299843/7360423 and this:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,227 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,642 questions
asked 2024-07-25T08:45:20.6933333+00:00
Costas Athan 46 Reputation points
2 answers

How to fix error code 2147516556 (0x8000808c) in VS 2022

Reference Library uses .NET 8.0, which I configured it as such. Build is successful but Debugger shows below error and program failed to open. The target process exited without raising a CoreCLR started event. Ensure that the target process is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 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,642 questions
asked 2024-07-24T02:12:43.5233333+00:00
Manfred Koh 0 Reputation points
edited a comment 2024-07-25T01:23:22.9133333+00:00
Manfred Koh 0 Reputation points
1 answer One of the answers was accepted by the question author.

Taskbar (Shell_TrayWnd) Alignment of items using Win32 API

Currently, I have a problem with changing the alignment of items such as Start Button, Search, Pinned items. I wrote code, which works in a Console Application, but it won't work in a WinUI 3 or UWP Packaged Desktop application because of restrictions…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,096 questions
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,519 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,642 questions
asked 2024-06-14T12:30:53.7566667+00:00
Jacob Mordon 65 Reputation points
commented 2024-07-25T00:49:59.66+00:00
Michael Taylor 51,346 Reputation points
3 answers

Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass'

Hello, I have been developing an application to take a file that has been exported from the web and open it up. I have it working completely for 64 bit office, but I am running into issues trying to get it to work for 32 bit office. Here is the Error I…

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,642 questions
asked 2022-05-19T19:22:23.917+00:00
Trevor Strike 1 Reputation point
answered 2024-07-24T22:33:33.9833333+00:00
Karen Payne MVP 35,386 Reputation points
1 answer One of the answers was accepted by the question author.

DOTNET sandbox not working

I am trying to take the C# class on Microsoft learn. https://learn.microsoft.com/en-us/training/modules/csharp-write-first/3-how-it-works However the right-side dotnet sandbox refuses to load. It just spins endlessly and renders nothing. Was…

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,642 questions
asked 2024-03-07T16:59:09.4133333+00:00
Sawyer Jenson 30 Reputation points
commented 2024-07-24T22:12:16.2966667+00:00
tray haroun 0 Reputation points
1 answer

How to fix SystemLoadExecption

Exception has occurred: CLR/System.TypeLoadException An unhandled exception of type 'System.TypeLoadException' occurred in Winappli.dll: 'Could not load type 'Microsoft.Toolkit.Uwp.Notifications.NotificationActivator' from assembly…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,872 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,642 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,981 questions
asked 2024-07-23T23:13:08.8466667+00:00
Nat323 0 Reputation points
commented 2024-07-24T10:28:00.3+00:00
Viorel 114.7K Reputation points
1 answer One of the answers was accepted by the question author.

How to set mail do not forward with Graph Api?

I want recipients cant forward the mail what I send with graph api .Could you tell me how do it?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,435 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,642 questions
asked 2024-07-23T09:11:33.21+00:00
Joe Fu 20 Reputation points
accepted 2024-07-24T03:04:57.2133333+00:00
Joe Fu 20 Reputation points
1 answer 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.
726 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 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,642 questions
asked 2024-07-22T09:02:47.1366667+00:00
mostafa ahmed 41 Reputation points
accepted 2024-07-23T22:36:34.12+00:00
mostafa ahmed 41 Reputation points
3 answers

How to Read a SharePoint List Using .NET 8?

System.Net.WebException: 'The remote server returned an error: (403) FORBIDDEN.' I am using .NET 8, and I've already tried with GetACSAppOnlyContext but it wouldn't work because I need to access more than 5 SharePoint sites simultaneously. There was…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,280 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,642 questions
asked 2024-07-17T18:10:37.2833333+00:00
Artillis Prado 0 Reputation points
answered 2024-07-23T21:28:48.4866667+00:00
Bruce (SqlWork.com) 61,491 Reputation points
1 answer

Issue with Azure Orchestration Function

I am building an Azure Orchestration Function App that has four different functions. The first function is a start task function that removes containers inside a Cosmos DB database. The second function, which I am having a problem with, scans a Cosmos DB…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,664 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,643 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,081 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,642 questions
asked 2024-07-23T03:09:47.8733333+00:00
Redar Ismail Chicho 1 Reputation point
answered 2024-07-23T16:22:26.49+00:00
Sina Salam 7,286 Reputation points
3 answers

Play an audio stream in client browse

I'm trying to send my soundcard audio to a HTTP stream with NAaudio so any browser on the LAN can open this one. Like an LAN Radiostation or something and use the default audio player from the browser. My sound is recorded with bytes, send, but 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.
10,642 questions
asked 2024-07-20T11:24:10.01+00:00
donovan 21 Reputation points
answered 2024-07-23T14:43:52.6333333+00:00
Jiale Xue - MSFT 43,046 Reputation points Microsoft Vendor