Alternative to System.Web.Security.Membership.GeneratePassword in aspnetcore (netcoreapp1.0)

Here’s a class/method, based on the source of Membership.GeneratePassword of that works on .NET Core: public static class Password { private static readonly char[] Punctuations = “!@#$%^&*()_-+=[{]};:>|./?”.ToCharArray(); public static string Generate(int length, int numberOfNonAlphanumericCharacters) { if (length < 1 || length > 128) { throw new ArgumentException(nameof(length)); } if (numberOfNonAlphanumericCharacters > length || numberOfNonAlphanumericCharacters < … Read more

Visual Studio 2017 – Could not load file or assembly ‘System.Runtime, Version=4.1.0.0’ or one of its dependencies

I had the same problem and no suggested solutions that I found worked. My solution for this issue was: Check App.config and packages.config to see if the versions match. Originally my app.config contained: <dependentAssembly> <assemblyIdentity name=”System.Runtime” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” /> <bindingRedirect oldVersion=”0.0.0.0-4.1.1.0″ newVersion=”4.1.1.0″ /> </dependentAssembly> But the packages.config contained: <package id=”System.Runtime” version=”4.3.0″ targetFramework=”net461″ requireReinstallation=”true” /> I … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)