36,995 questions with no answers
0
votes
0
answers
108
views
Hope to cope with exceptions inside tasks
Here's my example code. It's of no use, but it's short.
I have an array to switch on or off the creation of Exceptions at different parts of my code and two functions. The first (Level 0) is an ...
0
votes
0
answers
119
views
AccessViolationException when creating MIPContext after upgrade to v1.17
We have an on-premise .Net Framework console application that runs as a Windows service which uses the MIP SDK to read and apply labels to files. We are in the process of upgrading to the latest ...
0
votes
0
answers
43
views
Visual Studio Setup Project with a Unity game creates application-breaking dependency on .Net Standard 2.0
tl;dr:
How do I find the origin of a dependency in a Visual Studio Installer Project?
I've created a Visual Studio Installer Project in VS2022 to package my Unity game as an .msi
Visual Studio ...
0
votes
0
answers
27
views
TransactionException after updating Spring.net from version 2.0.2 to 3.0.2
After updating Spring.net packages from 2.0.2 to 3.0.2, it looks like something changed in the behavior of the [Transaction] attribute Interceptor, and now I'm getting an exception:
System....
0
votes
0
answers
56
views
Handling expired or invalid token in Dynamics CRM SDK
I'm developing an API consuming Dynamics CRM through Microsoft.PowerPlatform.Dataverse.Client.
When invoking ExecuteAsync on the ServiceClient I would like to catch when there's an issue with the used ...
0
votes
0
answers
52
views
Dotnet process trace needs to be excluded using opentelemetry
In kubernetes pod container, there are 2 different dotnet processes, one for the main application and the other for monitoring the application.
I have configured Entrypoint as shown below in both ...
0
votes
0
answers
156
views
Unable to print barcode labels on my Dymo label writer 450 Twin Turbo using DYMO.Connect.SDK 1.4.4.21 using C#
I am developing a Winforms app using VS2022 in C# for .NET 4.8 to print accelerated reader labels for books. Some books do not have a barcode on the back so I added to may app the ability to take the ...
0
votes
0
answers
94
views
Microsoft Solver Foundation giving wild result for a simple problem
I'm using Microsoft Solver Foundation to minimize chi-square between two distributions. Usually there are multiple peaks in each distribution but occasionally there is just one. I'm noticing in that ...
0
votes
0
answers
29
views
ILRepack build throws "Type exists in both ..." error
I am running into a build error when trying to pack my solution using
ILRepack.Lib.MSBuild.Task>. My solution consists of 'Project1' and my unit test project 'TestProject1'. Project1 uses a '...
0
votes
0
answers
66
views
My maui android app doesn't upscale properly on different devices
I started learning maui a couple of days ago. I'm making an app on pixel 9 pro emulator, but when I run my app on samsung s21 fe, the interface gets too big. Below I will attach the maui script and ...
0
votes
0
answers
68
views
Not able to execute DAX on PowerBI in .Net through ADOMD Client
I have the below python code which works perfectly on any Workspace by executing the DAX on powerbi Dataset, whereas i converted this in .Net, but its failing and giving Not Found error. Can someone ...
0
votes
0
answers
72
views
Perform validation across multiple cells during Save in Batch Edit using Syncfusion Blazor Data Grid
Minimal Repro (runnable)
https://blazorplayground.syncfusion.com/VNrIjvNbtiVkgpNo
Scenario
For each model, my grid displays two rows: "Time" and "Value".
Rule: If a user enters a ...
1
vote
0
answers
131
views
How do I add custom IChatClient middleware to chat client registered with a Semantic Kernel?
I'm trying to figure out how to add middleware to a chat client added to the Kernel. It seems like I need the actual instance of the chat client in order to add the middleware?
This is the ...
0
votes
0
answers
48
views
NPOI Column Stacked Chart?
I need to create a column chart on excel. I tried using NPOI for this.
var chart = (XSSFChart)drawing.CreateChart(anchor);
var chartData = chart.ChartDataFactory.CreateColumnChartData<string, ...
2
votes
0
answers
417
views
linkedConfiguration not taking effect
I have a .dll.config in which I'd like to place a linkedConfiguration:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<assemblyBinding xmlns="urn:...
1
vote
0
answers
214
views
Storage quota errors when trying to upload files via Google Drive API
I'm trying to upload a small sample CSV file up to my personal google drive via a Service Account, but it keeps failing.
I've created a folder in my personal Drive, and shared it with my Service ...
0
votes
0
answers
34
views
How can I attach to an existing Android process when using VS2022 on a dotnet MAUI project?
If I run a maui project from command line such as
> dotnet build -f net9.0-android .\MyMauiProject.csproj -t:Run
This starts the app in the USB attached Android Device.
How can I attach to it from ...
1
vote
0
answers
2k
views
.Net Core application refused to connect locally, It throws this site can’t be reached error
I am unable to run my asp.net core application from Visual Studio 2019. It was running all good few weeks back but now when I run it, it throws the error as follow:
This site can’t be reached The ...
0
votes
0
answers
31
views
Does JavaScriptSerializer's MaxJsonLength limit apply to string content within objects or just JSON structure?
//1st way
public string GetSomeData()
{
List<SomeObject> largeCollection = GetLargeDataCollection();
JavaScriptSerializer serializer = new JavaScriptSerializer();
json = ...
1
vote
0
answers
50
views
Blazor InteractiveAutoRender Mode Connection Lost Message
I'm working on a Blazor app configured to use Interactive Auto render mode. My goal is to improve initial page load times while avoiding the flicker that occurs when using prerendering with Blazor ...
0
votes
0
answers
62
views
Trying to add new Type to Dotnet Runtime from github
Hi I'm trying to modify the .NET runtime from github.com/dotnet/runtime.
I downloaded the release from that github repository website.
Then, you extract the files to C:\rt. Then run .\build.cmd -s clr+...
0
votes
0
answers
43
views
FreeBSD Jail Run .NET Application on Startup
I have just built a new NAS running TrueNAS Core, the main use of it is for storage but as a side task I wanted it to run my Discord bot written in .NET8.0 (C#).
TrueNAS Core jails use FreeBSD and I ...
1
vote
0
answers
74
views
Request variable doesn't work if uses environment variables in .http in Visual Studio 2022
Can someone check if this is a visual studio error or if I made a mistake somewhere?
Desired scenario: first request in each of .http files is login request.
Other requests consume the token from the ...
0
votes
0
answers
106
views
Blazor web app vs Blazor web assembly standalone App
I started learning C# a while ago with Tim Corey's course and while it is a bit outdated in Visual Studio version, I never had a problem similar to this.
I wrote a simple piece of code which takes a ...
1
vote
0
answers
325
views
Linux compatible .net 8.0 high precision fixed timer
I've been trying to implement a higher precision timer to my C# Raylib game project for running at fixed intervals regardless of the game's main drawing loop. My current implementation is using System....