Questions tagged [.net]

Do NOT use for questions about .NET Core - use [.net-core] instead. The .NET framework is a software framework designed mainly for the Microsoft Windows operating system. It includes an implementation of the Base Class Library, Common Language Runtime (commonly referred to as CLR), Common Type System (commonly referred to as CTS) and Dynamic Language Runtime. It supports many programming languages, including C#, VB.NET, F# and C++/CLI.

0
votes
0answers
6 views

Visual Studio: "Failed trusting the certificate"

On Windows 10/11, With Visual Studio 2017-2022, when serving a web API via HTTPS with Kestrel or IIS, Visual Studio prompts me to trust the self-signed certificate that ASP.NET Core has generated. If ...
0
votes
1answer
7 views

Why do I get scrambled message body data from Azure Event Hub. Was following official tutorial to get data using console app

I was following this article from Microsoft to try to consume event data from Event Hub. I have a esp32 sending telemetry message every 10 second to Azure IOT hub, IOT hub will then route the message ...
-2
votes
0answers
15 views

Is there way to implement efficient painting in WPF supporting layers? [closed]

I want to write simple painting application, which will support layers (like in GIMP for example). Layers could be hidden, and user should have option to pick on which layer he wants to paint. Layers ...
0
votes
0answers
10 views

How to embed Github Gist in Blazor Wasm?

I'm trying to embed github gist in my .net 6 blazor wasm application. <script> tag in general is not allowed inside blazor component. so I added it as MarkupString as shown below, @(new ...
0
votes
0answers
23 views

Auto-Generated AppData/Local folder being "incorrectly" created

when I run a .net exe, a corresponding folder is created is created C:\Users\UserName\AppData\Local\AppName inside this folder, another folder is created AppName_Url_ABCXYZ inside this folder, yet ...
0
votes
0answers
9 views

How can I induce context switches for the purpose of concurrency testing on .NET Core?

I'm trying to perform concurrency testing of a concurrent data structure. My strategy is to run the test on many threads and hope for as many context switches as possible. Every context switch is an ...
0
votes
0answers
11 views

Cudafy.Net System.ComponentModel.Win32Exception: The system cannot find the file specified

I downloaded cudafy here: https://github.com/lepoco/CUDAfy.NET/releases/tag/v.1.0.0. I use VS 2022, .NET 4.8. When executing this code, I get System.ComponentModel.Win32Exception. ...
1
vote
1answer
33 views

Load file system icon at runtime C#

I have some C# code to get a icon from an embedded resource that works fine using a URI. MyIcon = new System.Windows.Forms.NotifyIcon(); Stream iconStream = Application.GetResourceStream( new Uri(&...
1
vote
1answer
20 views

C# IList Equals: Why is there a nullable compiler warning if the nullable typ could not be null?

I want to write my own Equals-method for two ILists. I've started with null checks and list entry counts. I thought I checked all possibilities,nevertheless after the null-checks I got the compiler-...
0
votes
0answers
9 views

Creating Variant Products In Aliexpress API Using PHP. (You Don't Need Aliexpress API knowledge to answer the question)

Using Aliexpress API, I am trying to create some products with variations. (For example a T-Shirt, with 5 sizes, and 3 colors). A Total 15 variants. Aliexpress API documentation provides examples on ...
0
votes
0answers
29 views

Calling .Net 6 from Excel VBA, some calls are running ok others aren't

i've setup a project that uses .Net 6 and is call from excel VBA. Some of the functions work fine but others are not. Its really not clear to me why they dont work. I've tried everything i can think ...
0
votes
1answer
20 views

Azure Service Bus add get requests to queue

So I am having so problems with desining queue, my API application to gather data needs to call another endpoint, so to avoid too many requests I wanted to put those requests into the Azure service ...
1
vote
2answers
29 views

NewtonSoft is not deserializing json to object when in release mode

I am facing a weird error in my Android Xamarin Forms app. Unable to find the root cause of it. Following is my code which gets the API response and deserializes it to an object. public async static ...
0
votes
0answers
10 views

Bind data to CartesianChart without setting datacontext using Live Chart in WPF

When I set up datacontext like this then everything works fine. My backend code public partial class ucMyGraph : UserControl { public ucMyGraph() { InitializeComponent(); ...
0
votes
1answer
53 views

Await operator in C# spanning a background Thread

Lets assume I have the following simple program which uses the await operator in both DownloadDocsMainPageAsync() and Main(). While I understand that the current awaitable method gets suspended and ...

15 30 50 per page
1
2 3 4 5
20969