Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error with calling the WebDriverManager to get the lastest exe #308

Closed
garry-edmonds opened this issue Feb 8, 2024 · 0 comments
Closed

Comments

@garry-edmonds
Copy link
Contributor

garry-edmonds commented Feb 8, 2024

Just updated to the latest version 2.17.1 and get the following error.

System.IO.FileLoadException : Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at System.ReadOnlySpan`1..ctor(T[] array)
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo.CacheNameAsUtf8BytesAndEscapedNameSection()
   at System.Text.Json.Serialization.Metadata.JsonPropertyInfo.Configure()
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo.InitializePropertyCache()
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo.Configure()
   at System.Text.Json.Serialization.Metadata.JsonTypeInfo.<EnsureConfigured>g__ConfigureLocked|143_0()
   at System.Text.Json.JsonSerializerOptions.GetTypeInfoInternal(Type type, Boolean ensureConfigured, Boolean resolveIfMutable)
   at System.Text.Json.JsonSerializer.GetTypeInfo(JsonSerializerOptions options, Type inputType)
   at System.Text.Json.JsonSerializer.Deserialize[TValue](String json, JsonSerializerOptions options)
   at WebDriverManager.Clients.ChromeForTestingClient.GetResultFromHttpTask[TResult](Task`1 taskToRun)
   at WebDriverManager.Clients.ChromeForTestingClient.GetLastKnownGoodVersions()
   at WebDriverManager.DriverConfigs.Impl.ChromeConfig.GetLatestVersion()
   at WebDriverManager.DriverManager.GetVersionToDownload(IDriverConfig config, String version)
   at WebDriverManager.DriverManager.SetUpDriver(IDriverConfig config, String version, Architecture architecture)
garry-edmonds added a commit to garry-edmonds/WebDriverManager.Net that referenced this issue Feb 16, 2024
…er 64 bit version.

rosolko#308 - Fixed by replacing json library with newtonsoft.json.
Now downloads chromedriver 64 bit version as never downloaded this version only 32 bit.
Fixed unzip issue with dealing with folder names in the zip file.

Updated to .net framework 4.7.2 as 4.6.2 is no longer supported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant