System.Data.SQLite

Login
This project makes use of Eagle, provided by Mistachkin Systems.
Eagle: Secure Software Automation
Ticket Hash: be05465d0150e62d499a1c0572dc5a155d1c32d6
Title: Nuget installation fails on .net 4.6 project
Status: Closed Type: Incident
Severity: Important Priority: Medium
Subsystem: NuGetPackage Resolution: External_Bug
Last Modified: 2015-11-02 18:40:08
Version Found In: 1.0.98.1
User Comments:
anonymous added on 2015-10-28 13:20:24: (text/x-fossil-plain)
Hi there.

I'm using visual studio 2015 community edition. I start a new F# console project and immediately go to install the System.Data.SQLite package.

At them moment, this means I can't use SQLite in this project.

Thank you for your time.

The following is the output:

Attempting to gather dependencies information for package 'System.Data.SQLite.1.0.98.1' with respect to project 'ConsoleApplication1', targeting '.NETFramework,Version=v4.6'
Attempting to resolve dependencies for package 'System.Data.SQLite.1.0.98.1' with DependencyBehavior 'Lowest'
Resolving actions to install package 'System.Data.SQLite.1.0.98.1'
Resolved actions to install package 'System.Data.SQLite.1.0.98.1'
For adding package 'EntityFramework.6.0.0' to project 'ConsoleApplication1' that targets 'net46'.
For adding package 'EntityFramework.6.0.0' to project 'ConsoleApplication1' that targets 'net46'.
Adding package 'EntityFramework.6.0.0' to folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages'
Added package 'EntityFramework.6.0.0' to folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages'
Added reference 'EntityFramework' to project 'ConsoleApplication1'.
Added reference 'EntityFramework.SqlServer' to project 'ConsoleApplication1'.
Added reference 'System.ComponentModel.DataAnnotations' in the Global Assembly Cache to project 'ConsoleApplication1'
Added file 'App.config'.
Added package 'EntityFramework.6.0.0' to 'packages.config'
Added file 'packages.config' to project 'ConsoleApplication1'.
For adding package 'EntityFramework.6.0.0' to project 'ConsoleApplication1' that targets 'net46'.
Executing script file 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\tools\init.ps1'...
For adding package 'EntityFramework.6.0.0' to project 'ConsoleApplication1' that targets 'net46'.
Executing script file 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\tools\install.ps1'...
Exception calling "SetData" with "2" argument(s): "Type 
'Microsoft.VisualStudio.FSharp.ProjectSystem.Automation.OAProject' in assembly 'FSharp.ProjectSystem.Base, 
Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."
At C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\tools\EntityFramework.psm1:633 char:5
+     $domain.SetData('project', $Project)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : SerializationException
 
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Data.Entity.ConnectionFactoryConfig.InitializeEntityFrameworkCommand.Execute()
   at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
Install failed. Rolling back...
Removed file 'packages.config' from folder 'C:\Users\Richard\Documents\ConsoleApplication1\ConsoleApplication1'.
Removed package 'EntityFramework 6.0.0' from 'packages.config'
Removed file 'packages.config'
Removed reference 'EntityFramework.dll' from project 'ConsoleApplication1'
Removed reference 'EntityFramework.SqlServer.dll' from project 'ConsoleApplication1'
Removing package 'EntityFramework 6.0.0' from folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages'
Removed folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\lib\net40'.
Removed folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\lib\net45'.
Removed folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\Content'.
Removed folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\tools'.
Removed folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0\lib'.
Removed file 'EntityFramework.6.0.0.nupkg' from folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0'.
Removed folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages\EntityFramework.6.0.0'.
Removed folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages'.
Removed package 'EntityFramework 6.0.0' from folder 'C:\Users\Richard\Documents\ConsoleApplication1\packages'
System.Management.Automation.RuntimeException: Object reference not set to an instance of an object. ---> System.Management.Automation.RuntimeException: Object reference not set to an instance of an object.
   --- End of inner exception stack trace ---
   at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
   at NuGetConsole.Host.PowerShell.Implementation.RunspaceDispatcher.<>c__DisplayClass21_0.<InvokeCore>b__0()
   at NuGetConsole.Host.PowerShell.Implementation.RunspaceDispatcher.WithLock(Action act)
   at NuGetConsole.Host.PowerShell.Implementation.RunspaceDispatcher.InvokeCore(Pipeline pipeline, IEnumerable`1 inputs)
   at NuGetConsole.Host.PowerShell.Implementation.RunspaceDispatcher.Invoke(String command, Object[] inputs, Boolean outputResults)
   at NuGetConsole.Host.PowerShell.Implementation.SyncPowerShellHost.ExecuteHost(String fullCommand, String command, Object[] inputs)
   at NuGetConsole.Host.PowerShell.Implementation.PowerShellHost.Execute(IConsole console, String command, Object[] inputs)
   at NuGetConsole.VSScriptExecutor.<>c__DisplayClass15_0.<ExecuteCoreAsync>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at NuGetConsole.VSScriptExecutor.<ExecuteCoreAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGetConsole.VSScriptExecutor.<ExecuteAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at NuGet.ProjectManagement.MSBuildNuGetProject.<InstallPackageAsync>d__33.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<ExecuteActionsAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at NuGet.PackageManagement.UI.UIActionEngine.<PerformActionAsync>d__3.MoveNext()
========== Finished ==========

mistachkin added on 2015-10-28 16:03:06: (text/x-fossil-plain)
This looks a lot like a bug in the Entity Framework package.  It seems there is
some bad interaction with F#?  The first issue I see in the output is:

Exception calling "SetData" with "2" argument(s):
"Type 'Microsoft.VisualStudio.FSharp.ProjectSystem.Automation.OAProject' in
assembly 'FSharp.ProjectSystem.Base, Version=14.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable."

I've never seen this type before, nor have I seen this error before.