Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 answers
10 views

Service Bus Output in the Isolated Worker Model - .NET8 Function App

I have a function app that we are upgrading from the In-Process Model to the Isolated Worker Model. Below I have a dumbed-down, pseudocode version of what I am working on with the relevant method ...
Gabriel Whitehair's user avatar
0 votes
0 answers
8 views

Adding global attributes to OpenTelemetry metrics

I am using OpenTelemetry's Metrics to get information about my environment. I have several tenants that will use OpenTelemetry and will all be ingested into Prometheus and then Grafana. I would like ...
Adri's user avatar
  • 1
-1 votes
0 answers
19 views

How to hide tabpage in C#, you can't, but you can

OK You can't hide a TabPage in .NET as there is no visible property. However, you can have a MISC Tab and have several GroupBoxes on it which do have the Visible Property. Your MISC tab would have ...
Mike Sr's user avatar
  • 531
0 votes
1 answer
20 views

.NET Integration Test Singleton Service instantiated twice

I am working on a .NET SQL Server based application for which I need to write Integration tests. I am using CustomWebApplicationFactory to overide DbContextFactory to use an in-memory SQLite DB in ...
ankushbbbr's user avatar
0 votes
0 answers
4 views

How to add excludecodecoverage attribute at namespace level?

I have one project which containg 3 foplders Models, Services and Core where in models folders contains POCO class which i dont want to include part of coverege so how can we do that? I know that ...
Jasmin Solanki's user avatar
0 votes
0 answers
13 views

.NET 8 / Blazor WASM Rendering Issues with Identity Server

I was tasked with experimenting with Duende Software's Identity Server for a future project. Something strange is happening with the rendering of components which causes the app to lose all of the ...
mharre's user avatar
  • 253
0 votes
0 answers
10 views

.Net MAUI Map elements Tabbed event

i am working on .net maui map, drawing circles using mapElement but struggling to find the an event/command that triigers when clicked on a circle. In xamarin forms we handle circle element cliked ...
Muhammad Usman's user avatar
0 votes
0 answers
3 views

Reference to IExceptionHandler interface not being resolved from Microsoft.AspNetCore.Diagnostics

I am adding a global exception handling project to my solution and have installed the Microsoft.AspNetCore.Diagnostics NuGet package. Although the package is recognized and listed in the project's ...
aim's user avatar
  • 1
0 votes
0 answers
17 views

Multi-Collection Views - Display .NET MAUI CollectionView within a CollectionView

I am developing a c# .NET Maui application that creates a bowling app that maintains a recap of scores for bowling team. The requirements are that it is a general application that supports leagues ...
Shades49's user avatar
0 votes
0 answers
10 views

Identity server redirection problems on the same browser instance

I have a problem when I use many account in the same instance of browser. In the first connection from my site to the client site, the authorize endpoint is invoking, and I have in the log: "No ...
Joseph Khoury's user avatar
0 votes
0 answers
17 views

Generic way of handling call to multiple api endpoints that use JWT

Setting up an application to call one of a handful of different client api endpoints, each of which use JWT. However, as of now I dont know the specifics of how the specific client might implement ...
bitshift's user avatar
  • 6,570
0 votes
0 answers
23 views

I created a c# Roslyn source generator and a test, the generator works but the test doesn't find the same source

I created a simple source generator that works fine using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; ...
Luiz Bicalho's user avatar
0 votes
0 answers
37 views

Access denied trying to execute c# console application

First up, I'll admit I'm a total noob at this. I'm just trying to learn, but it gets hard when I hit this kind of problem. Google hasn't provided any answers so I thought I'd ask here. I built my ...
RobG's user avatar
  • 596
0 votes
0 answers
5 views

The top XML element 'ReservationControlInformationDetailsTypeI' from namespace '' references distinct types

I used svcutil to generate proxy class. I used this proxy class to communicate with Amadeus web services, But when compiling the web service, the error is generated and it is given below. The top XML ...
wiki's user avatar
  • 185
0 votes
0 answers
18 views

Ghostscript Log Creation

I have an application where I am using ghostscript to convert image to pdf. I am using dll of ghostscript and using it in a .Net web api. And ghostscript software is also installed in the server, ...
martian481's user avatar
-3 votes
0 answers
15 views

Convert a html data or string to XSLT and then to pdf or is there any other way to do in C# [closed]

