Questions tagged [.net-4.7.2]

.NET Framework 4.7.2 was released on April 30th, 2018, and includes several improvements.

The .NET Blog announcement can be found here:

https://blogs.msdn.microsoft.com/dotnet/2018/04/30/announcing-the-net-framework-4-7-2/

Some of those improvements include:

  • [ASP.NET] Support for SameSite cookie in ASP.NET
  • [ASP.NET] Support for ASP.NET Dependency Injection
  • [ClickOnce] Per-monitor support for WPF and HDPI-aware VSTO apps deployed via ClickOnce
  • [SQL] Always Encrypted enhancements in SQL Connectivity
  • [Networking & BCL] Enhanced .NET Framework support for .NET Standard 2.0
  • [BCL] Cryptography improvements
  • [WPF] Diagnostic enhancements

The full content of the development notes can be found here:

https://github.com/Microsoft/dotnet/blob/master/releases/net472/README.md

311 questions
0
votes
3 answers

C# (4) object initialisation with curly braces: Is there a way to reference another property during construction?

I have a public class PersonModel with public getters and setters. The relevant properties are: DateOfBirth, a DateTime, Age an int. In the code below, I have used the shorthand curly brace shorthand notation to create an abridged version of…
JGFMK
  • 8,425
  • 4
  • 58
  • 92
0
votes
0 answers

High CPU usage due to Gen 2 collections in WPF 4.0 (.NET 4.7.2)

Our WPF 4.0 application have a cyclic high CPU usage (once every 3 minutes, up to 30%) which is indicated by windows taskmanager. At the time issue occurs there's nothing done with the UI (e.g we're not clicking anything, but we have for example…
corso
  • 49
  • 10
0
votes
0 answers

Can Autofac read app.settings file in a type safe manner like .Net core?

Using .Net core , with ConfigurationBuilder ,I can read a Json file ( app.settings) into a typed structure: var configBuilder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json",…
Royi Namir
  • 144,742
  • 138
  • 468
  • 792
0
votes
1 answer

After migrate .Net framework from 4.6.2 to 4.7.2, Azure Cloud Services is not working

After I migrated .Net framework version from 4.6.2 to 4.7.2, there was no problem with I run locally. However, when I published to Azure Cloud Services, there should be something wrong so the service bus message moved to DeadLetter Queue. What's…
DaiKeung
  • 1,077
  • 1
  • 19
  • 38
0
votes
1 answer

Validation of viewstate MAC failed on Single Server Environment

Recently migrated our .net 4.0 web application to .net 4.7.2. Setting up the Dev environment and it is not a web farm scenario. The machine key is not auto generated also. Hit the 'Validation of viewstate MAC failed' error on Login page button…
prabodha
  • 3
  • 1
  • 2
0
votes
1 answer

Use type to access properties instead of concrete instance

I'm having trouble figuring out how to ask this question (the title is not worded well), so let me start with an example using the NameOf() method, because it does something similar to what I'm trying to accomplish. If I have a class like…
starx207
  • 357
  • 3
  • 20
0
votes
0 answers

How to disable IIS 8.5 ASP.NET 4.7.2 recycling on /bin changes and enable on /Views changes?

I was read tons of articles where is specified that I can disable ASP.NET application recycling after file changes using fcnMode="Disabled". I need applicaiton state (for example errors statistics). Nice, but how to disable FCN on /bin but enable on…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
1 answer

SocketException: An existing connection was forcibly closed by the remote host

I have a Soap service that makes calls to a 3rd party API. Recently calls to the api started failing. WebException: The underlying connection was closed: An unexpected error occurred on a send IOException: Unable to read data from the transport…
Kirsten
  • 15,730
  • 41
  • 179
  • 318
0
votes
1 answer

Generic recursive "Include" - EF

I need to make a recursive call with includes to a database (EF 6.2.0), is it possible to do it in a generic way? public class Option { public long OptionID { get; set; } public long Property1 { get; set; } public long Property2 { get;…
avechuche
  • 1,470
  • 6
  • 28
  • 45
0
votes
1 answer

.NET 4.7.2 BadImageFormat Exception random

first of all, this is not a duplicate post. I have already searched and all the answers say the same thing about IIS targetting 32 bit or 64 bit CPU. I have tried this already but this exception is on IIS Express with Any CPU targetted. Problem is,…
Jackal
  • 3,359
  • 4
  • 33
  • 78
0
votes
0 answers

.Net framework problem in adding google maps API with windows 10 and visual studio 2017

"Severity Code Description Project File Line Suppression State Error Could not install package 'Xamarin.GooglePlayServices.Maps 60.1142.1'. You are trying to install this package into a project that targets…
0
votes
0 answers

Accessing Directory with currently logged in User

I have a website that is using Windows authentication that calls an API. The API has the Authorize attribute: [Authorize(Roles = @"myrole.local\role")] The API then makes a call to a method in my business layer that does this: string []…
jtslugmaster08
  • 182
  • 1
  • 16
0
votes
0 answers

EdmGen not supporting .Net Framework version 4.7.2

EdmGen.exe is not supporting targetversion 4.7.2. Exception thrown as "error 7025: Only .NET Framework version 4 and 4.5 are supported. To use another version use the tools that shipped with that version." To the best of my knowledge there is…
0
votes
1 answer

Check assemblies related to Package Reference in VS2017

What is the easiest way to check which files will be included in .NET project when using PackageReference? In my project like on the image below I'm not able to expand them and Properties window is showing nothing!
Milos
  • 1,353
  • 2
  • 18
  • 37
0
votes
1 answer

How to properly package and consume .NET Standard library with multiple runtimes on net472?

I am trying to make a multiplatform package for Python.NET, targeting .NET Standard 2.0, using this project. I managed to create a NuGet package with the following structure: ref |- netstandard2.0 |- Python.Runtime.dll runtimes |- win |- lib |-…
LOST
  • 2,956
  • 3
  • 25
  • 40