241 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
74
views
Why does an array in a couchbase document throws exception when count of array reaches to 8?
I am using Couchbase to store user data.
Couchbase version:
Current Version
Couchbase Server Community Edition 7.2.2 build 6401
and nuget packages:
<PackageReference Include="Couchbase....
1
vote
1
answer
364
views
WinUI 3.0 AOT - ListView ArgumentException for any Input List
I am using WinUI 3.0 with Net 9.0 and am trying to use Native AOT, but i always get an ArgumentException while using ListView or ItemsRepeater.
The code is working fine without AOT.
<?xml version=&...
1
vote
2
answers
597
views
Why does ReSharper dislike ArgumentNullException.ThrowIfNullOrEmpty(string)?
I am using ReSharper 2024.2 and still I get the suggestion that I should not be using the following code:
public async Task<T> GetQueryAsync<T>(string query, bool isToBeValidated = ...
0
votes
1
answer
132
views
C# Winform ArgumentException was unhandled
I simply want to display the mouse position on a copy of the desktop.
I have a form that is borderless, maximized and contains a PictureBox with DockStyle.Fill. In the form constructor I create a ...
0
votes
0
answers
414
views
.Net Maui ArgumentException: 'An item with the same key has already been added. Key: Microsoft.Maui.Controls.BindableProperty' - What does that mean?
I'm really at a loss here.
I'm working on a .Net Maui Application (.Net 8.0) for Android and iOS for work. When I open a specific page I sometimes (like, maybe 1 out of 6-10 times) get an Error with ...
0
votes
0
answers
51
views
System.ArgumentException for drawarc in Visual Studio 2017
enter image description here
Don't know how to solve this problem.
Just doing simulation of four-stroke cycle, when debugging a "System.ArgumentException" occurs.
Private Sub Animation(q2)
...
1
vote
2
answers
162
views
ArgumentException on async get method in repository. ASP.NET Core - Razor Pages
I'm asking this question because I haven't found any solution. I rewrote my code multiple times by tutorials but nothing changed.
Broken query method in ReadRepository.cs:
public async Task<T> ...
-2
votes
1
answer
55
views
While logging weird string using NLog: ArgumentException: 'illegal characters in path.'
I'm trying to log the following string in a logfile:
$"{(char)0}{(char)1}{(char)3}{(char)0}{(char)3}{(char)0}{(char)0}{(char)0}{Line}{(char)0}{(char)7}{(char)232}{(char)3}{(char)0}{(char)9}{(char)...
0
votes
1
answer
1k
views
How to create a content dialog in App.xaml.cs in WinUI3?
I'm making a small app with WinUI 3. The app require to connect to the Internet while loading. Then it will download some necessary resources. I can't put the network check under any one window, ...
0
votes
1
answer
99
views
Xamarin.Forms: Disabling FlyoutItem and Changing Default Page
I have a Xamarin.Forms project with some FlyoutItems:
MyShell.xaml:
... ...
<FlyoutItem x:Name="Page1" IsEnabled="False" Title="xxxx xxxx" StyleClass="...
2
votes
1
answer
291
views
System.ArgumentException - caption cannot be an empty string
I'm trying to load an existing solution in Visual Studio 2022. One of projects in this solution is in error :
A message appears at top of the main window :
Visual Studio ran into an uexpected problem ...
0
votes
0
answers
357
views
While parsing a block mapping, did not find expected key. Failed to load github composite action.yml
Below is my caller action yml [Github Actions workflow] that gives error upon calling composite action:
---
name: RECYCLE_dev
workflow_dispatch:
inputs:
ENVIRONMENT:
type: ...
0
votes
1
answer
163
views
XAML Designer unable to resolve Enum types, 'base.enum' to 'mocks.enum_'
I have a C#/WPF MVVM program that uses a flagged enum to track the types of search mode the user is currently in and to manipulate the background colors of various controls depending on the given ...
-1
votes
1
answer
373
views
Why does: '18 is not a valid value for the property "System.Windows.Documents.TextElement.FontSize" on a setter.' get thrown when setting FontSize?
I want to create a "DataGrid" in "WPF" when a "Button" is pressed.
Everything went fine, until I wanted to change the "FontSize" of the "ColumnHeader"....
0
votes
2
answers
2k
views
Throwing custom exception in console application
so I'm trying to catch a custom exception. It works fine but skips to the next line of the code without giving me a chance to retry. If I try it without a try-catch block it still works but terminates ...