1,309 questions
1
vote
0
answers
103
views
WinForms / .NETFramework: Format DataGridViewCell according to ValidationResult
Consider a small Winforms application that has a list of custom objects bound to a DataGridView.
The data class:
public class MyAwesomeClass : IDataErrorInfo, INotifyPropertyChanged
{
string _Name;...
0
votes
0
answers
129
views
WinForms DPI scaling inconsistency: child forms rescale differently than main form
I'm working on a VB.NET WinForms app (.NET Framework 4.8) and seeing inconsistent scaling between forms. I develop on my work laptop using a Remote Desktop Connection.
This problem began when I ...
2
votes
0
answers
216
views
Microsoft.Data.SqlClient 7.0.0 throwing error on new serverconnection in .NET Framework 4.8
We have a Visual Studio solution, written to run on .NET Framework 4.8 and mostly in VB.NET. Part of this is a mechanism to run SQL scripts stored in .sql files.
This has worked fine for years, ...
0
votes
0
answers
90
views
Error when creating EDMX from LocalDB .mdf in Visual Studio 2022
I am using Visual Studio 2022 and trying to work with internal .mdf databases (LocalDB) for testing purposes in an ASP.NET Web Forms project using Entity Framework (EDMX).
Creating the database itself ...
0
votes
2
answers
106
views
How to change the DPI awareness setting of my .NET 4.8 WPF application?
Of course I already googled that. So I added the app.manifest with the <dpiAwareness> tag to the project and referenced it in the project file. This tag is also found in the compile output ...
0
votes
0
answers
99
views
How should a .NET Framework solution handle OpenTelemetry wrapper dependencies when using packages.config?
We have a .NET Framework solution with multiple projects. Many projects reference an internal core library, and that core library contains all the package references, including our custom ...
0
votes
0
answers
50
views
Individual settings for multiple developers in .NET Framework 4.8 web projects
I work with an old style .NET Framework 4.8 solution with many web application projects
(defined by <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}...
0
votes
1
answer
97
views
.NET 4.8 AllowAnonymous attributes
I'm trying to implement an endpoint that bypasses the standard NTLM authentication in an ASP.NET MVC application running on .NET 4.8.
I've tried to go down the route of just adding the [AllowAnonymous]...
1
vote
0
answers
31
views
ASP.NET MVC 5: could not load type 'X.MvcApplication' after removing Roslyn system.codedom [duplicate]
I have an ASP.NET MVC 5 (running on .NET 4.8) application.
Initially the app failed to start with:
Could not find a part of the path '...\roslyn\csc.exe'
This was caused by the Roslyn CodeDom ...
0
votes
1
answer
61
views
Why does Azure Search return null for the calling method?
I have a web application implementing Azure Search. It is also using interception to build filters for the search prior to execution.
The path of execution is:
controller calls search provider
...
0
votes
0
answers
83
views
CefSharp initialisation problem in my WPF project
I'm trying to develop an equivalent of a webview2 using CefSharp because I need backward compatibility for systems that do not support .NET 8/10. These are the steps I performed after creating a WPF ...
1
vote
1
answer
296
views
Using "System.Text.Json.JsonSerializer" to generate OpenAPI source code
I am binding an OpenAPI 3.0 JSON file in my C# project with .NET Framework 4.8.
While doing this, I want to adjust the .json configuration to make the code generated using OpenAPI code generator use ...
3
votes
1
answer
221
views
Terminating a hung thread in a C# .NET desktop app
Is there any way in a C# desktop application with .NET, to terminate a thread that has hung due to a problem in an external library? Because when creating the thread with Task.Run(), we have no ...
0
votes
1
answer
102
views
Value cannot be null. Parameter name: provider using DI in .NET framework
I have added Microsoft DependencyInjection nuget to a .NET 4.8 project and used this post to help set it up: https://stackoverflow.com/a/73414927/2739613
My code looks like this - Startup.cs:
[...
0
votes
0
answers
113
views
How to send HTTP POST request with multipart/form-data with the form-data in initial request in .NET Framework?
I have to upload a file to an embedded device running an API.
First, I tried to write methods to do this in a test project. This works great:
private static async Task<HttpResponseMessage?> ...