36,995 questions with no answers
2
votes
0
answers
129
views
How can I implement Apple Wallet Extensions in a .NET MAUI app? Is a wrapper required?
I'm working on an iOS issuer app using .NET MAUI and I need to implement Apple Wallet Extensions—specifically, I want users to be able to provision cards directly from Apple Wallet via the issuer app (...
0
votes
0
answers
186
views
Access denied while deleting in .NET
I'm trying to figure out why I'm getting an "Access denied" error while deleting a Directory via
System.IO.Directory.Delete(Path.Combine(path, folderName), true);
These folders are being ...
0
votes
0
answers
160
views
__DATA_CONST segment missing SG_READ_ONLY flag
I'm trying to import a .NET project from iOS native project.
During build time I'm getting linker error: ld: __DATA_CONST segment missing SG_READ_ONLY flag in .../Build/Products/Debug-iphoneos/[...
0
votes
0
answers
87
views
Is Caching With Async Call Possible using DispatchProxy
I've been assessing using DispatchProxy as a means of Interception. Whilst it is great for synchronous operations, there are challenges with async.
The new HybridCache has an async API and in any case,...
2
votes
0
answers
59
views
.NET 9 Application Fails Silently When Run from UNC Path on Windows 10/11
I'm encountering a strange issue when running a .NET 9 console application from a UNC path (e.g., \\computername\c$\folder\app.exe) on Windows 10 and Windows 11.
Symptoms:
The application crashes ...
2
votes
0
answers
957
views
Can't launch a 6 month old Visual Studio .NET project without updating runtime
I did a prototype console web project (Minimal APIs) some 5 months ago in Visual Studio 2022 and now I want to restart work on it. However, when I try to run the .exe, I get the following message.
It ...
1
vote
0
answers
618
views
parsing text that is a sequence of JSON objects without enclosing brackets (there is no root object) in .NET?
Suppose I have an input stream coming in that is a sequence of objects, like so:
{ "value" : 1}
{ "valueFromOtherType" : 2}
{ "value" : 3}
{ "value" : 4}
How ...
0
votes
0
answers
177
views
.NET Sporadic FormatException: Cannot deserialize a 'String' from BsonType 'ObjectId'
Since upgrading to .NET 6 to .NET 8, we are getting very unusual and sporadic behaviour from MongoDB (driver?). Every couple of days (sometimes weeks) the driver would start throwing the following ...
1
vote
0
answers
93
views
I can't send email from .NET application using Google SMTP client, application passwords
I have Google workspace, created for my mail application passwords and used the code as password in my .NET application. This worked for me in test application without Google workspace, from private ...
1
vote
0
answers
60
views
iText cannot read part of the PDF
I have a PDF file which I am reading using iText 7.x, but some of the text doesn't get read.
Code:
Rectangle rect = new(0, 0, 1100, 1100);
TextRegionEventFilter regionFilter = new(rect);
...
1
vote
0
answers
72
views
How to call Windows Runtime Apis without setting the dotnet TargetFramework to net8-windows.X?
I want to create a dotnet library that supports both linux and windows. The library detects on which OS it is running and executes the respective implementation. For the windows implementation, I need ...
0
votes
0
answers
62
views
How to map Enum when read data from InfluxDB?
I have a problem with reading data from InfluxDB when one of the properties declared as Enum
[Measurement("temperature")]
private class Temperature
{
[Column("location", IsTag =...
0
votes
0
answers
41
views
xUnit.net v3 In-Process Runner how to show the names of failed tests
When I run a xUnit.net v3 project on the command line it will list failed test but not passed tests. Is there an option or flag that I can set to show the names of the passed tests?
C:\src\xxx\yyy\...
1
vote
0
answers
59
views
Serilog ignores first sink in list from config file
I have a .net 8 api, using serilog to log various events.
Also have several sinks defined, console, file and SQL server
The issue I am having is that it appears that the first sink in the config file ...
2
votes
0
answers
33
views
How to Minimize .NET MAUI App to Dock When Clicking Red Close Button on Mac Catalyst
Problem:
In my .NET MAUI application running on Mac Catalyst, I want to minimize the app to the dock when users click the red close button, rather than quitting the application. Currently, clicking ...
0
votes
0
answers
54
views
Get source from Drag & Drop
I have an application where I pass data through the Drag & Drop event from Form A to Form B like so:
// FormA.cs
private void g_SelectionDrag(object sender, CancelEventArgs e)
{
string path = ...
0
votes
0
answers
48
views
Aspose.PDF: How to maintain original page size and layout when converting translated HTML back to PDF?
I'm using Aspose.PDF for .NET to convert PDF to HTML for translation, then back from translated HTML to PDF.
My goal:
Keep original page size and orientation.
Ensure the same number of pages in the ...
1
vote
0
answers
152
views
Client certificate issues on Windows 2022 / IIS10 for mutual TLS in .NET 4.8
We are communicating to an external server through HttpClient using mutual TLS. They provided us the following OpenSSL command to create the private key and the CSR:
openssl genrsa -aes256 -out ...
0
votes
0
answers
78
views
Self-contained app occasionally prompts .NET Desktop Runtime installation, even if installed
I've created a WPF app for my company which is self-contained as a single WARP.exe file. The vast majority of the time the app launches successfully without installing anything additional (including ....
1
vote
0
answers
75
views
How to fix WLT1N1002 - Invalid parameter Value: data error while creating a generic samsung pass?
I am trying to create a Samsung generic wallet pass. I am returning a URL like this: https://a.swallet.link/atw/v3/{cardId}#Clip?cdata={jwt}. This URL should add the pass to the Samsung wallet. The ...
0
votes
0
answers
155
views
Why the 'GetPendingMigrations()' method brings already applied migrations?
Im using EF Core in a .NET 9.0 Web API project, and I was trying to implement automatic migrations on API startup. The current project makes use of Docker containers (Configured using a Docker compose ...
0
votes
0
answers
38
views
.NET Aspire 9.3 host fails to start in drone.io pipeline
I want to run my aspire test application in a drone.io pipeline. In a pipeline I face an issue that apphost cannot be started and container get killed after some time. The question is how to get more ...
0
votes
0
answers
92
views
MAUI Android use local SQLite database file issue
I use MAUI (.NET 8) for my Android application. I've added SQLite database file, previously configured from SQLite Studio. Tested connection on desktop (Windows 11 on my local machine) - it works well....
0
votes
0
answers
52
views
Exe is not working while executing from the Wix installer custom action
I have an exe which I am executing using a custom action in wix installer.
During the installation when the installer executes this exe, I am getting an error logged in event viewer as follows.
...
0
votes
0
answers
45
views
WPF UI Flashes Previous Theme Briefly When Showing From Hidden After Theme Change
Problem:
I have a WPF application with two themes (light/dark). The UI is triggered via a named pipe message to switch themes (e.g., from light to dark) and show itself. After 5 seconds, it hides. ...