1,247
questions
0
votes
0
answers
37
views
Unable to implement forms authentication in ASP.NET webforms on .NET 4.8
Here is my web.config:
<system.web>
<compilation debug="true" targetFramework="4.8" />
<httpRuntime targetFramework="4.8" />
<pages>
...
0
votes
0
answers
24
views
ASP.NET Framework - System.Security.Cryptography.X509Certificates.dll Publish Failure
I have this ASP.NET project running on .NET 4.8 called MyOTPWebService.
It resides in C:\Mypath\My_Projects\MyTiger
which is C:\Mypath\My_Projects\MyTiger\MyWebService
It builds fine, but when I tried ...
0
votes
0
answers
24
views
What connection string should I use to connect to SQLite database in a Visual Studio .NET Framework WinForms application?
I am having trouble connecting to my SQLite database and creating a dataset from it in Visual Studio 2022. I believe the issue is with the connection string. I have:
Installed the SQLite and SQL ...
0
votes
1
answer
26
views
EF6 Include not detecting foreign keys
I'm having some strange issue where I have an EDMX generated from an exisitng DB and the foreign keys are propelry captured within generated classes but upon using them with Include(), I'm getting ...
-1
votes
0
answers
40
views
Dapper and FirebirdSql.Data.FirebirdClient throws Error Arithmetic exception, numeric overflow, or string truncation string right truncation [closed]
I've been trying for a few weeks now to use Dapper and Firebird (FirebirdSql.Data.FirebirdClient) with .NET Framework 4.8, following what the manual recommends for handling Boolean values, My ...
0
votes
0
answers
14
views
PowerShell starts throwing intermittent CAS errors for an assembly (Class Library) loaded with Add-Type
I have created an Class Library Assembly in .NET Framework 4.8. The Class Library references AWSSDK nuget packages amongst others. The Class Library in turn is consumed by a PowerShell module. The ...
0
votes
1
answer
56
views
Download file ‘DotNetFX48\NDP48-x86-x64-AIIOS-CHT.exe’ for item ‘Microsoft .Net Framework 4.8 (x86 and x64)’
The installer property Localization is Chinese(Traditional).Localization is Chinese(Traditional)
And in Prerequisites dialog box, I need to install Microsoft .Net Framework 4.8.Prerequisites dialog ...
-1
votes
0
answers
72
views
Is it possible for the TextBox Element in C# to stack over eachother? [closed]
I am using Visual Studio 2022 and I am working with a WPF application project
I am working on a project where I need to display a list of Labels with TextBoxes inside a Grid. I created a method to ...
0
votes
1
answer
100
views
How to preserve control position and sizing on an Excel Taskpane
Hi there I have an issue with a custom Excel taskpane. The taskpane has been put together using the Winforms form designer. The content of the form is correctly laid out in the designer (see ...
0
votes
0
answers
12
views
When using log4net.Ext.Json how do I get collection, dictionaries, and objects that are created on the fly
If I add a collection, dictionary, or an object to logger properties. They are not static, they are generated during production and can vary in content lenght.
var queryParams = request.QueryString....
0
votes
0
answers
25
views
T4 Template not able to generate response in json from helper method
I'm trying to generate a Json using T4 template by calling the helper method .
Helper method GetApiEndpointInfo() generates all the endpoints data by accessing a assembly.
Below is the helper class ...
0
votes
0
answers
12
views
Why does a SQL CLR project require that assemblies be copied to the publish folder?
I have to publish a SQL CLR project that passes unit tests. It consists of a very lean SQL CLR assembly whose actual SQL functions wrap methods of classes from another class library that contains most ...
0
votes
0
answers
26
views
Issues while installing .NET Framework 4.5.2 [duplicate]
My project require to install 4.5.2 framework.
I recently installed VS2022 on my system. When I try to open project it ask below dialog.
I has to select "Download .NET Framework 4.5.2 targeting ...
0
votes
0
answers
107
views
The request was aborted: Could not create SSL/TLS secure channel exception calling openai api from windows 2012 R2 server
In a C# DOTNET 4.8 ASP.NET MVC 5 project running on a Windows 2012 R2 server, I call OpenAi API (v1/chat/completions) using the RestSharp.RestClient like this:
ServicePointManager.Expect100Continue = ...
2
votes
2
answers
111
views
Why primary constructor works in my project based on .NET 4.8
From my understanding, primary constructor was introduced in C#12 with .NET 8.
And I use it for dependency injection with AutoFac. And langVersion
is set as Latest Major.
Code looks like this:
public ...
0
votes
1
answer
39
views
Connection string for connecting to SQL Server using SqlClient in Blazor hybrid on .NET 8
I have a question. I need use a special user account on SQL Server. This account has a user id and password. When I connect using an app on .NET 4.8, I don't have a problem, but when I try to connect ...
0
votes
0
answers
13
views
Is there a way to ignore inherited tests with vstest.console.exe?
ABC.Item1.Tests & ABC.Item2.Tests references ABC.Common.Tests.
When running vstest.console.exe ABC.Item1.Tests it runs the tests from itself & ABC.Common.Tests.
This is the same for ABC.Item2....
-1
votes
1
answer
26
views
Why IIS returning 403 forbidden when upload some file ? many of then success but there are failed
I have an API using .NET Framework 4.8. Deployed on IIS 10. Hosted in AWS EC2 with ELB.
All the endpoint is works as expected, including the get file endpoint. But I Have one endpoint for uploading ...
0
votes
0
answers
74
views
Entity Framework / Linq performance in .NET 4.8 vs .NET 7
I have 2 applications, one running on .NET 4.8 (ApplicationA) and another on .NET 7 (ApplicationB).
ApplicationB is the newer more modern version of ApplicationA but server side code is mostly the ...
0
votes
1
answer
29
views
Installing Managed Module in IIS for use with ColdFusion Application
Windows 2022, IIS 10, DLL written/compiled under .NET 4.8, ColdFusion 2021
I have this DLL that I've compiled for use in IIS. It's very simple - it is supposed to create a header with a dynamic value ...
2
votes
2
answers
65
views
"Lock Pools" or other solutions for handling memory intensive operations in a .NET Framework backend?
My backend application takes byte arrays that represent image data and applies certain transformations to it, like changing the resolution and such, and then stores this modified data to disk.
During ...
0
votes
1
answer
36
views
Problem with form sizes (scaling) after migrating WinForms application from .NET Framework to .NET 6 or .NET 8
We are in the process of migrating a fairly large WinForms code base from .NET Framework 4.8 to .NET 6 (or .NET 8, same issue there).
Most things seem to work. However, there is one visually obvious ...
0
votes
0
answers
31
views
Why does .NET Upgrade Assistant say "API does not exist" for pretty much all of NUnit when targeting .NET 8?
I'm using .NET Upgrade Assistant to analyze a bunch of .NET Framework 4.8 projects to assess their ability to Upgrade to .NET 8.
Most issues the Analyzer finds are from unit test projects, which ...
0
votes
0
answers
36
views
Problems while trying to debug WPF application with VS2022 [duplicate]
I have a WPF application to change targeting .NET framework 4.6.2 that calls an API backend. If there is much change to display, the UI hangs for a while. But after the update is completed it is still ...
0
votes
0
answers
3
views
Restore nugets to destination folder even if exist in fallback folder
Continuous to: Different nugets restored on the same solution on different platforms
And after reading a little bit on the nuget.config, looking for a way to use dotnet build\publish command or nuget....
1
vote
1
answer
43
views
Why is .net expression tree compilation blocking?
I have a legacy ASP.NET application built on .Net Framework 4.8 and running on Azure on an App Service instance. Today I was profiling it in production using the Application Insights Profiler and ...
0
votes
1
answer
70
views
The code for Microsoft.Exchange.WebServices version 2.2.1.0 is not working, even though the token is being generated
I have a development environment as below
Visual Studio 2022 .net version 4.8
Microsoft.Exchange.WebServices version 2.2.1.0
Microsoft.Exchange.WebServices.Auth version 15.0.0.0
Microsoft.Identity....
0
votes
0
answers
52
views
TPL Dataflow WPF - Block is getting hosed up while await for Task to complete - .NET Framework 4.8
I am writing a File Transfer Pipeline using TPL library. I am new to this types of implementation so my issue could be related to something I am not aware of. Part of my application allows users to ...
0
votes
1
answer
47
views
Hosting MS Orleans 7.0 on .NET 4.8
I understand that Orleans and Microsoft.Hosting both work with .NET Standard 2.0 which is supported by .NET 4.8
See: Run Anywhere
For reference, I have already viewed this question which answers "...
1
vote
1
answer
70
views
Microsoft Graph api code skipping unexpectedly
First of all let me explain my environment, which is I have
Visual Studio 2022
Microsoft.Graph version 5.56.0.0
Microsoft.Identity.Client version 4.63.0.0
I am using this code where after line
var ...
-1
votes
0
answers
24
views
Serilog - multiple log files based on .Net Framework DLL
I have 2 different .NET Framework DLLs until earlier this year I never had to use both DLLs in the same solution. The one DLL handles Tracking Packages(TRKStuff.DLL) the other handles printing of ...
0
votes
1
answer
47
views
Converted image in memory not the same as when stored and then read again
I've got an Image as Stream coming in and I'm trying to convert the incoming Image from whatever it maybe (even if it already is a PNG) to a PNG.
I'm doing this as part of sanitizing the image as it ...
0
votes
2
answers
61
views
How to add common properties across custom server controls that inherited different base classes
I need a Server Control (named FormLayout here) that renders child controls based on their attribute.
The goal is to be able to write something like the following:
<custom:FormLayout runat="...
0
votes
0
answers
13
views
What's the correct data structure for an ordered list of checkboxes in .NET Framework?
I'm building an web app where one of the features is our employees can submit or save a checklist. It's simply a list of checkboxes (not in a form, just in a table) that needs to be POST'd to the ...
0
votes
1
answer
32
views
httpclient calls getting queued up in the server causing performance issues in the application
We have an application built around .NET 4.8. There are 4 servers for the application in production and has a heavy usage of http calls to get data. The outbound http calls are done from the ...
0
votes
0
answers
20
views
Applying SlowCheetah transformations during debug locally without changing the root Web.config
Is there a way to apply SlowCheetah transformations during debug locally without changing the root Web.config? Currently I have the following in my project file
<Target Name="BeforeBuild"&...
0
votes
2
answers
221
views
Could not load file or assembly 'System.Diagnostics.DiagnosticSource', Version=6.0.0.0. The system cannot find the file specified
Background:- My project is of a class library having target .NET framework 4.8 and have installed the nuget Azure.Storage.Blobs(version 12.21.1 which is latest stable) in my class.
I'm encountering a ...
1
vote
1
answer
610
views
DotNetZip is deprecated. What is the easiest replacement for .NET Framework 4.8?
We have a Solution targeting .NET Framework 4.8 with over 80 projects in it, and a few projects in this Solution reference a nuget package for DotNetZip. This has now been deprecated:
I would really ...
0
votes
0
answers
43
views
DataGridView selection doesn't work when fast checking a CheckBoxColumn
I have a problem with my Windows Forms .NET Framework 4.8.1 project. I try to make a DataGridView with multiple DataGridViewCheckBoxColumns and bind them together so when I check one CheckBox the ...
0
votes
0
answers
35
views
Various confusing compilation errors after updating Microsoft.IdentityModel libraries in ASP.Net Web Site
I have inherited some maintenance tasks on an older ASP.Net Web Site (not web project). One of the tasks I'm working on is updating all vulnerable libraries. This has been mostly smooth except for ...
1
vote
1
answer
47
views
Is there a defined constant for In .NET Framework 4.8 Stream.CopyToAsync() method
The .NET Framework 4.8 Stream.CopyToAsync() method has a default buffer size of 81,920. I think that buffer size is fine but I also want to pass a cancellation token. To pass a token I also have to ...
0
votes
0
answers
46
views
Visual Studio 2022 : dataset with new tableadapters are not listed in datagridviews
Project in C#, Winforms .NET framework 4.8.
I take a dataset with 4 table adapters, delete 2, added 4, now I have 6.
So, when I came to desired form, and try to relation a datagridview with a table ...
3
votes
1
answer
50
views
FileInfo behaves differently on .NET 2 and .NET 4.8
I have converted a legacy application from .NET 2 to .NET 4.8 and found that the FileInfo API behaves differently on the 2 platforms.
.NET 2:
new FileInfo("C:\a \b").FullName -> "C:\...
0
votes
0
answers
17
views
How to manage session state using a custom session ID in ASP.NET Web API?
I am developing an ASP.NET Web API application where I need to manage session state based on a session ID sent from an Angular application. The session ID should be created if it does not exist, and ...
3
votes
1
answer
321
views
How to set debug environment variables for ASP.NET Web API project on .NET 4.8?
I am building an ASP.NET Web API project on .NET 4.8 and also deploying it to Azure. I use Environment.GetEnvironmentVariable to get variable values. In Azure, this is easy to configure because they ...
2
votes
1
answer
55
views
Why does my Designer Generated Code (InitializeComponent()) Not Generate an Object Instantiation Line For my Custom Control?
Enviroment details:
.NET 4.8
Visual Studio 2022
Designer interface (if that's what it's actually called)
I've created a custom form called WeatherBox which inherits from another custom form ...
2
votes
2
answers
146
views
Can you use Identity Server 4 with .NET Framework 4.8?
I have an existing project that was built with .NET Framework which has an output of class library which has Identity Server 3 installed on it. I want to know if its possible to install IDS 4 on the ...
1
vote
2
answers
85
views
How to produce multiple outputs in TPL Dataflow block before completion
I have this case where I am trying to build a pipeline using TPL Dataflow that could process a big number of items. At some point in the pipeline I need to batch items and send to the next block after ...
0
votes
0
answers
62
views
ASP.NET / VB.NET: compile errors when migrating to .NET 4.8
I have tried to migrate my ASP.NET solution written in VB.NET from .NET 4.0 to .NET 4.8 and organize my solution by creating projects.
The new project has been created using Visual Studio 2019 -> ...
0
votes
0
answers
65
views
Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=xxxx' or one of its dependencies
Encountered this infamous DLL issue. Unable to resolve it even after following different steps.
Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, ...