119 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
118
views
System.ArrayTypeMismatchException when using System.Text.Json with .NET Framework 4.7 in MSTest
I'm currently using .NET Framework 4.7 along with MSTest (all packages are up to date). I'm trying to deserialize a JSON string using System.Text.Json as shown here:
using System.Text.Json;
private ...
0
votes
0
answers
70
views
Having trouble with virtual folder on localhost using IIS express
I have a VB.NET / ASP.NET web application (on .NET 4.7) that I'm trying to add a virtual folder, and have had no success. Perhaps I'm doing it wrong, or I'm missing something; I would greatly ...
0
votes
0
answers
41
views
finally block is not executed when VS is attached as a result of unhandled exception [duplicate]
I have this small application:
C:\work\PassThruExc> tree /f
Folder PATH listing for volume OSDisk
Volume serial number is F6C4-7BEF
C:.
│ PassThruExc.csproj
│ PassThruExc.sln
│ Program.cs
│
└─...
0
votes
1
answer
139
views
How to match app.config version numbers to packages.config
I've had this several times now with different packages (Latest was System.ValueTuple) installed using the nuget package manager in Visual Studio.
After doing some upgrading of various packages I find ...
2
votes
3
answers
398
views
SqlConnection.Open works for System.Data.SqlClient and fails for Microsoft.Data.SqlClient with same connection string
I upgraded a library from .NET 4.7 to .NET 8.0.
In doing so, I had to update my System.Data.SqlClient references to Microsoft.Data.SqlClient.
I have both projects open, in different VS sessions, side ...
2
votes
1
answer
153
views
Connect a WCF project with Azure SQL using Active Directory Service Principal authentication type returns ClientSecretCredential authentication failed
I am trying to implement an Active Directory Service Principal authentication of my web project in WCF using the Microsoft guide:
https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-...
1
vote
0
answers
49
views
Object lifecycle changes between .net 4.7 and 4.8 versions of System.Net.Http
I'm working on upgrading a very large legacy solution from .net 4.7 to .net 4.8. It's not been a problem on the whole but now all the projects are upgraded, I've got one failing unit test which is ...
0
votes
1
answer
77
views
Add Rectangle to ContentControl C# wpf
I have a Xaml Code in My Project Like This:
<Window.Resources>
<!-- MoveThumb Template -->
<ControlTemplate x:Key="MoveThumbTemplate" TargetType="{x:...
1
vote
0
answers
117
views
Is it classed as bad practice to use HTTP client inside an SSIS package Task Script C# Over Web Requests
I'm currently working on an SSIS Package update in .Net Framework 4.7 and i'm creating a new C# script Task.
I am using a legacy script which was originally used, and from the looks of it some time ...
1
vote
0
answers
100
views
How to Containerize .NET framework 4.7.8 http and https connection with ssl enabled, windows container
I'm trying to containerize the .NET framework4.7.8v which is a older version and it is supported only on windows container, Image got build with the respected base image and container is up and ...
0
votes
0
answers
218
views
I am trying to use gRPC between .NET 6.0 as a service and .NET 4.7 as Client side. I am getting an error on the Client side it doesnt support HTTP2
I have a solution built on .NET 6.0 and I want to use its functions from another solution restricted to .NET 4.7. I am getting an error when using GRPC on the client.
The first trial was on .NET 6.0 ...
1
vote
0
answers
1k
views
How to create a REST API with .NET Framework?
I created a project in Visual Studio 2022 with the main template "ASP.NET Web Application (.NET Framework)" and sub template "Web API".
This created a project with the ...
0
votes
0
answers
133
views
Switch. case var b when b.Contains("SomeString"): Won't compile
I have a Web app that is targeting .Net 4.7 and had an if/else block to see if an incoming message contains a particular string. Ugly, I wanted to use a switch statement instead like so and like I did ...
0
votes
1
answer
192
views
Web API model binder maps null value for action method parameter in .NET Framework 4.7
Working with a legacy app that uses .NET Framework 4.7 and exposes a couple of Web API endpoints. The parameter is a ICollection<Guid> type.
[HttpPost("customer/process")]
public async ...
0
votes
0
answers
76
views
Implementing a customized desktop application using C# and.NET 4.7
How to customize the properties of the startmenu shortcut desktop application implemented in C# and .NET 4.7?
I had created desktop application shortcut using IWshRuntimeLibrary,WshShell,IWshShortcut ...