Upgrade Nuget Gallery - EF AutomiaticMigration issue


I self-host nuget gallery inside my company. I am trying to upgrade it but I have following error:

Unable to update database to match the current model because there are pending changes and automatic migration is disabled. 
Either write the pending model changes to a code-based migration or enable automatic migration. 
Set DbMigrationsConfiguration.AutomaticMigrationsEnabled to true to enable automatic migration. 

I don't know how can I upgrade my database from powershell/cmd on server. I don't have a VisualStudio installed there.


I tried to run manually migrate.exe from EF but I have:

ERROR: Could not load file or assembly 'F:\\NugetGallery\\bin\\NuGetGallery.Website' or one of
 its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
asked on Stack Overflow Dec 22, 2014 by Piotr Stapp • edited Dec 22, 2014 by Piotr Stapp

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0