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

WPF applications stop responding to touches after adding or removing tablet devices

Run any WPF application on a computer which is currently has a high CPU usage, if you keep plugging and unplugging a USB HID tablet device at the same time, the WPF applications will stop responding to touches and only respond to mouse. The…
walterlv
  • 2,366
  • 13
  • 73
21
votes
2 answers

In .NET Framework 4.6.2 the FormattedText() is Obsoleted, how can I fix it

When I try to build the WPF project with .net framework 4.6.2, I got an error, Because the FormattedText() is Obsoleted as below: [Obsolete("Use the PixelsPerDip override", false)] public FormattedText(string textToFormat, CultureInfo…
D.Andy
  • 247
  • 3
  • 9
20
votes
1 answer

The 'Publish' target is not supported without specifying a target framework

Using Visual Studio 2017, I created an ASP.NET Core site using .NET Framework. (I do not have a project.json, I have a VS2017 project with .cproj) My target is x64 Windows 2008R2. The beginning of my .cproj looks like follow:
Adam
  • 3,872
  • 6
  • 36
  • 66
18
votes
4 answers

System.Net.Http NuGet package 4.3.0 reference generates System.IO.FileLoadException on System.Diagnostics.DiagnosticSource ver 4.0.0.0 reference

Description of the problem: A shared library "shared.dll" project references System.Net.Http NuGet package 4.3.0. The application that references "shared.dll" fails with System.IO.FileLoadException Could not load file or assembly…
17
votes
6 answers

VSTS Hosted Build .Net Framework 4.6.2

I'm getting errors during VSTS build process stating .net 4.6.2 is not found. Any idea when it will be made available on the build agents? 2016-08-30T17:09:31.0009946Z ##[error]C:\Program Files…
mbreat
  • 361
  • 1
  • 3
  • 5
16
votes
1 answer

MSBuild restore target - MSB4057: The target "restore" does not exist in the project

We have over 20 solutions in our main product portfolio (over 880 projects), and we have a complex set of build scripts that work well, but we are trying to automate the restore of nuget packages from within the msbuild pipeline. Currently this is…
jcolebrand
  • 15,889
  • 12
  • 75
  • 121
15
votes
3 answers

DirectoryNotFoundException when using long paths in .NET 4.7

I have set Enable Win32 Long Paths in the Local Group Policy Editor to Enabled and restarted the computer. And here's the code: string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); for (int i = 0; i < 10; i++) path += "\\"…
ispiro
  • 26,556
  • 38
  • 136
  • 291
14
votes
2 answers

System.Web.Globalization namespace introduced with .NET 4.6.2 conflicts at runtime with System.Globalization

After installing the Windows 10 Anniversary Update over the weekend, which includes .NET Framework 4.6.2, some code stopped working. I've gone back to a version of 1 week ago to make sure it's not related to our code. At runtime, an error is…
user247702
  • 23,641
  • 15
  • 110
  • 157
12
votes
1 answer

Nuget restore fails for ASP.NET Core 2.0 project on build server

I am trying to build an ASP.NET Core 2.0 application for .NET Framework 4.6.2 (not .NET Core) with TeamCity on Windows Server 2012R2. The following components are installed in the server: Microsoft .Net Core SDK - 2.0.0.0 Microsoft .Net Framework…
12
votes
1 answer

Visual Studio 2015 with Update 3 .NET 4.6.2 Windows 10 Anniversary Edition

I recently updated my Windows 10 to the anniversary edition which includes the .NET v4.6.2 Framework. When I try to load a project targeting the v4.6.2 framework in Visual Studio 2015 with Update 3, VS tells me v4.6.2 is "not installed on this…
Hungry Beast
  • 3,677
  • 7
  • 49
  • 75
10
votes
5 answers

Crystal Report is not opening for 64 bit machines

My reports work fine on a 32 bit machine but won't open on 64 bit. 64 bit is required because loading data on one of the screen causes a memory issue - so it can't work on 32 bit. Windows 10 64 bit Installed Crystal Reports Tried installing…
bjan
  • 2,000
  • 7
  • 32
  • 64
10
votes
2 answers

Target .NET Core Class Library From .NET Framework 4.6.2 Class Library

I have a library written using .NET Core, targetting .netstandard2.0. According to this site it should be compatible to use the that version of a .NET Core library with .NET 4.6.2 and 4.6.1. However, when I try to build my .NET Framework library, I…
mhaken
  • 1,075
  • 4
  • 14
  • 28
9
votes
3 answers

How to register Dot net framework 4.6.2 on IIS 8.5 in Windows Server 2012 R2

I installed dot net framework 4.6.2 from this path & now want to register this in IIS. If it was a earlier framework version (2.0,3.5,etc ) & an earlier server ( For Eg Windows 2003), I would have typed the following command in the appropriate path.…
Abdul Rehman Sayed
  • 6,532
  • 7
  • 45
  • 74
6
votes
0 answers

MsBuild failing for .Net Standard project with error "Package System.Security.Cryptography.ProtectedData, version x.x.x was not found"

Project Setup : Mixed framework solution .Net Framework 4.6.2 projects in solution : 15 .Net Standard 2.0 projects in solution - 1 Development Machine Visual Studio 2017(15.7.4) : Builds without any errors Build Server TeamCity Version…
5
votes
1 answer

Can not build app (.NET Framework 4.6.2) in TeamCity

I'm using TeamCity 9.1.3. We are using MSBuild Tools 15 to build our app. Our app was targeting 4.5.2 and everything went fine. Now we've changed the framework inside the app to 4.6.2. The developers are able to build their app locally by using…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
1
2 3
10 11