NuGet/NuGetGallery — Issue #343: System.TypeLoadException
Author: kkbandaru
Created: 2011-12-07 15:12:48+00:00
State: open

i am trying to setup local Nuget Gallery , when try to build Build-Solution.ps i am getting the below error

any readme.txt for running the app in my local machine.

UpdateDatabase:
Updating database
C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild(28,5): error MSB4018: The "UpdateDatabase" task failed unex
pectedly.\r
C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild(28,5): error MSB4018: System.TypeLoadException: Could not l
oad type 'System.Data.Entity.Infrastructure.DbContextInfo' from assembly 'EntityFramework, Version=4.1.0.0, Culture=neu
tral, PublicKeyToken=b77a5c561934e089'.\r
C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild(28,5): error MSB4018: at System.Data.Entity.Migrations.D
bMigrator..ctor(DbMigrationContext migrationContext, DbMigrationSet migrationSet)\r
C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild(28,5): error MSB4018: at System.Data.Entity.Migrations.D
bMigrator..ctor(DbMigrationContext migrationContext)\r
C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild(28,5): error MSB4018: at NuGetGallery.UpdateDatabase.Exe
cute() in c:\Krishna\Sourcecode\NugetGit\Website\BuildTasks\UpdateDatabase.cs:line 11\r
C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild(28,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExe
cutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r
C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild(28,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBui
lder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost task
Host, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
Done Building Project "C:\Krishna\Sourcecode\NugetGit\Scripts\NuGetGallery.msbuild" (FullBuild target(s)) -- FAILED.