Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

I folowed the instructions but it doesnt load #2099


User avatar
0
jholla created

The instructions upon download say:

After download <span style="color:#800000">- Open your solution on Visual Studio 2013 or later.

  • Select the 'Web' project as startup project.
  • Open Package Manager Console, select 'EntityFramework' project as Default project and run the
  • EntityFramework's 'Update-Database' command. This will create the database</span>
  • Run the application. User name is 'admin' and password is '123qwe' as default.

When I run the Update-Database cmg, it says {projectName}.Web failed to load


13 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you build the project successfully ? If so, can you try to run Visual Studio as an Administrator ? Please try to run with VS 2015 if possible.

    Please write back if you still have the problem.

    Thanks.

  • User Avatar
    0
    jholla created

    That is actually what I did: I have VS2015 update 3 Community w/ IIS Express Ran in Admin mode

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you share the name of your project ? I will try the same template.

    Or you can say what you choosed when creating your template. ASP.NET MVC 5.x + Angular JS + Entity Framework + Module Zero ?

    Thanks.

  • User Avatar
    0
    jholla created

    Go to this url: <a class="postlink" href="http://aspnetboilerplate.com/">http://aspnetboilerplate.com/</a> I selected ASP>NET MVC 5.x Angular Entity Framework I included ModuleZero because I need Role Management, etc... I named the app: CPFSApp

    Then downloaded

  • User Avatar
    0
    jholla created

    Ideally I would prefer .NET Core but it doesnt seem to come w/ Angular GUI to manage roles

  • User Avatar
    0
    jholla created

    This seems to be my issue,and i said "seems" so it might be, but Im trying to figure out how to fix EF/PkgMgr - <a class="postlink" href="http://stackoverflow.com/questions/9674983/the-term-update-database-is-not-recognized-as-the-name-of-a-cmdlet">http://stackoverflow.com/questions/9674 ... f-a-cmdlet</a>

    In that StackOverflow it says theres a known bug in EF + VS2015. Do you know about it?

  • User Avatar
    0
    jholla created

    Now I am getting this error:

    PM> Update-Database The project 'CPFSApp.Web' failed to build. PM>

  • User Avatar
    0
    jholla created

    Im trying the .NET Core version and Im not sure what this means:

    <a class="postlink" href="http://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template-Core">http://aspnetboilerplate.com/Pages/Docu ... plate-Core</a>

    Migrator.EF tool is used for adding/applying EntityFramework migrations. In order to create your database, open command prompt and move to root folder of EntityFramework project in your solution. Then run "dotnet ef database update" command."

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you want to use AspNet Core version, you need to run "dotnet ef database update" command in window's command prompt. You cannot use Package Manager console with AspNet Core right now.

    Anyway, if you want to use ASP.NET MVC 5.x version, you can send your downloaded template to us (<a href="mailto:[email protected]">[email protected]</a>) and we can check for your problem. Please delete bin & obj folders and all folders inside packages folder before sending the project.

  • User Avatar
    0
    jholla created

    I emailed both .NET Core and MVC5 projects to you from <a href="mailto:[email protected]">[email protected]</a>, with a subject heading of: "jholla abp projects".

  • User Avatar
    0
    jholla created

    @ismcagdas Any luck? I did send it into the email address you provided.

  • User Avatar
    0
    jholla created

    FOUND THE FIX:

    Step 1 targets the x86 platform

    <a class="postlink" href="http://www.developerhandbook.com/entity-framework/project-failed-to-build-error-when-adding-an-entity-framework-migration-add-migration/">http://www.developerhandbook.com/entity ... migration/</a>

    Step 2 installing TypeScript for Visual Studio fixed it, although TypeScript was already installed globally on my machine via npm

    <a class="postlink" href="http://stackoverflow.com/questions/37350183/keep-getting-tsc-exe-exited-with-code-1">http://stackoverflow.com/questions/3735 ... ith-code-1</a>

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thank you for sharing your solution. I was unable to take a look at this at the weekend.

    Thanks again.