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.
102
questions
2
votes
1
answer
70
views
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 ...
0
votes
1
answer
241
views
FastReport .Net C# load frx file with Map object
I use FastReport .Net Designer to create .frx file with all my Report definition, and then I load it to my c# code, I added a Map Object, I did run the Preview and the map is shown well.
But when I ...
0
votes
0
answers
11
views
How to deal with a resource file for a library referenced by NuGet
I have created a NuGet package out of a project A. The project build folder outputs DLL and an XML resource file (not the one with methods metadata).
In project B, I have installed the NuGet package. ...
0
votes
0
answers
189
views
C# get files with multiple wildcard within multiple sub-folders named after dates
I have multiple folder named after the year\month\days. It's in a Azure blob storage if that change anything, I already have the code that download files from the blob storage.
Like:
2020
01
01
...
0
votes
0
answers
37
views
Missing dependency for .net 4.7.2 framework test project referencing .net 4.7 Win forms project referencing .net standard 2.0 library
I have a .net 4.7.2 framework test project that references a .net 4.7 framework Win forms project that references the EfCore.Bulkextensions library. It builds fine and I can run the Win forms project ...
0
votes
0
answers
16
views
How does affect Authenticode .NET Framework Libraries and Executables
Assuming, I do code signing (not strong key signing!) on a .NET Framework 4.7x library (.dll) or an executable (.exe), what impacts I have to take in account regarding ...
Performance
Execution ...
0
votes
1
answer
106
views
WPF touch event in screen not working with UserControl
We are developing a WPF application. We use .net4.7 but we have tested it with .net5 and our problem persists.
We have some different elements (buttons, input text...) and sometimes they have to show ...
0
votes
0
answers
1k
views
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....
0
votes
0
answers
258
views
An error occurred when trying to create a controller of type 'xxx'. Make sure that the controller has a parameterless public constructor. Ninject
I am working in .Net framework 4.7.2. I am facing a problem while using NInject dependency injection resolver. I am getting the following error when trying to access NotificationController, which has ...
0
votes
0
answers
55
views
Using date named archives together with archiveAboveSize parameter
Using nlog 4.7.2.11786. Same behavior with the latest version - 4.7.10.13013.
I use archiveAboveSize to invoke archiving when log file reaches set size. All logs from a single day needs to be stored ...
0
votes
1
answer
36
views
Earliest inspection of request before entry to application
Before hitting the application itself, is there a way to respond to requests, preferably based on URL, and return a response? Possibly a web.config server (IIS) configuration or a static page kinda ...
1
vote
0
answers
111
views
Can not Start Process on certain PC
Process proc = new Process();
proc.StartInfo.FileName = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
proc.StartInfo.Arguments = "web.whatsapp.com --new-window --...
1
vote
3
answers
5k
views
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 ...
1
vote
0
answers
120
views
What is the relationship between ServicePointManager.DefaultConnectionLimit and system.net connectionManagement maxconnection?
Do these two settings refer to the same limit or seperate limits? (don't fixate on the number, I put that in at random)
System.Net.ServicePointManager.DefaultConnectionLimit = 20;
The above property ...
4
votes
1
answer
717
views
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 ...
2
votes
2
answers
51
views
Given json as a response but not sure how to parse it
I am using this code to attempt to parse my response back from the payment gateway:
var responseMessage = client.PostAsJsonAsync("transaction", transData).Result;
var response = responseMessage....
1
vote
1
answer
970
views
Puppeteer renders blank pages when not setting breakpoints
I'm using the latest version of PuppeteerSharp and I'm having an issue with blank pages being rendered when not setting a break point.
It would seem the code is not "awaiting" properly if I just let ...
0
votes
3
answers
99
views
Successfully run a C# project on client machine with proper functioning Crystal Reports?
I made my project in C# Visual Studio 2017 using .Net Framework 4.7 and SQL Server 2008. Now I tried to run my project in the client machine which has Windows 10 installed on it. After installing I ...
0
votes
0
answers
51
views
Detect Windows version correctly (when using a generated app manifest)
I want to be able to tell the Windows version during the app execution.
According to the documentation, to differentiate between Windows 8.1+ and Windows 8, I need to target the application using ...
4
votes
1
answer
4k
views
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 ...
-1
votes
1
answer
51
views
C# winforms .net 4.7 ram limits
In my project i take video frames one by one, compress them into 1x1 pixel and then get its color to store in a List. Problem is, if i take ~9,5 minute video, at 25 fps it only processes about 15-20% ...
2
votes
1
answer
809
views
Finding out where unobservedTaskException is thrown: stacktrace is null
I have a large C# appication using third party libraries and somewhere in the application a task is run which is not awaited and throws an exception.
So I added an event handler to TaskScheduler....
1
vote
3
answers
300
views
Determine if a variable is of a lazy type
Quick question - is there any 'prettier' way to determine if a variable was lazily initialized than:
var paramType = param.GetType();
if (paramType.FullName.Contains("System.Lazy"))
{
...
}
I ...
-1
votes
1
answer
286
views
Skip MoveNext() when throwing an out of memory exception in IEnumerator
I'm using IEnumerator to get all the files under a path, this could be more than 30 million files. For a couple of million of files my code is working but at some point in while loop I'm getting an ...
0
votes
1
answer
30
views
Selecting the right framework for a ConsoleApp on Mono [closed]
I need to develop a ConsoleApp that will run on Windows as well as a RaspberryPi (Raspbian - Debian 9)
I have installed mono-complete on the RaspPi
Now my question is this. Do I create in Visual ...
2
votes
1
answer
5k
views
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 ...
1
vote
2
answers
7k
views
localhost this site can't be reached running web application in visual studio
I open my solution in VS2019, select the web application and press F5 to run in the debugger
The browser is set to IIS Express (Google Chrome)
localhost:51872 opens in Chrome with a message
This site ...
2
votes
1
answer
121
views
Is it possible to add packages for "InternalsVisibleTo" at the command line or via a config file?
We have some methods that are internal but that people may need visible in test projects (and only test projects). To enable that, we had to add a bunch of InternalsVisibleTo statements at the top of ...
8
votes
3
answers
9k
views
Is it possible to Install .net 4.7 version on my machine when .net 4.8 is already installed?
I have the following .net versions on my machine. I started working on a .net project which's targetframework is 4.7. When I tried to install .net 4.7, I got this error ".NET Framework 4.7 or a later ...
1
vote
1
answer
24
views
WebServer file logs sometimes are missing after upgrading WebSite's project from .NET framework 3.5 to 4.7
hope to get an answer or at least some kind of clue to a weird problem we are having with our web-servers.
As part of web-server's normal activity, we log some key interactions into a file log. The ...
1
vote
1
answer
360
views
Render superscript in WPF
Here’s the code:
static readonly char[] s_expChar = "eE".ToCharArray();
static void setValue( TextBlock target, double val )
{
string text = val.ToString();
int indE = text.IndexOfAny( ...
0
votes
0
answers
140
views
.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 ...
0
votes
1
answer
243
views
Enable CORS from a specific origin on Topshelf hosted service
I'm sure this is a duplicate but none of the answers I've found appears to be working.
I have a web.api hosted as a windows service and I need to allow CORS to two specific origins.
I have this in ...
0
votes
0
answers
37
views
What version of .NET am I running my App?
I have an ASP.NET Web App which I want to build and run using .NET 4.7.1 (it used to run using .NET 4.5 or I believe so).
I have updated the Target Framework of the project to .NET Framework 4.7.1 as ...
0
votes
2
answers
190
views
How to fix 'selected node' hiding issue while treeview is disabled?
I am using the treeview control in my windows form application and in my functionality treeview needs to be disabled but problem was that after disabling my treeview's selected node is not display It ...
10
votes
1
answer
6k
views
Call async method on UI thread
I'm trying to create WPF client with IdentityServer authentication. I'm using their OidcClient to get logged in. It's whole async while my app is sync and can't be refactored without huge effort. ...
0
votes
2
answers
2k
views
Passing Authorization Header in multiple redirects of HttpClient
I'm sending a get request to the server, the server is redirecting to 4 furthur call and then returns the response.
HttpClient gives the exception, no authorization token is provided.
Can you tell ...
0
votes
1
answer
37
views
Unable to explicitly cast a child class to another child class inside explicit implementation of interface in generic parent base class
I have the following code:
class Program
{
static void Main(string[] args)
{
var first = new A();
OtherClass.EnjoyLife(new OtherClass(first), OtherClass.Default);
...
2
votes
0
answers
266
views
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 ...
6
votes
2
answers
4k
views
KB4344167 security update breaks TLS Code
Hopefully someone can help with this problem. Recently our machines were updated with KB4344167 which includes security updates for .NET 4.7.1. Unfortunately this update has broken our code for a ...
5
votes
1
answer
7k
views
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. ...
1
vote
0
answers
1k
views
.Net Framework 4.7 Advanced Series not available as windows feature
On my windows 10 PC I have a windows feature (control panel > programs > programs and feautres > turn windows features on or off) called .Net Framework 4.7 advanced series. I am trying to enable a ...
0
votes
1
answer
103
views
How do I handle null values during model binding
I have the folowing URL:
http://localhost:7975/test?parameter01=X
In my model, parameter01 is a List<int?>. If a non-integer value (e.g., a string) is passed to this parameter, the model ...
1
vote
0
answers
534
views
Error CS0246 while building solution in VSTS build agent
I have created a project in Visual studio 2017. It builds perfectly locally, but when trying to build using VSTS build agent, its giving below warning -
[warning]C:\Program Files (x86)\Microsoft ...
1
vote
0
answers
243
views
WebBrowser control throwing lots of JavaScript errors
The WebBrowser control shipped with .NET 4.7 is throwing lots of JavaScript errors. For example, we tried with www.yahoo.com and we get multiple JavaScript errors. One such example is shown below:
If ...
1
vote
1
answer
100
views
Process a large numeric input and output hex string
I need to take a numeric input which is greater than 64 bits, ensure only the remaining 83 bits (if input is greater than 83 bit) are discarded and convert it into a hex string.
I have found I can ...
0
votes
0
answers
368
views
Bearer token 401 authorization error from Angular5 APP to .Net 4.7 back-end API
Working with Angular 5 on in our app, we are authenticating through the Azure Active Directory(AAD), getting a bearer token to access the backend API. We are not having any success in the ...
16
votes
2
answers
611
views
How to use the ServiceBus EventData Offset Value
I have some code that uses the Service Bus Event Data, and I suspect that I need to use the offset property as, currently, my program is (or seems to be) re-running the same Event Hub data over and ...
0
votes
0
answers
77
views
How to String.Join a String()
I am doing something wrong as I am getting a resulting string of "System.String[]" when I attempt to String.Join the following:
Dim MyList As String()
' DB select here returns a comma delimited ...
1
vote
1
answer
412
views
TeamCity: Unmet Requirements DotNetFramework4.[56]
We've just installed .NET Framework 4.7.1 on our build agents, however our projects are now showing as having no compatible build agents.
Each agent is showing:
Unmet requirements: Exists=>...