Questions tagged [.net-4.7.1]

62 questions
1
vote
0 answers

c#: Type arguments cannot be inferred

I'm new to C#. I'm trying to get a List.Select to work with async tasks, and I'm getting an error with the Select call. The error says The type arguments for method 'IEnumerable System.Linq.Enumerable.Select(this IEnumerable, Func)' cannot be…
ewok
  • 20,148
  • 51
  • 149
  • 254
1
vote
0 answers

targetFramework-Attribute... higher Version 4

I installed Windows Server 2016 Core with IIS and ASPNET45. When starting my app this error shows up. Line 12: Note: Info says .NET Framework 4 and ASP.NET 4.7.2 are installed. Also AppPool is…
Tuan
  • 893
  • 1
  • 9
  • 24
1
vote
1 answer

Targeting .Net Framework to get GC improvements

In Framework 4.7.1 there have been some GC improvements. https://learn.microsoft.com/en-us/dotnet/framework/whats-new/ I am currently running a service that was built under 4.6.1. If I install 4.7.1 on my server without re-compiling my program…
1
vote
1 answer

Targeting a .NET Core 2.0.1 web project from a C# Test project based on .NET 4.7.1

I'm starting out with Test-Driven Development with Visual Studio 2017 Enterprise, but can't - however hard I've tried - make it work. I've tried trawling everywhere on the WWW to search for a solution, to no avail. So I hope that someone here will…
1
vote
2 answers

Getting error while running fortify scan for dotnet framework 4.7.1

I have installed fortify HPE_Security_Fortify_SCA_and_Apps_17.20_Windows and using visual studio plugin for 2017. I have created a sample console application in dotnet framework 4.7.1. I am getting the following error (however I have tried same…
Anup Das Gupta
  • 772
  • 1
  • 7
  • 24
1
vote
1 answer

Building a library targeting different versions of .NET

I have a library that I used to build against different versions of .NET by executing a command line like this: msbuild x.csproj /p:TargetFrameworkVersion=v4.6.2 ... multiple times with different value for the property TargetFrameworkVersion. Now I…
Valo
  • 1,872
  • 2
  • 15
  • 23
1
vote
0 answers

Running asp.net 4.5 code on asp.net 4.7

Is it possible to run an application created with asp.net 4.5 on a server running asp.net 4.7.1? According to Microsoft's Application Compatibility Page, any application created for 4.0 runtime will run on Compatibility Mode. Does this mean that…
FDaniels
  • 23
  • 7
1
vote
1 answer

Launch .NET Framework console app into a new window from inside a .NET Core Console app

I have a .NET Core console app (a TCP client) that needs to launch a .NET Framework console app (a TCP Server). I'm using System.Diagnostics.Process.Start(server); and it starts, but both console apps are in the same window. How can I get the server…
Kevin S. Miller
  • 913
  • 1
  • 9
  • 21
0
votes
0 answers

How to moq an HttpContext for a method the implements IHttpHandler's ProcessRequest in .NET framework (not core)?

I have a class that implements IHttpHandler interface in .NET 4.7.1. The class implements ProcessRequest which accepts an HttpContext instance. I am trying to create a test for ProcessRequest using Moq. Moq allows me to create a mock for…
Tony_Henrich
  • 42,411
  • 75
  • 239
  • 374
0
votes
0 answers

the program works on .NET framework 4.7.1 and doesn't work on .NET 6.0

There is a project from Github https://github.com/versex799/FanucFocasTutorial which is qritten on c# .NET framework 4.7.1. Works ok. Trying to make the same on .NET 6.0 I get an error "System.BadImageFormatException: "An attempt was made to load a…
0
votes
0 answers

How do I get the error message from a HttpClient.GetAsync in .net Framework 4.7.1?

I am trying to translate a PowerShell API call to C#. For some compatibility reasons I have to use .net framework 4.7.1. When I call the API with PowerShell code I get a clear error message "No client certificate". But when I try to do the same…
Dudute
  • 357
  • 1
  • 3
  • 11
0
votes
0 answers

HttpClient.SendAsync throwing nullreference exception on http 204

In a .Net 4.7.1 targeted application I am using HttpClient to perform Http requests. When performing a GET request for a URL that returns a Http 204 result (no content), this results in a System.NullReferenceException: 'Object reference not set to…
redrobot
  • 835
  • 2
  • 13
  • 30
0
votes
0 answers

Issue with (cairo and Sakkal Majalla) Arabic fonts with Aspose

Please advice I am facing same issue with (cairo and Sakkal Majalla) fonts. when converting word document to pdf using Aspose. even though I am used the fix you posted at last reply any help please? **note that my .net framework version is(4.6.1 and…
0
votes
0 answers

Deploy our Asp.NET 4.7.1 MVC web application inside Plesk will show "Future home of something quite cool."

I am working on an ASP.NET 4.7.1 MVC-5 web application >> then i publish it to a folder inside my local PC as follow:- Then using FileZilla >> i uploaded the above files to Plesk as follow:- but currently when i visit our domain, i will get this…
John John
  • 1
  • 72
  • 238
  • 501
0
votes
0 answers

Could not load file or assembly 'Microsoft.Azure.Services.AppAuthentication, Version=1.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

While trying to configure the AzureKeyVaultConfigBuilder for my .NET Framework 4.7.1 application I am getting the following error: "Could not load file or assembly 'Microsoft.Azure.Services.AppAuthentication, Version=1.0.1.0, Culture=neutral,…
Bmoe
  • 888
  • 1
  • 15
  • 37