For questions specific to the usage and features of version 4.8 of Microsoft's .Net framework.
Questions tagged [.net-4.8]
999 questions
-1
votes
1 answer
How to add AppInsights into Class Library
I went through the following tutorial to add AppInsights into a C# project
https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net
Using the manual method. All worked as expected.
I now want to add this same feature into a .Net Framework…

Computer
- 2,149
- 7
- 34
- 71
-1
votes
1 answer
How to add Authority Ket Identifier Extension to my certificate?
I used default X509Extension:
certificateRequest.CertificateExtensions.Add(new X509Extension(new Oid("2.5.29.35"), issuer.GetPublicKey(), false));
But when i decode it, this extension is broken and has a strange order of random symbols.
In .NET 7 i…

Murrchalkina
- 31
- 5
-1
votes
1 answer
Writing to a MemoryStream via a StringWriter adds null characters to stream
I have some code in C# where I am trying to write to a MemoryStream via a StringWriter example code:
using (MemoryStream stream = new MemoryStream())
{
using (StreamWriter writer = new StreamWriter())
{
writer.WriteLine("SELECT");
…

Emma Harris
- 3
- 2
-1
votes
1 answer
InnoSetup: why is ndp48.exe not being executed
Im trying to install ndp48-x86-x64-allos-enu.exe on computers that don't have it.
I have both those procedures :
the check function:
function NETFrameworkIsNotInstalled: Boolean;
var
ver: Cardinal;
begin
Result :=
not
(
…

Hugo_vdms
- 65
- 6
-1
votes
1 answer
Why is this ArgumentOutOfRangeException thrown?
Problem: System.ArgumentOutOfRangeException: Der TimeSpan-Zeitraum muss kleiner oder gleich "Int32.MaxValue" sein. (value must be smaller or equal "Int32.MaxValue")
Stacktrace:
bei System.Windows.Threading.DispatcherTimer.set_Interval(TimeSpan…

Benny Bürger
- 49
- 8
-1
votes
1 answer
Is it possible to dispose a library in C#?
I'm currently working on a WinForms .NET application on Visual Studio Community 2022. I'm having some trouble with a library I created, called UpdaterLibrary. This library has all the methods necessary to update my application, but because of that,…

joseenrique61
- 3
- 2
-1
votes
1 answer
How to dynamically create textbox through code behind, and manipulate the fields created later
I'm trying here and I'm not succeeding, so I decided to post here to see if anyone can help me. Thanks in advance...
I have structure below in a table, I need that when creating the new textbox they keep in the same structure of the table.
I can't…

Joshua
- 5
- 4
-1
votes
1 answer
Creating 'ReverseProxy' for Crystal Reports web API in .Net Core 6.0
We have Crystal Reports on a old Web API, we are moving to .Net Core 6 wherever we can, i understand that Crystal Reports is not compatible with .Net Core and no immediate possibility of Crystal Reports being updated to do so.
I understand this,…

Ledz3p
- 17
- 5
-1
votes
1 answer
System.ArgumentException: 'Process with an Id of is not running.' in c#
currently my application is on .net framework 4.8 using this I need to run a .exe file which is in .net 6.
System.Diagnostics.Process newProcess = null;
try
{
// create application
ProcessStartInfo procInfo…

Aditya Dalai
- 85
- 9
-1
votes
1 answer
.NET Framework Force Reference to be loaded
I created a library with WPF Resources to Design my Controls.
If I now reference these in a new project, I can access everything without any problems.
However, when I start it, it cannot find the reference. Reason: I have not used it properly…

Martin Bartolomé
- 249
- 1
- 13
-1
votes
1 answer
How can I do a CRUD in this code without database and datatables in webforms gridview, .net core 4.7
Error on RowUpdating >> GridView 'GView' fired the RowUpdating event, which was not handled.
I put the RowEditing and I can enter to update the data, but when I put public void GView_UpdateItem(int id) {} it returns the error saying GridView…

lucasmenchon
- 23
- 7
-1
votes
2 answers
How to deserialize complex json strings?
1.My json string is like this following:
{
"TagOptions": {
"AResouceGroupId": "rg-aekzsbuw5climmq",
"BResouceGroupId": "rg-aekztehix5f6eei",
"CResouceGroupId": "rg-aek2t7m7dcjqvhq",
"AClusterGroups": [ 0 ],
"BClusterGroups": […

Boi Fox
- 45
- 5
-1
votes
3 answers
The reference assemblies for .NETFramework,Version=v4.8 were not found
I get the following error when publishing my web app to a local folder.
The reference assemblies for .NETFramework,Version=v4.8 were not found
I checked the registry and I do have 4.8 installed. Visual Studio Enterprise specifically recommended…

Tom McDonald
- 1,532
- 2
- 18
- 37
-1
votes
3 answers
500 error from controller even it is not reaching action method of the controller in asp.net
I have an API controller. When I run the code in visual studio and query, the swagger returns 500 errors, but when I debug it, it doesn't reach the controller action.
I also have a simple, no parameter, test endpoint that simply returns an int…
-1
votes
1 answer
WPF - walk from DataGridRow to DataGridCell without VisualTreeHelper
I see this picture when I debug my WPF app (.NET Framework 4.8)
I figured out part of the tree:
Now I need to walk down from DataGridCellsPresenter to DataGridCell array.
I have to hardcode it - please refrain from telling me that I dont - its the…

Boppity Bop
- 9,613
- 13
- 72
- 151