Skip to content

Dev15 Preview Install EntityFramework 6.1.3, got "The domain manager specified by the host could not be instantiated" during running script. #2162

Closed

Description

@zhili1208

Step:

  1. Dev15 Preview + NuGet 3.4.0.653
  2. Open NuGet UI and install entityframework 6.1.3

Expected: installed well.

Actual:
Executing script file 'c:\Users\lzhi\Documents\Visual Studio vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\install.ps1'...
Exception calling "CreateDomain" with "3" argument(s): "The domain manager specified by the host could not be
instantiated."
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:743 char:5

  • $domain = [AppDomain]::CreateDomain('EFConfig', $null, $info)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : TypeLoadException

You cannot call a method on a null-valued expression.
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:744 char:5

  • $domain.SetData('project', $Project)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:747 char:5

  • $domain.SetData('efDispatcher', $dispatcher)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "Unload" with "1" argument(s): "Value cannot be null.
Parameter name: domain"
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:795 char:5

  • [AppDomain]::Unload($runner.Domain)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentNullException

You cannot call a method on a null-valued expression.
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5

  • $domain.CreateInstanceFrom(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "CreateDomain" with "3" argument(s): "The domain manager specified by the host could not be
instantiated."
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:743 char:5

  • $domain = [AppDomain]::CreateDomain('EFConfig', $null, $info)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : TypeLoadException

You cannot call a method on a null-valued expression.
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:744 char:5

  • $domain.SetData('project', $Project)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:747 char:5

  • $domain.SetData('efDispatcher', $dispatcher)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "Unload" with "1" argument(s): "Value cannot be null.
Parameter name: domain"
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:795 char:5

  • [AppDomain]::Unload($runner.Domain)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : ArgumentNullException

You cannot call a method on a null-valued expression.
At C:\Users\lzhi\Documents\Visual Studio
vNext\Projects\ConsoleApplication1\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5

  • $domain.CreateInstanceFrom(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Type 'get-help EntityFramework' to see all available Entity Framework commands.
Successfully installed 'EntityFramework 6.1.3' to ConsoleApplication1
========== Finished ==========

Activity

  1. added
    Resolution:External
    on Feb 24, 2016
  2. yishaigalatzer commented on Mar 12, 2016

    @yishaigalatzer

    @divega - Closing the NuGet issue, please keep tracking with the VS folks, and update here when it is working agin

    CC @bricelam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution:External

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions