Search code examples
c#.netvirtocommerce

VirtoCommerce Setup admin not loading


Trying to set up VirtoCommerce per docs here: https://virtocommerce.com/docs/vc2devguide/deployment/platform-deployment/deploy-from-source-code

Solution builds fine but when starting debugger I get: enter image description here

Doesn't even hit a breakpoint in Startup.cs. When going via browser: http://localhost/admin, it spins endlessly. Tried iisreset /restart, nothing helps


Solution

  • Found the solution. For some reason no exceptions were trown and no timeouts. Simply endless loading of the page. The issue was here:

    SetupDatabaseInitializer.cs
    

    at this line:

    var migrator = new System.Data.Entity.Migrations.DbMigrator(_config);
    

    I had incorrect connection string to my DB.