Closed nadeemkhoury closed 5 years ago
Take a look at https://github.com/dotnet/corefx/issues/34022 - that might be your issue.
Another point I would offer is that this is a netstandard2.0 library, but Framework 4.6.1 doesn't properly support netstandard2.0 - see footnote (2) on https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support. You may want to try upgrading to .NET Framework 4.7.2 if possible.
I'll leave this open for now, but I'm 99% sure that this isn't an issue with TestHost.WindowsAuth itself.
Thank You Scott for your quick reply. I solved my problem by deleting the package and install it again and it worked properly. Thank you for the great job and have a nice day.
Hi, Thank you for the great job. I'm running a test project that build on .NET Framework 4.6.1. However, when I installed the project, It didn't install System.Security.Principal.Windows. I installed it manually version 4.5.1 in both projects, the Test project, and System Under test Project. When I tried to run the test, when it reach the following code
var client = server.ClientForCurrentUser();
it throws an exceptionWhen I looked at my
bin
directory I found this version of System.Security.Principal.Windows: 4.6.26919.2.2 I added an assembly binding in my config file like this:But It doesn't work.
Can you please help ? if it is not related to the library issues, feel free to close it.
Thanks