Questions tagged [.net-4.6.2]

.Net 4.6.2 is the version of the popular Microsoft .Net framework and adds several new features. Use for questions specifically related to .NET Framework 4.6.2. For questions on .NET Framework generally, use the .net tag.

.Net 4.6.2 is the latest version of the popular Microsoft .Net framework and adds several new features.

What's New in .NET Framework 4.6.2
.NET Framework 4.6.2 System Requirements

Released by Microsoft Corporation
Release Date: 2016-08-06

158 questions
5
votes
1 answer

Reuse ICryptoTransform objects

I have a class that is used to encrypt textual data. I am trying to reuse the ICryptoTransform objects where possible. However, the second time I am trying to use the same object, I get partially incorrectly decrypted data. I think the first block…
Levente Koncz
  • 103
  • 2
  • 6
4
votes
1 answer

Disabling httpclient ssl verification, on request level, in net 4.6

Have a net 4.6.2 project (System.Net.Http 4.0). Have a httpclient connection that works fine when disable ssl verification, but its done using ServicePointManager. Had some trouble finding how to disable this on a handler / client level in 4.6. The…
Base
  • 1,061
  • 1
  • 11
  • 27
4
votes
1 answer

How set a culture for entire winform application

I want to set a culture for entire winform application. How can i do that? I changed my Program.cs file like this : using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading.Tasks; using…
SilverLight
  • 19,668
  • 65
  • 192
  • 300
4
votes
1 answer

.net 4.7 fails to create SSL channel when server responds with TLS 1.1

I'm trying to do HTTPS GET request using client certificate authentication and it fails with The request was aborted: Could not create SSL/TLS secure channel. I'm trying same request using Java and it works fine, I see following in Java logs…
Giedrius
  • 8,430
  • 6
  • 50
  • 91
4
votes
1 answer

target .net framework class library with System.ServiceModel dependency from a .net core application

It should be possible to reference .net framework class libraries from .net core 2 projects in Visual Studio 2017 but I get a runtime exception when trying reference a class library dependent System.ServiceModel. Create a “Console App (.NET Core)”.…
Rolf
  • 1,219
  • 2
  • 13
  • 23
4
votes
2 answers

Cannot select Target Framework 4.5 in Visual Studio 2015

I have uninstalled my localized(german) .net version to get english exception messages. Afterwards i've installed the latest .NET 4.6.2 framework on my windows 10 development pc. Then i've openend my solution which contains projects that target .NET…
Tim Schmelter
  • 450,073
  • 74
  • 686
  • 939
4
votes
2 answers

Install .net 4.6.2 with Wix 3.10

The documentation for WixNetfxExtension extensions says .Net Framework 4.6.2 web setup is supported. I have the reference to WixNetfxExtension: Why I am getting error LGHT0094: Unresolved reference to symbol 'ChainPackageGroup:NetFx462Web' trying…
Soonts
  • 20,079
  • 9
  • 57
  • 130
4
votes
2 answers

Does .Net framework 4.6.2 installer support Windows 10

Does anyone know if the .Net Framework 4.6.2 Web Installer support Windows 10 or not. On MS Website, it doesn't mention Windows 10 as a supported version. Thank you All
Dev Dev
  • 135
  • 2
  • 8
4
votes
2 answers

Mulitlingual Data Annotation in .NET 4.6.2

I have the following View Model: public class LoginViewModel { [DisplayName("Email Address")] [Required(ErrorMessage = "PleaseEnterYourEmail")] public string EmailAddress { get; set; } } I have the following…
Ryan McDonough
  • 9,732
  • 3
  • 55
  • 76
3
votes
2 answers

System.TypeInitializationException: 'The type initializer for 'Bid' threw an exception.'

I have a service layer with the target framework set to .NET Standard 2.0. Some of the services uses DbContext from EntityFrameWorkCore. There are two web projects which uses this service layer: ASP.NET Core 3.0 (Blazor) ASP.NET MVC 4.6.2 The Core…
Westerlund.io
  • 2,743
  • 5
  • 30
  • 37
3
votes
2 answers

Web API - ConfigureAwait(true) not working as I thought

I'm having some trouble understanding the in's and out's of "continueOnCapturedContext" from a .NET v4.6 WebAPI 2 standpoint. The problem I'm having is there doesn't appear to be any difference between ConfigureAwait(true) and…
3
votes
0 answers

What PrincipalContext does UserPrincipal.GetGroups() use if not specified?

In the case that I'm getting groups for a UserPrincipal identity (in an Active Directory role provider), and I use the UserPrincipal.GetGroups() function that does not require a PrincipalContext as parameter, what does it default to using for the…
Nicole S.
  • 345
  • 1
  • 3
  • 12
3
votes
2 answers

request.GetRequestStream() throws an “Value cannot be null” exception

I have a function to do http request to a api servers who accept jsons: private static string DoRequest(object objToSend, string Url) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); request.Method…
Developer
  • 788
  • 6
  • 10
3
votes
3 answers

How do I get Visual Studio 2017 Evaluation to recognize .NET Framework 4.6.2 installed?

1) I did a clean install of Visual Studio 2017 Professional Evaluation copy on a brand new Dell laptop. 2) I tried to import and open a project solution which had been running on another computer with Visual Studio 2015 Professional full copy. …
3
votes
1 answer

StreamWriter: (Write+Flush)Async seem much slower then synchronous variants

I was trying to find an IO bottleneck in my class and surprisingly noticed that sw.Write("m"); sw.Flush() can be 20000 faster then await sw.WriteAsync("m"); Await sw.FlushAsync(); when writing 1000000 messages to a file. Does, by any chance, anyone…
1
2
3
10 11