Category "c++sharp"

What does "object is enumerated" mean in C#?

I've been reading lately articles and documentation about deferred execution, LINQ, querying in general etc. and the phrase "object is enumerated" came up quite

EF6 allow read but disable insert/update/delete during transaction

I am doing some "sync" between different platform. During this sync I try to add/update/remove records. For it I'm wrapping all functionality in TransactionScop

Calculate number of pages in docs file by dot net and C# and Syncfusion.DocIO.Net.Core Package

I have a .net Core 3.1 webapi. I want to get the number of pages are in docs and doc file. Am using the Syncfusion.DocIO.Net.Core package to perform operation

.NET CORE, how to get file location for an exception in a web app, in middleware?

I've seen this question: How can I get the line number and file name from an exception in net Core? And tried the code, but it always says line 0 and no file na

How to include .aspx and its content into a .cshtml view?

I'm kinda new on .net and I ignored the existence of Controllers, Routing and Views and I already created my pages and their code behind on .aspx files and I wa

Fill the DataSource of a DataGridView with existing Columns

Is there a way to fill the DataSource of a DataGridView using the existing Columns? I'm trying to set a DataSource to my DataGridView; every time I set my DataS

C# ODBC driver with DBF database in parallel not working as intended

Hi everyone this is my last resort, i think I'm getting something wrong but can't get unstuck I was trying to load some old DBF files at startup to create my da

Why do I get "The response ended prematurely" when using the HttpClient in C#?

My first code of HTTP Client in .Net Core. The server is running on my PC as well, so I want to send it to localhost. I've added printing of the inner exception

Workaround to retreive E-Mails using Uipath

Uipath studio: 2021.10.3 Package Uipath.Mail.Activities: 1.3.0 Hi everyone, My objective is to retrieve E-Mails from a particular E-Mail Address throught Uipath

Acumatica Customization - How to remove anonymous delegate from PXGraph.RowInsertingEvents Collection?

I‘m working on customization that involves adding extra Sales Person transactions when Cancelling/Correcting an Invoice. As part of the development effort

Why I am Getting Same Error While Starting Application ? "InvalidOperationException: Unable to resolve service"

Error => An unhandled exception occurred while processing the request. InvalidOperationException: Unable to resolve service for type 'Business_Logic_Layer.Ho

Intellisense not working in VSCode - OmniSharp Error

Intellisense has stopped working for me and whenever I run VSCode this error comes up in the OmniSharp Log. [warn]: OmniSharp.MSBuild.ProjectManager Fai

Get/set the resolution of an image file using C# net5.0 but without System.Drawing.Common?

Using System.Drawing, it is easy to get the HorizontalResolution and VerticalResolution of an image file. In .NET 6, System.Drawing.common will be disabled (by

C# Utilizing cancellation tokens for each Task created

I have a task method that generates temperature profiles in my MainWindow but is called in another form when the user inputs data for a lot (an item produced) i

How can I tell if IRegistrationBuilder.EnableInterfaceInterceptors() has already been called?

I'm using Autofac.Extras.DynamicProxy to write a couple of IInterceptors. They can be used individually, or both together. I want consumers of these interceptor

how to deserialize xml arrayItems in enum if there are unrecognized elements

The goal is to deserialize xml-arrayitems into my specific enum. using System.Xml.Serialization; public enum Example { [XmlEnum(Name = "Ex1")] Ex1,

C# IOException Cannot locate resource

I have a C# project where I have some PNG files in a Images directory. The structure of the project can be simplified to: | ViewModel.cs View.xaml | [Images]

How to re-render Blazor component when a parameter changes

I have two Blazor component. First component just displays the list of students from a JSON api <select @onchange="selectStudent"> @foreach(var student

Private Artifactory Package not showing up in Visual Studio

in the past hour I used Visual Studio to package a NuGet .nupkg file, and then used the following commands to push my .nupkg file to a private artifactory repo:

JsonElement and null conditional operator (KeyNotFoundException)

I have a JSON object that I get from API and I need to check for error in the response of the JSON. However, when there is no error the error value is not prese