Questions tagged [.net-4.7.1]
62 questions
3
votes
1 answer
Using .NET Standard library with Windows Compatibility Pack in .NET Framework
I'm working on migrating a large code base of libraries in a direction to eventually support .NET Core. Currently, everything is based on .NET Framework. I have a set of library projects which are consumed by several web applications.
The plan is…

StuffOfInterest
- 518
- 3
- 11
3
votes
2 answers
System.Net.Http MethodNotFoundException when executing method on .NET Framework 4.7.1 library loaded through Reflection
Setup
As part of migrating a large VS solution from .Net 4.6 to 4.7.1, I have replaced all packages.config files with "PackageReferences" in each .csproj file and removed the corresponding standard "Reference" tags containing hint paths pointing at…

Nathan Turnbow
- 31
- 3
3
votes
0 answers
MVC view compilation using wrong .NET Framework
An existing web application is using .NET Framework 4.5.1.
The project has the setting MvcBuildViews set to true.
The project also uses a Prepend extension method for IEnumerable.
Stuff breaks miraculously after merely installing the .NET…

AroglDarthu
- 1,021
- 8
- 17
2
votes
1 answer
FatalExecutionEngineError when RegisterAllAreas called
I have encountered the following error when starting a debugging session:
Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x6a1cb403, on thread 0xc88. The error…

Pietro
- 413
- 2
- 11
2
votes
0 answers
How to deal with the DLL-Import Error "onecoreuap\inetcore\urlmon\zones\zoneidentifier.cxx(359)\urlmon.dll! [...] 80070002" in the context of JNI?
I am trying to build a JNI-Wrapper for UIAComWrapper.dll to be able to automate Windows-Code using Java-Calls. Unfortunately, if I only try to include my C#-Dlls, which includes Wrapped Automation-Calls (directly linked to UIAComWrapper.dll), it…

Kitzng
- 21
- 2
2
votes
0 answers
How to use netstandard 2.0 library with dependency injection from MVC5 (asp.net)
I have a netstandard 2.0 Class library, which for some functionality needs dependency injection. I need to have the following method called in my library:
public static class HttpContext
{
///
/// Returns the current httpContext
…

remcolam
- 505
- 1
- 5
- 10
2
votes
1 answer
X509Certificate2 Constructor fails with Byte[] using Powershell
I am hoping I missed something obvious as I have tried 3 different approaches to generate a PFX/PKCS12 byte array so that the X509Certificate2 class will initiate.
Problem: Code is throwing an…

jjhayter
- 352
- 4
- 19
2
votes
1 answer
Why is my project not getting packed with Azure Devops Nuget Pack Task
As you can see below, I am able to pack the .csproj file from the command line on my machine.
But when I try to do it in Azure Devops with this configuration:
My build fails to pack the project.
None of my searching has provided information about…

Josh Gust
- 4,102
- 25
- 41
2
votes
0 answers
Explanation for nested decimals behaviour in ValueType GetHashCode/Equals implementation
I was scratching my head over an unexpected failing comparison between two instances of a custom struct. I hope someone can either point me to reference source or documentation, or confirm whether this is a bug!
Distilling the issue gets something…

Oly
- 2,329
- 1
- 18
- 23
2
votes
1 answer
RichTextBox removes escape character from the text
before adding the text to RTF property in RichTextBox, i make some processing on the text, add escape character then divide the data to multiline.
the text is
line1 \n\u001aline2 \n\u001aline3 \n\u001aline4
When i use VS 2015 with .Net 4.6.2
the…

Hady Allam
- 128
- 9
1
vote
1 answer
How to map a list in response to a different list in a variable
I am trying to map the Id and name in SearchCompanyResponse to the variable companies that is a list of Company.
var searchCompany = new SearchCompanyRequest();
searchCompany.Query = request.Name;
searchCompany.DatlinqKey = "TestKey";
var…

Robin Groot
- 21
- 5
1
vote
1 answer
Any idea whether TLS 1.3 works with .NET framework 4.7.1?
Asking here to see whether .NET Framework 4.8 really needed for TLS 1.3 as the documentation is creating confusion. My existing app using .NET 4.7.1.

AProgrammer
- 158
- 3
- 13
1
vote
1 answer
The type 'JsonPropertyAttribute' exists in both NestV5, and Newtonsoft.Json
using Newtonsoft.Json;
namespace XX.XX.XX.XX
{
public class Geolocation
{
[JsonProperty(PropertyName = "postal_code")]
public string PostalCode { get; set; }
[JsonProperty(PropertyName = "status")]
public string Status { get;…

Noman Chali
- 330
- 3
- 15
1
vote
1 answer
Can I publish .net framework 4.7.1 solution with dotnet publish command in Azure DevOps
I have a solution with target framework of 4.7.1.
I have locally installed dotnet core sdks and able to issue build, publish commands.
My project file looks like this, with many references to dotnet core dlls
…

KeenUser
- 5,305
- 14
- 41
- 62
1
vote
1 answer
C# .NET Framework 4.7.2 in VS 2019 - keep out my clientID and client secret / gitignore / Key Vault
I am a new to #C, therefore excuse my question, which will be probably very easy to you. I am trying to get my clientID, clientSecret and tenantID out of the main source control, but I am not sure at all how to do that. I have seen some methods for…

lMia
- 11
- 1