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
5
votes
1 answer

How do I prevent a SaveFileDialog from prompting twice to replace/overwrite a file?

How can I stop a System.Windows.Forms.SaveFileDialog from prompting twice to replace a selected file, and instead prompt only once? Either I'm missing something, there's something wrong with my install, or the default behaviour is just dumb. var…
Macklin
  • 146
  • 1
  • 1
  • 8
4
votes
1 answer

Building a Kafka producer immediately results "Disconnected while requesting ApiVersion" error

I downloaded kafka_2.13-2.5.1, extracted it into a folder, edited producer.properties, to enable Snappy compression, and left the rest vanilla. I start whatever it is (server? cluster? hell knows) with the…
user14607391
  • 63
  • 1
  • 1
  • 5
4
votes
2 answers

How do I stop FullRowSelect from also selecting a column header

I looked on other posts about DataGridView SelectionMode but I did not find anyone with the same problem. Only happens on .NET 4.7.2 When I select a row, the header for the column I clicked also gets selected, like this:
João
  • 449
  • 4
  • 18
4
votes
4 answers

Error when trying to view the Application Properties page in Visual Studio 2017

When trying to open the Properties of a WPF application, on the Application page, it gives the following error: An error occurred trying to load the page. The method or operation is not implemented. In the Windows Event Viewer I can find…
3
votes
1 answer

Listbox freezes visually after firing SelectedIndexChanged

I have a Forms Application structured like this: +--------------------------------------------------------------+ | FormMain | |+------------------------+-----------------------------------+| || …
3
votes
1 answer

IHttpClientFactory for full framework (4.7) and IoC

I am trying to Register IHttpClientFactory in Full Framework 4.7 (not core). I am using IoC container (LightInject) Problem, that I do not have direct access to implementation of internal class…
3
votes
0 answers

AcquireTokenSilent() fails

I am writing a WinForms client which is connecting to an azure WebAPI. the program fails to call AcquireTokenSilent with a specific account. I always get this message: "You are trying to acquire a token silently using a login hint. No account was…
askolotl
  • 964
  • 1
  • 13
  • 27
3
votes
0 answers

Long path support in Net.Framework 4.7.2 and Windows 10

To solve the problem of limiting paths to 255 characters, the following was done: Windows 10 2004 includes "Enable Win32 long paths" in the "Local Computer Policy". In the registry branch: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \…
3
votes
1 answer

.Net Framework 4.7.2 Referencing .Net Standard 2.0 project

My situation: I have a .Net 4.7.2 WinForms application. It references a project that is a .Net Standard class library The .Net Standard library references the Microsoft.SqlServer.SqlManagementObjects NuGet package using a PackageReference When I…
MadSkeletor
  • 161
  • 1
  • 14
3
votes
1 answer

Condtionally set ASP.NET session and authentication cookies samesite value based on browsers

I have done the following changes to my web.config and I'm able to server both the authentication and the session cookie with samesite=none and secure. the problem is for browsers such as chrome 51-66 sending samesite=none invalidates the cookie and…
NicoTek
  • 1,127
  • 1
  • 14
  • 34
3
votes
1 answer

Performance difference between generic and non generic method

Let's say for the sake of the example that we want to work on linear algebra, with different type of matrices. And that we have a custom Matrix class that implements : interface IMatrix { double this[int i, int j] { get; set; } int Size {…
3
votes
1 answer

Same code gives different result in .net core and .net 4.7.2

Here is the following C# code to obtain the Md5 value of a string using System; using System.Security.Cryptography; using System.Text; namespace ConsoleApp1 { class Program { static void Main(string[] args) { var urlPart =…
Rémy
  • 736
  • 1
  • 5
  • 19
3
votes
2 answers

Why does making Application_Start a static method (a recommendation of FxCopAnalyzer) cause 404 errors?

Visual Studio recommended I install the new Microsoft.CodeAnalysis.FxCopAnalyzers in my project. It nicely identifies a number of improvements in the source, but one of its recommendations is: CA1822: Member Application_Start does not access…
Glenn
  • 175
  • 1
  • 7
3
votes
1 answer

IndexOf() vs Replace() and zero-width non-joiner

Why does IndexOf() ignore the zero-width non-joiner char, but Replace() doesn't: class Program { static void Main(string[] args) { const string zeroWidthNonJoiner = "\u200C"; string str = $"ab{zeroWidthNonJoiner}cd"; …
David Klempfner
  • 8,700
  • 20
  • 73
  • 153
3
votes
1 answer

Why do I get InvalidCastException when I open then close the Menu on my Window?

When I create a new WPF Application in NET Framework 4.7.2 add a Menu to the MainWindow I get the InvalidCastException whenever you click on the menu and then click away from the menu to close it. I can ignore this exception when it is thrown from…
Ben Bancroft
  • 95
  • 10
1
2
3
20 21