Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

this is gonna be a long one so if you help me i would really appreciate it. i have a page where both create and update product is. my create page works find but i want this page to do update too so ...
Ali Sedghi's user avatar
-1 votes
0 answers
18 views

My habits have been ruined lately since a windows update (it seems) corrupted a file in .Net Framework, named clr.dll, preventing Visual Studio 2019 from launching (and not only that software). It ...
grimoiredark's user avatar
0 votes
0 answers
14 views

In my previous post, I didn't add many details and wasn't able to get effective help, so here I go again. I am currently creating a 2d game inspired by both papers please and not my neighbour at the ...
Adelija Zaveckaja's user avatar
-7 votes
1 answer
49 views

How to use a backgroundworker to encode ( base64 ) about 200 pdf invoices and write to sql db. Now i use a sleep 15 sec between every encoding because pdf sizes varie code to writ to sql db and ...
Robert R's user avatar
0 votes
0 answers
20 views

I have a custom task written in C#. This custom task has an argument defined like this: public required string[] StringArray { get; set; } Then in a .csproj file I have these definitions: <...
Marcel V.'s user avatar
  • 192
1 vote
1 answer
38 views

I'm trying to read a log file that was written from a custom ILoggerProvider in a dotnet application: HostApplicationBuilder builder = Host.CreateApplicationBuilder(); builder.Logging.ClearProviders();...
Paul's user avatar
  • 3,974
0 votes
0 answers
23 views

I am maintaining a legacy hybrid application (Main App is WinForms, hosting WPF UserControls via ElementHost). The Problem: When opening a WPF Modal Window (Window.ShowDialog()) from the WinForms main ...
panaceya's user avatar
-1 votes
1 answer
41 views

I have a C# program, and I am using Microsoft Visual Studio. I have been able to build and run the program without any issue for a long time. Now, unexpectedly I get this error: I:\source\megaSearch\...
xarzu's user avatar
  • 9,621
0 votes
0 answers
39 views

I'm trying to add tests to my MAUI app. I added the xUnit test project to a separate namespace. The tests only run in the terminal with the dotnet test command. If I use the test explorer, it doesn't ...
magister's user avatar
1 vote
2 answers
88 views

I tried this code: CREATE OR REPLACE FUNCTION public.t4(in iid int, OUT n1 text, OUT n2 text) LANGUAGE plpgsql AS $function$ BEGIN SELECT DISTINCT n1=l.name, n2=l.comment from ...
Yarr's user avatar
  • 47
0 votes
1 answer
73 views

I’ve been working as a .NET C# developer for a little over two years in a software company. For almost a year now, I’ve been leading (as team leader/PM) a project that actually started before I joined....
lorenzo mastrofini's user avatar
-4 votes
0 answers
64 views

How can I sort a dictionary that has string as its key and an int as its value by its values? I want to have a dictionary that counts how many times a word appears in a string, and I want to have the ...
IdoSC's user avatar
  • 19
Best practices
0 votes
4 replies
92 views

I need to process a list of FileStream objects with the DoSomethingWithFileStreams method like below. If I write code like this, I am concerned that the list of FileStream gets disposed before they ...
Tom's user avatar
  • 192
1 vote
0 answers
49 views

Learning EF Core, I am changing my mind on how to get the list of products with additional information (here symbolic code) -- see the loosely related (abandoned approach) at How to conditionally ...
pepr's user avatar
  • 21.1k
Advice
1 vote
3 replies
64 views

Description: I am building a web app, let's say about an organization for approving participation in a free service. There will be the following roles: Organization employee Citizen Administrator ...
Stathis Ath's user avatar
0 votes
0 answers
37 views

I have a C# application that sends emails using System.Net.Mail.SmtpClient. I send emails to multiple Google Group distribution lists. Some users belong to more than one group, so they end up ...
Kafkaa's user avatar
  • 89
-2 votes
1 answer
63 views

