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

Downloading V5.0.2 & Missing Items #4224


User avatar
0
gbadenhorst created

Hi

There seems to be a problem with downloading the latest version of Angular + Core: 5.0.2 as it just never downloads and just keeps loading.

Also, Previously there was an option for Editions(From which I understand the subscriptions were set up?) Is this option not available in 5.0.1? Will it be added later or where do we manage the subscription now? Should we create a custom page for it now?

Another thing, just a heads up. When you change the header to dark, the profile drop-down does not change the text to black and keeps it white. It is an easy enough fix to make it display correctly but just giving a heads-up in case it needs to be changed for later releases.

One more thing, Is the template completely upgraded to v5 now or is there still things that need to be changed or added? For example bootstrap style textboxes etc (Just wondering as the previous version had a very good visual look and now it is kind of back to standard old school style).

Thank you Gideon Badenhorst


20 Answer(s)
  • User Avatar
    0
    gbadenhorst created

    Hi, Download works fine now.

    The project, however, does give this error in 5.0.2 when trying to update-database which did not occur in 5.0.1:

    System.Exception: Could not find content root folder! at BMS.Web.WebContentDirectoryFinder.CalculateContentRootFolder() at BMS.EntityFrameworkCore.BMSDbContextFactory.CreateDbContext(String[] args) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContextFromFactory(Type factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.<>c__DisplayClass14_0.<FindContextFactory>b__1() at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func`1 factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType) at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabaseImpl(String targetMigration, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) Could not find content root folder!

  • User Avatar
    0
    godrunner created

    I also noticed that the download page says v5.0.0 when yesterday it said v5.0.1, so that is confusing as to what version is actually available.

    I was looking for v5.0.2

  • User Avatar
    0
    poolman created

    Can anybody actually log in with 5.0.2? Mine is a fresh download, and all it returns is a JSON string, but does't do the redirect.

    {"result":null,"targetUrl":"/Account/ResetPassword?TenantId=1&UserId=2&ResetCode=4344B38F1D&ReturnUrl=%2FApp","success":true,"error":null,"unAuthorizedRequest":false,"__abp":true}
    
  • User Avatar
    0
    godrunner created

    <cite>godrunner: </cite> I also noticed that the download page says v5.0.0 when yesterday it said v5.0.1, so that is confusing as to what version is actually available.

    I was looking for v5.0.2

    Oh, I see now that after selecting the "Project Type" the version number changed from 5.0.0 to 5.0.2.

  • User Avatar
    0
    godrunner created

    Hey @poolman!

    <cite>poolman: </cite> Can anybody actually log in with 5.0.2?

    I have the ASP.NET & Angular version working fine here. I did delete the old DB first though. Maybe try deleting some cookies and try again?

  • User Avatar
    0
    riaan created

    @poolman,

    I get the same error/issue as you on MVC/jQuery.

    It appears that not all the resources files were downloaded using the new Yarn/Gulp process. (I'm fairly new to this)

    Below the errors as displayed in my browser's console upon launching the Mvc project.

    Failed to load resource: the server responded with a status of 404 (Not Found)
    account-layout-libs.css Failed to load resource: the server responded with a status of 404 (Not Found)
    common-styles.css Failed to load resource: the server responded with a status of 404 (Not Found)
    account-layout-libs.js Failed to load resource: the server responded with a status of 404 (Not Found)
    common-scripts.js Failed to load resource: the server responded with a status of 404 (Not Found)
    account-layout-libs.js Failed to load resource: the server responded with a status of 404 (Not Found)
    GetScripts:1082 Uncaught TypeError: Cannot read property 'unspecifiedClockProvider' of undefined
        at GetScripts:1082
        at GetScripts:1084
    common-scripts.js Failed to load resource: the server responded with a status of 404 (Not Found)
    Default.js:3 Uncaught ReferenceError: app is not defined
        at Default.js:3
        at Default.js:15
    Login:174 Uncaught ReferenceError: jQuery is not defined
        at Login:174
    vendors.bundle.css Failed to load resource: the server responded with a status of 404 (Not Found)
    account-layout-libs.css Failed to load resource: the server responded with a status of 404 (Not Found)
    common-styles.css Failed to load resource: the server responded with a status of 404 (Not Found)
    

    I did follow the instructions as per the development page, but for some reason not all the required resources are downloaded.

    Any assistance would be appreciated.

    Riaan

  • User Avatar
    0
    mschrembs created

    Hello,

    I have the same issue. For me it seems, that the "default gulp task" cannot finish the bundling and minifing of css and js files.

    [https://ibb.co/dY9mxm])

    It is running now for almost 25 minutes...

    BR Michael

  • User Avatar
    0
    [email protected] created

    I am also having the same issue - lots of missing files and the default step does not complete

    I am also get the javascript language service is disabled warning message

    /view-resources/Areas/App/Views/_Bundles/common-scripts.js is not in the directory

    The glup process also seems to min the files and delete the original files leaving only the min files in the _bundle directory

    It is possible to have the bundleconfig.json file as a backup so it can create the files?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi All,

    I will try to answer all questions, please let me know if you still have problems.

    @GBadenhorst,

    We had some problems about our server yesterday, now download should work without a problem. The problem you had for Migrations must be fixed in v5.0.2.

    @godrunner, v5.0.2 is available now, can you download it now ? Please let us know if you have any problems.

    @poolman, @riaan, <a href="mailto:[email protected]">[email protected]</a>, If you are using ASP.NET Core & jQuery, you need to first install packages using yarn and then run gulp task to create bundles, see <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Core#npm--front-end-dependencies">https://aspnetzero.com/Documents/Develo ... pendencies</a>.

    @mschrembs, Gulp task is not finished because, whenever you make a change on the js/css files, related bundles are updated.

    Thanks.

  • User Avatar
    0
    [email protected] created

    thank you That has fixed it

    I am still missing fonts - What should i do here.

    Register?returnUrl=%2FApp:147 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-500.woff2">http://localhost:62114/fonts/Poppins/po ... -500.woff2</a> net::ERR_ABORTED Register?returnUrl=%2FApp:147 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-300.woff2">http://localhost:62114/fonts/Poppins/po ... -300.woff2</a> net::ERR_ABORTED Register?returnUrl=%2FApp:147 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-regular.woff2">http://localhost:62114/fonts/Poppins/po ... ular.woff2</a> net::ERR_ABORTED Register?returnUrl=%2FApp:150 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-500.woff">http://localhost:62114/fonts/Poppins/po ... n-500.woff</a> net::ERR_ABORTED Register?returnUrl=%2FApp:150 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-regular.woff">http://localhost:62114/fonts/Poppins/po ... gular.woff</a> net::ERR_ABORTED Register?returnUrl=%2FApp:150 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-300.woff">http://localhost:62114/fonts/Poppins/po ... n-300.woff</a> net::ERR_ABORTED Register?returnUrl=%2FApp:150 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-500.ttf">http://localhost:62114/fonts/Poppins/po ... in-500.ttf</a> net::ERR_ABORTED Register?returnUrl=%2FApp:150 GET <a class="postlink" href="http://localhost:62114/fonts/Poppins/poppins-v5-latin-regular.ttf">http://localhost:62114/fonts/Poppins/po ... egular.ttf</a> net::ERR_ABORTED account-layout-libs.min.js:1 WARN: account-layout-libs.min.js:1 Could not find localization source: undefined

  • User Avatar
    0
    aaron created
    Support Team

    I am still missing fonts

    Related issue: https://github.com/aspnetzero/aspnet-zero-core/issues/627

  • User Avatar
    0
    mschrembs created

    Hi,

    it is still not working, i have downloaded the verion 5.0.3 and haven't done any changes.

    Gulp is still not finishing the default task.

    I have done everything like it is explained.

    BR

    Michael

    <cite>ismcagdas: </cite> Hi All,

    I will try to answer all questions, please let me know if you still have problems.

    @GBadenhorst,

    We had some problems about our server yesterday, now download should work without a problem. The problem you had for Migrations must be fixed in v5.0.2.

    @godrunner, v5.0.2 is available now, can you download it now ? Please let us know if you have any problems.

    @poolman, @riaan, <a href="mailto:[email protected]">[email protected]</a>, If you are using ASP.NET Core & jQuery, you need to first install packages using yarn and then run gulp task to create bundles, see <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Core#npm--front-end-dependencies">https://aspnetzero.com/Documents/Develo ... pendencies</a>.

    @mschrembs, Gulp task is not finished because, whenever you make a change on the js/css files, related bundles are updated.

    Thanks.

  • User Avatar
    0
    aaron created
    Support Team

    Gulp is still not finishing the default task.

    Related issue: https://github.com/aspnetzero/aspnet-zero-core/issues/617

  • User Avatar
    0
    mschrembs created

    In the Version V5.0.3 the clean task is already replaced and it is still not working.

    <cite>aaron: </cite>

    Gulp is still not finishing the default task.

    Related issue: https://github.com/aspnetzero/aspnet-zero-core/issues/617

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mschrembs,

    It seems like we need to exclude it from build steps, see <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/617#issuecomment-347669308">https://github.com/aspnetzero/aspnet-ze ... -347669308</a>.

  • User Avatar
    0
    mschrembs created

    Hi @ismcagdas,

    I am not sure what I am doing wrong, I have downloaded the actual version 5.0.4 and there is no clean task activated and I am still facing the issue that the default task is not finishing.

    BR

    Michael.

    <cite>ismcagdas: </cite> Hi @mschrembs,

    It seems like we need to exclude it from build steps, see <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/617#issuecomment-347669308">https://github.com/aspnetzero/aspnet-ze ... -347669308</a>.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mschrembs,

    Are there any errors on javascript console ?

    Are you running the below commands before running your application in order ?

    When you are in the root of Mvc project (..../src/MyCompanyName.AbpZeroTemplate.Web.Mvc/) in command prompt

    1. first run "yarn"
    2. then run "gulp"

    After all, you can run your MVC project and fonts must be displayed.

  • User Avatar
    0
    mschrembs created

    Hi @ismcagdas,

    yes I did this, the second step 2. then run "gulp" is not finishing.

    It is hanging here:

    [12:31:05] Using gulpfile ~\Downloads\PhoneBookDemo\src\Acme.PhoneBookDemo.Web.Mvc\gulpfile.js
    [12:31:05] Starting 'copy:node_modules'...
    [12:31:06] Finished 'copy:node_modules' after 904 ms
    [12:31:06] Starting 'default'...
    [12:31:06] Starting 'watch'...
    [12:31:06] Finished 'watch' after 177 ms
    [12:31:06] Starting 'min:css'...
    [12:31:06] Starting 'min:js'...
    [12:31:06] Finished 'default' after 243 ms
    [12:31:07] Finished 'min:css' after 1.39 s
    [12:31:07] Finished 'min:js' after 1.48 s
    

    There is no returncode 0

    BR

    Michael

    <cite>ismcagdas: </cite> Hi @mschrembs,

    Are there any errors on javascript console ?

    Are you running the below commands before running your application in order ?

    When you are in the root of Mvc project (..../src/MyCompanyName.AbpZeroTemplate.Web.Mvc/) in command prompt

    1. first run "yarn"
    2. then run "gulp"

    After all, you can run your MVC project and fonts must be displayed.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mschrembs,

    Yes, it is designed like that to watch changes of your script & style files. It is not a problem. If you don't have an error while running gulp, it should work as expected.

  • User Avatar
    0
    bbakermmc created

    Here is my gulp file, i made a new task called vstsbuild it removes the watch function and I removed the prod check in the min functions. On our build server I run the vstsbuild. I had issues where if I didnt remove the prod check some of the min files wouldnt get update, not sure if it was a permission issue or this prod check. But I ended up removing everything from the bundles dir and the prod check and everything works fine now.

    /// <binding Clean='clean' />
    "use strict";
    
    var gulp = require("gulp"),
        async = require('async'),
        concat = require("gulp-concat"),
        cssmin = require("gulp-cssmin"),
        uglify = require("gulp-uglify"),
        merge = require("merge-stream"),
        rimraf = require("rimraf"),
        gutil = require('gulp-util'),
        cleanCSS = require('gulp-clean-css'),
        runSequence = require('run-sequence'),
        bundleconfig = require("./bundle.config.js");
    
    var regex = {
        css: /\.css$/,
        js: /\.js$/
    };
    
    gulp.task("min", ["min:js", "min:css"]);
    
    gulp.task("min:js", function () {
        var tasks = getBundles(regex.js).map(function (bundle) {
            var outputFileName = getOutputFileName(bundle.outputFileName);
            var outputFolder = getOutputFolder(bundle.outputFileName);
            console.log(outputFolder + " -- " + outputFileName);
            return gulp.src(bundle.inputFiles)
                .pipe(concat(outputFileName))
                .pipe(gulp.dest(outputFolder));
        });
    
        //if (gutil.env.prod) {
            var minifyTasks = getBundles(regex.js).map(function (bundle) {
                var outputFileName = getOutputFileName(bundle.outputFileName);
                var outputFolder = getOutputFolder(bundle.outputFileName);
    
                if (bundle.createMinified === false || outputFileName.endsWith('.min.js')) {
                    return null;
                }
                console.log(outputFolder + " -- " + outputFileName);
                var minifiedJsOutputFile = outputFileName.substr(0, outputFileName.lastIndexOf(".")) + ".min.js";
                return gulp.src(bundle.inputFiles)
                    .pipe(concat(minifiedJsOutputFile))
                    .pipe(uglify()).on('error', function (err) { gutil.log(gutil.colors.red('[Error]'), err.toString()); })
                    .pipe(gulp.dest(outputFolder));
            });
    
            for (var i = 0; i < minifyTasks.length; i++) {
                if (minifyTasks[i] == null) {
                    continue;
                }
                tasks.push(minifyTasks[i]);
            }
        //}
    
        return merge(tasks);
    });
    
    gulp.task("min:css", function () {
        var tasks = getBundles(regex.css).map(function (bundle) {
            var outputFolder = getOutputFolder(bundle.outputFileName);
            var outputFileName = getOutputFileName(bundle.outputFileName);
    
            return gulp.src(bundle.inputFiles)
                .pipe(cleanCSS({
                    level: 0, // no optimization on css file
                    rebaseTo: outputFolder
                }))
                .pipe(concat(outputFileName))
                .pipe(gulp.dest(outputFolder));
        });
    
        //if (gutil.env.prod) {
            var minifyTasks = getBundles(regex.css).map(function (bundle) {
                var outputFolder = getOutputFolder(bundle.outputFileName);
                var outputFileName = getOutputFileName(bundle.outputFileName);
    
                if (bundle.createMinified === false || outputFileName.endsWith('.min.css')) {
                    return null;
                }
    
                var minifiedCssOutputFile = outputFileName.substr(0, outputFileName.lastIndexOf(".")) + ".min.css";
                return gulp.src(bundle.inputFiles)
                    .pipe(cleanCSS({
                        rebaseTo: outputFolder,
                        level: 1 // default optimization on css file
                    }))
                    .pipe(concat(minifiedCssOutputFile))
                    .pipe(gulp.dest(outputFolder));
            });
    
            for (var i = 0; i < minifyTasks.length; i++) {
                if (minifyTasks[i] == null) {
                    continue;
                }
    
                tasks.push(minifyTasks[i]);
            }
        //}
    
        return merge(tasks);
    });
    
    gulp.task("clean_bundles", function (cb) {
        async.parallel(bundleconfig.bundles.map(function (bundle) {
            return function (done) {
                if (bundle.outputFileName.match(/[^/]+(css|js)$/)) {
                    rimraf(bundle.outputFileName, done);
                } else {
                    rimraf(bundle.outputFileName + '/*', done);
                }
            }
        }), cb);
    });
    
    gulp.task("watch", function () {
        getBundles(regex.js).forEach(function (bundle) {
            gulp.watch(bundle.inputFiles, ["min:js"]);
        });
    
        getBundles(regex.css).forEach(function (bundle) {
            gulp.watch(bundle.inputFiles, ["min:css"]);
        });
    
        gulp.watch('./bundle.config.js', function () {
            runSequence(['min:css', 'min:js']);
        });
    });
    
    gulp.task('copy:node_modules', function () {
        rimraf.sync(bundleconfig.libsFolder + '/**/*', { force: true });
        var tasks = [];
    
        for (var mapping in bundleconfig.mappings) {
            if (bundleconfig.mappings.hasOwnProperty(mapping)) {
                var destination = bundleconfig.libsFolder + '/' + bundleconfig.mappings[mapping];
                if (mapping.match(/[^/]+(css|js)$/)) {
                    tasks.push(
                        gulp.src(mapping).pipe(gulp.dest(destination))
                    );
                } else {
                    tasks.push(
                        gulp.src(mapping + '/**/*').pipe(gulp.dest(destination))
                    );
                }
            }
        }
    
        return merge(tasks);
    });
    
    gulp.task('default', ['copy:node_modules'], function () {
        runSequence('watch', ['min:css', 'min:js']);
    });
    
    gulp.task('vstsbuild', ['copy:node_modules'], function () {
        runSequence(['min:css', 'min:js']);
    });
    
    function getBundles(regexPattern) {
        return bundleconfig.bundles.filter(function (bundle) {
            return regexPattern.test(bundle.outputFileName);
        });
    }
    
    function getOutputFileName(fullFilePath) {
        var lastIndexOfSlash = fullFilePath.lastIndexOf('/');
        return fullFilePath.substr(lastIndexOfSlash, fullFilePath.length - lastIndexOfSlash);
    }
    
    function getOutputFolder(fullFilePath) {
        var lastIndexOfSlash = fullFilePath.lastIndexOf('/');
        return fullFilePath.substr(0, lastIndexOfSlash);
    }