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.

109 questions
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
1 answer

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 my startup.cs config.EnableCors( new…
Gavin Mannion
  • 875
  • 1
  • 14
  • 32
0
votes
0 answers

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 well as reinstalled all the NuGet dependencies…
user3587624
  • 1,427
  • 5
  • 29
  • 60
0
votes
2 answers

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 was hide. I tried also EnsureVisible property…
MoonTech
  • 11
  • 6
0
votes
2 answers

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 me, how to pass the same authorization token on…
0
votes
1 answer

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); Console.ReadKey(); } public interface…
Guillaume
  • 1,782
  • 1
  • 25
  • 42
0
votes
1 answer

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. If a non-integer value (e.g., a string) is passed to this parameter, the model binding process sets this value to null. How do I intercept…
DenaliHardtail
  • 27,362
  • 56
  • 154
  • 233
0
votes
0 answers

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 athentication call to the backend api, getting a 401…
0
votes
0 answers

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 column value ' using dr As DataRow MyList =…
Drew
  • 4,215
  • 3
  • 26
  • 40
0
votes
0 answers

Akka.net .net standard to .net core thought Receptionist

I go my main Akka.net (1.3.6) code stored into .net standard libraries 2.0. I use this common code in a light house in .net Core 2.0 connect to all my processing agent in .net core 2.0 too. This part correctly connect together and work fine. To send…
Mickael Thumerel
  • 516
  • 4
  • 14
0
votes
1 answer

Creating SQL Agent job is failing with no errors

I am trying to create a SQL Agent job with a command line step using C#. The web API is calling a class which contains the method, when stepping through the code no errors are thrown and all variables have values but the job is not created when…
BabyDoll
  • 263
  • 1
  • 4
  • 16
0
votes
0 answers

High DPI scaling in Windows 10, 8, 8.1, and 7?

Which is the simplest way to make my application DPI-aware for Windows 10 Creator's edition, Windows 7, 8, and 8.1? I see a lot of different options to add to the app.config and app.manifest and am just confused on which to add for my case. Was…
Chris K
  • 369
  • 1
  • 4
  • 11
0
votes
0 answers

Attaching console to WIndows Forms application is partially successfull

I have used this method before, but now I am stuck. I have a Windows Forms application (actually a Windows Service) that can be run as an "interactive" application. In this case, I am using AllocConsole() to create a console for the application. The…
ZorgoZ
  • 2,974
  • 1
  • 12
  • 34
0
votes
0 answers

ASP.Net Web Forms Identity\OWIN Login Page Access Issues

I have recently been re-working a web form application from .net2.0 to .net4.7 and decide to add Identity and OWIn for local and social authentication. I create a new web forms app and then copied the account, app_start and models folders over to…
OPSL
  • 131
  • 1
  • 11
0
votes
1 answer

Does .NET 4.7 check property values before assignment?

I just started using Resharper and I'm getting the "Redundant check before assignment" warning and I'd like to know if the runtime really does check for equality and skip reassigning the value. I've seen the other posts about immutable or primitive…
Kevin S. Miller
  • 913
  • 1
  • 9
  • 21