I draw triangles in OpenGL using DrawArrays(): public void DrawTriangle( Vector2 a, Vector2 b, Vector2 c, ShapeOptions shapeOptions = null) { shapeOptions ??= PresentationConsts.Shape....
Neomaster's user avatar
0 votes
1 answer
48 views

I have a main project of type console, and it references other library-type projects in the application. When I build the solution, it compiles normally, but when I run it in debug mode, it tries to ...
João's user avatar
  • 1
-1 votes
2 answers
100 views

public void Test<T>(T reference, T same, T differentOrGreater) { var comparisonInterface = typeof(T) .GetInterfaces() .FirstOrDefault( i => i.IsGenericType &...
codymanix's user avatar
  • 29.6k
0 votes
1 answer
78 views

Coming from a WPF background where you normally just bind to a property which updates the view, I want to update the information in a component when I have new data. So I have a item view that is ...
Typisch Bär's user avatar
1 vote
0 answers
46 views

I have a class with a collection of enums mapped into PostgreSQL native enum: internal class EventStackFilter { // other properties omitted public List<EventStackEventStatus> Statuses { ...
Sarrus's user avatar
  • 673
0 votes
0 answers
60 views

I have to upload a file to an embedded device running an API. First, I tried to write methods to do this in a test project. This works great: private static async Task<HttpResponseMessage?> ...
Oliver Bleen's user avatar
-3 votes
0 answers
104 views

I am using Microsoft Visual Studio Professional 2022. I'm creating forms programmatically adding content based on a JSON configuration, I need to set the size of the controls according to the ...
SPlatten's user avatar
  • 5,851
0 votes
1 answer
50 views

When I generate a data mapper library using Liquid Data Mapper, it always binds to .NET Framework 4.6.2, but I need it to target .NET 8. How can I change this functionality? My source is a CSV file ...
safepage's user avatar
3 votes
0 answers
131 views

I run the following benchmark just to evaluate new .NET 10: [SimpleJob(RuntimeMoniker.Net90)] [SimpleJob(RuntimeMoniker.Net10_0)] [MemoryDiagnoser] [HardwareCounters(BenchmarkDotNet.Diagnosers....
eternity's user avatar
  • 1,758
-1 votes
1 answer
56 views

My project is able to build and run, but when I want to publish the project, I get this : Warning As Error: Detected package downgrade: System.Net.NameResolution from 4.3.0 to 4.0.0. Reference the ...
hmmmmm's user avatar
  • 1
0 votes
0 answers
44 views

I'm working on a C# .NET Framework 4.8 SDK-style project (WPF, Sdk=Microsoft.NET.Sdk). I want to pass command-line arguments to my project when running from Visual Studio. I created a launchSettings....
韩吉斯's user avatar
-6 votes
1 answer
98 views

I have this method in my program, it is meant to register the gender of the user for later on in the program (with Male and Female as the only valid options): public static void Main(string[] args) { ...
Matto's user avatar
  • 1
0 votes
1 answer
43 views

My DevExpress ASPxGridView reloads the entire dataset every time I expand a grouped row, causing performance issues. The LoadGeneralSearch() method fires on each expand, re-executing the SQL query. ...
Sahil's user avatar
  • 1
Advice
0 votes
2 replies
52 views

Here's the general structure: public struct Choice { public string result; public string nextBranch; } public struct Branch { public Dictionary<string, Choice> choices; } public ...
Andrew Werner's user avatar
3 votes
1 answer
105 views

This doesn't compile: public class MyClass { private string Name { get; init; } public MyClass() { MyMethod(); } public void MyMethod() { Name = "Hello&...
FluidMechanics Potential Flows's user avatar
0 votes
1 answer
34 views

I'm building a dotnet maui application. One of the targets that I am using is Mac OS X maccatalyst. My app consists of a hybrid web control that goes into the safe area with negative top margin so ...
chris's user avatar
  • 83
1 vote
0 answers
35 views

I have created a .NET app that uses Microsoft.ML.OnnxRuntime.Gpu for interference. Now I'm trying to integrate it with Azure Kubernetes. We have made the setup with Tesla T4 GPU and we confirmed it's ...
ervin's user avatar
  • 555
0 votes
0 answers
74 views

I have a solution with two projects: A class library targeting .NET Standard 2.0 An application targeting .NET Framework 4.7 The .NET Standard library references a NuGet package that ships different ...
Özgür Utku's user avatar
0 votes
0 answers
39 views

I'm trying to log error objects as JSON in my ASP.NET Core 9 Web API. I am following the wiki in the NLog documentation: Structured logging. I have NLog.Web.AspNetCore v6.0.5 as a dependency. In ...
NeartCarp's user avatar
  • 227
1 vote
1 answer
101 views

public interface A<out T> { public T Property { get; } } public class BaseClass : A<string>, A<int> { string A<string>.Property => "BaseClass"; int A&...
popsicle7500's user avatar
0 votes
0 answers
58 views

I have a stdio mcp server running locally. The mcp server builds and runs. I have created 3 basic mcp tools that I will use for context when I prompt in Copilot however my tools are just not ...
Harold_Finch's user avatar
-3 votes
0 answers
51 views

When I try to create a scaffolded item for my identity, I get this error: This is what I did to create my Blazor identity: Currently, my Data folder only has a file called FoundBoxContext.cs: Does ...
boy's user avatar
  • 35
0 votes
0 answers
37 views

I am trying to install and configure the HangFire to make background service in an ASP.NET Core 8 MVC app. I have been installing all packages but when I try to make the configurations it throwns an ...
FernandoPaiva's user avatar
0 votes
0 answers
43 views

When attempting to add additional folders to my MSTest project and creating test class files within them that have tests that use the DataTestMethod tag with DataRow. Test explorer improperly ...
calkinss1's user avatar
1 vote
1 answer
41 views

My WPF app is Windows only. I cleared my */Releases folder and build my project: dotnet publish --self-contained -r win-x64 -o .\publish Then I created a release: vpk pack --packId MyApp --...
Pavlo Nesterenko's user avatar
0 votes
1 answer
42 views

I'm using NLog with ApplicationBuilder. The problem is that application startup failure is not captured with NLog. Is there something I can do with it, or should I report this to MS? Here is the ...
Artem Grunin's user avatar
1 vote
1 answer
97 views

I want to not get token from login endpoint in Swagger every time I run and debug the API code. I have added this code to the program.cs file to get authenticated, but when I test an endpoint with an [...
Zahra's user avatar
  • 2,890
1 vote
0 answers
53 views

For local development I want to connect my Azure Function to a locally running RabbitMQ instance and run everything locally. But the queue is not found, even though I made sure it exists (see ...
Heinrich's user avatar
0 votes
1 answer
48 views

I tried using Puppeteer Sharp in headless mode to generate a PDF for a dashboard that contains a map, which uses a <canvas> tag for its content. In the generated PDF, the heading is displayed ...
chaitanya kacham's user avatar
Advice
0 votes
0 replies
31 views

I'm using Contentstack.Management.CSharp v0.5.0 and need to fetch entries with a complex query involving nested $and and $or conditions. My Query: { "$and": [ {"is_enable": ...
Reshma Barbate's user avatar
1 vote
2 answers
84 views

I have a class for lists called UniqueListWithActions<T> with the constructor method public UniqueListWithActions(List<T> _list) { list = _list; } list is declared as ...
Isaac Bargamian's user avatar
1 vote
0 answers
52 views

I have a typed HttpClient, added to DI like this: builder.Services .AddHttpClient<IExternalApiClient, ExternalApiClient>() .ConfigurePrimaryHttpMessageHandler(() => ...
Eugeniy  Maksimov's user avatar
-1 votes
0 answers
48 views

I've got a C# Windows service that sends out an email using MailKit when the service is started (or if there's been an error). This has been working flawlessly for years. At some point on 23/11, it ...
mark jerrom's user avatar
0 votes
0 answers
72 views

I'm new to C# and I'm currently trying to extend a control. The project compiles fine, but unlike every other tutorial/resource I've seen, the extended control does not show up in the toolbox. This is ...
Parashoo's user avatar
  • 325

1
2 3 4 5
32478