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

FileLoadException when System.Data.SqlClient is included to gauge-dotnet .csproj file. #34

Closed
gemunulk opened this issue Jan 12, 2019 · 2 comments

Comments

@gemunulk
Copy link

Expected behavior

Gauge dotnet project should work with System.Data.SqlClient

Actual behavior

Failed to initialize suite datastore. Error: Connection closed [127.0.0.1:52720] cause: EOF Gauge.Dotnet.GaugeListener System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. at System.Runtime.Loader.AssemblyLoadContext.LoadFromStream(IntPtr ptrNativeAssemblyLoadContext, IntPtr ptrAssemblyArray, Int32 iAssemblyArrayLen, IntPtr ptrSymbols, Int32 iSymbolArrayLen, ObjectHandleOnStack retAssembly) at System.Runtime.Loader.AssemblyLoadContext.LoadFromStream(Stream assembly, Stream assemblySymbols) at Gauge.Dotnet.Wrappers.AssemblyWrapper.LoadFrom(String location) in /Users/vagrant/go-agent-17.4.0/pipelines/dotnet-package/src/Wrappers/AssemblyWrapper.cs:line 42 at Gauge.Dotnet.AssemblyLoader.ScanAndLoad(String path) in /Users/vagrant/go-agent-17.4.0/pipelines/dotnet-package/src/AssemblyLoader.cs:line 128 at Gauge.Dotnet.AssemblyLoader..ctor(IAssemblyWrapper assemblyWrapper, IEnumerable1 assemblyLocations, IReflectionWrapper reflectionWrapper) in /Users/vagrant/go-agent-17.4.0/pipelines/dotnet-package/src/AssemblyLoader.cs:line 43 at Gauge.Dotnet.MessageProcessorFactory.GetProcessor(MessageType messageType, Boolean scan) in /Users/vagrant/go-agent-17.4.0/pipelines/dotnet-package/src/MessageProcessorFactory.cs:line 50 at Gauge.Dotnet.GaugeListener.PollForMessages() in /Users/vagrant/go-agent-17.4.0/pipelines/dotnet-package/src/GaugeListener.cs:line 56

Steps to replicate

  1. gauge init dotnet
  2. Include <PackageReference Include="System.Data.SqlClient" Version="4.6.0" /> in to the netcore-template.csproj
  3. gauge run specs/

Version

Platform: Windows 10
Dotent Version: Microsoft .NET Core SDK 2.1.402
Gauge version: 1.0.3
Commit Hash: ff6c0c3

Plugins

dotnet (0.1.0)

@negiDharmendra
Copy link
Contributor

@gemunulk I am not familiar with .Net eco system. Following reads might help you to resolve the issue.

https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions

https://github.com/dotnet/corefx/issues/30631

@negiDharmendra negiDharmendra removed their assignment Feb 6, 2019
@nehashri
Copy link
Contributor

nehashri commented Feb 6, 2019

please reopen the issue if you have any other concerns

@nehashri nehashri closed this as completed Feb 6, 2019
@nehashri nehashri removed the ready label Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants