Questions tagged [.net-4.7]

.NET 4.7 was originally released by Microsoft in June of 2017. It is a followup to .NET-4.6 and was included in the Windows 10 Creators Update.

109 questions
5
votes
1 answer

HttpClient does not use ServicePointManager service points

By default HttpClient only uses 2 concurrent connections per host. According to docs I can change that. I don't want to change it on a global level, I just want to change it for the service I'm using. Therefore I wrote the following code: //…
D.R.
  • 20,268
  • 21
  • 102
  • 205
5
votes
1 answer

NetStandard / Net Framework reference hell

I have a NetStandard 1.6 library that references an external library (System.Runtime.Loader, fetched from NuGet). If I reference my NetStandard library from a Net Framework 4.7 Windows-application I get a System.IO.FileNotFoundException when running…
BennyO
  • 123
  • 5
5
votes
2 answers

Visual Studio 2017 Project Installer missing .NET 4.7 option

I need to create a windows installer for a project built with .NET 4.7. Visual Studio 2015 had an "Project Setup" project type, which is not present in VS 2017 anymore. I've just found out about the official extention: Microsoft Visual Studio 2017…
Pedro Henrique
  • 680
  • 7
  • 22
5
votes
1 answer

Windows 10 Creators update .net 4.7 System.AccessViolationException issue

After updating Windows 10 to creators update with .net 4.7 I have a critical issue on starting very simple code. Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException class Program { …
Andrew
  • 158
  • 8
4
votes
1 answer

is system.net connectionManagement maxConnection per domain or shared when using wildcard address?

The documentation for the maxconnection configuration value in the system.net connectionManagement section of a config file is confusing me. When you use a wildcard in the address - is that limit per host or is that limit shared by all hosts (that…
Andrew M
  • 9,149
  • 6
  • 44
  • 63
4
votes
1 answer

How to set up IIS 10 for MVC 5?

The title is purposely generic as I have no clue to formulate my question in any different way. I have made an MVC 5 project using .NET 4.7. My goal is to use IIS 10 to point to a domain so I can use that as a testing ground. I have already edited…
M. Schevers
  • 109
  • 1
  • 9
4
votes
2 answers

upgrading to new .NET framework- supportedRuntime version VS sku in app.config?

I'm upgrading from .NET 4.0 to 4.7.1 two things that concern me. App.Config- does that mean that it really hasn't upgrade to newer framework…
TDeoodfig
  • 99
  • 2
  • 9
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

Visual Studio 2017: can't see target framework 4.7

From .NET blog I came to know that, they have added support for targeting .NET framework 4.7 in Visual Studio 17. I just have installed Visual Studio 2017 but not getting the target framework 4.7. Highest target framework i can see is 4.6.1.
Mahbubur Rahman
  • 4,961
  • 2
  • 39
  • 46
3
votes
1 answer

How to do Integration Tests with Mediatr on .net framework 4.7?

I'm using the Mediatr library to register and call my RequestHandlers. Everything went fine until I started reading more about integrated tests. PLEASE READ AFTER EDIT I can't call my class which inherits from the RequesHandler. My class looks like…
3
votes
0 answers

IdentityServer3 upgrade to .NET Framework 4.7 Error - "The provided RSA key is invalid"

We are trying to upgrade our IdentityServer3 instance from targeting .NET Framework 4.5 to 4.7 but stumbled on the following exception when running. The error seems to be occurring due to the absence of a cookie that OWIN Middleware is supposed to…
puri
  • 1,829
  • 5
  • 23
  • 42
3
votes
1 answer

What effect does using LegacyAspNetSynchronizationContext have with async / await code in .net 4.7?

I'm upgrading a legacy Asp.Net WebForms project to .net 4.7. In my configuration I set the target framework to 4.7 and synchronization context to use the new AspNetSynchronizationContext (although I believe the latter is implied if omitted) to…
Gavin Sutherland
  • 1,666
  • 3
  • 23
  • 36
3
votes
1 answer

What does "replaces versions" means in .NET Framework terms?

Wikipedia says that the .NET Framework 4.7 replaces versions 4.0–4.6.2. Does this mean that I can run a program that requires (for example) .NET Framework 4.0 with only .NET Framework 4.7 installed?
Conder
  • 31
  • 1
2
votes
1 answer

Initializing a new Task from within an already running Task in C#

I am writing a program which scours the entire filesystem of a computer in order to destroy any files which fall within certain parameters. I want the program to run as fast as possible and utilize as many resources as necessary to achieve this…
2
votes
3 answers

How to wait for to Task.Run to complete

I have a program that processes something like this var t=Task.Run(()=>process()); while(!t.IsCompleted()) Task.Delay(1000); Console.WriteLine(t.Result); Is there any other way to make the program wait till Task gets completed?
Raj
  • 59
  • 1
  • 10