Can someone help me to figure out how we can convert a html data or string to XSLT and then convert to pdf or is there any other way to do in C#.I need to map the values we have in html to pdf. Please ...
shalu satheesan's user avatar
0 votes
0 answers
12 views

opentelemtry exports previous custom metrics every 10 sec

I have a .NET application configured to export custom metrics using the OpenTelemetry SDK to Application Insights. I’ve noticed that even when metrics aren’t updated, OpenTelemetry still pushes the ...
satish's user avatar
  • 63
0 votes
0 answers
13 views

What is the Mapperly equivalent of AfterMap method in Automapper?

I'm trying to replace AutoMapper with Mapperly in our project due to the latter's performance. However, I'm facing difficulty while replacing AutoMapper with Mapperly because I can't find any ...
Rama Rahul's user avatar
0 votes
0 answers
6 views

How can I resolve the error named "callElasticsearch" in APM?

Good morning, I have all the observability of the company in ElasticSearch using APM and now appears an error named "callElasticSearch" with this message: How can I manage that not appears ...
Kirtash666's user avatar
1 vote
0 answers
16 views

Validation gets lost on tab change [duplicate]

I am using a tab control to group different input fields like text boxes. I am validating the user input of those text boxes via IDataErrorInfo in my view model. Now, when the user input is not valid ...
J. Meyer's user avatar
0 votes
1 answer
11 views

.ASPXAUTH cookie not being read by sub application

I have an asp.net v4.7.2 web app setup at, my.example.com in IIS. It uses asp.net Forms Authentication. It's Web.Config: <httpCookies requireSSL="true" /> <authentication mode=&...
Vaibhav Garg's user avatar
  • 3,689
0 votes
0 answers
8 views

Github Action Docker Build Segmentation fault for ARM64/v8

I am trying to build a docker image and publish it to Github Container Registery that can be started on my Raspberry Pi with Ubuntu 22.04, ARM64/v8. Build for amd64 forks perfectly, but whenever i ...
TheSecurity's user avatar
-2 votes
0 answers
18 views

i have this error The page cannot be displayed because an internal server error has occurred [closed]

When I uploaded the site to the host, there was no problem. But when we are working with the site. For example, we return to the main page or perform a delete operation, this error occurs! I ...
mahdi yadi's user avatar
1 vote
1 answer
25 views

How to check for updates in my C# app published on MS Store

I am a Mac developer who has just started building Windows apps. My app will be published to the Windows Store. Do apps downloaded from the Windows Store have to check for new versions themselves, or ...
stapoz's user avatar
  • 13
0 votes
1 answer
30 views

Orleans IPersistentState POCO Namespace Versioning problems

I'm using <PackageReference Include="Microsoft.Orleans.Sdk" Version="8.2.0" /> To generate a serializer for a pretty simple record: namespace BaseNamespace.OldNameSpace; [...
Fernando Urkijo's user avatar
0 votes
0 answers
28 views

Strategy for handling multiple EF Migrations

I need help formulating a strategy for handling situations where two or more team members create an EF migration independently and for different reasons. Every single time we've had this scenario so ...
Captain Kenpachi's user avatar
0 votes
0 answers
20 views

Why am I receiveing this collation error in .NET Framework 4.5?

Currently I am analyzing old solutions in my company and it we get following error message randomly: A .NET Framework error occurred during execution of user-defined routine or aggregate "...
Paglo's user avatar
  • 1
-3 votes
1 answer
40 views

How does the `CalculateButton_Click` method validate and update `HourlyEmployee` and `CommissionEmployee` properties, and handle input errors? [closed]

I need to understand how the CalculateButton_Click method in my WPF application handles input validation and updates for HourlyEmployee and CommissionEmployee objects. Specifically, how does it check ...
Shivank Panchhi's user avatar
0 votes
0 answers
41 views

How to completely hide the title bar in a .NET MAUI application on Windows while retaining resizability?

I am developing a .NET MAUI Blazor Hybrid App for Windows, and I want to hide the default title bar completely while keeping the window resizable. I've tried modifying the MauiProgram.cs file to ...
VQH DEV's user avatar
  • 63
0 votes
0 answers
19 views

Sort results of DataView are different in different versions of .Net Framework

The GoodsNo column of the DataView has two pieces of data, HB3-T017 and HB-T015, which are now sorted by GoodsNo, with different results in .Net2.0 and 8.0. The order under .Net2.0 is HB3-T017, HB-...
Tian戊辰's user avatar

15 30 50 per page