Base solution for your next web application

Activities of "[email protected]"

got the building working now but getting a deploy error now

2017-10-27T06:49:44.4563883Z ##[error]Error: More than one package matched with specified pattern. Please restrain the search pattern.

not sure how to limit to just one package deployment

<a class="postlink" href="https://www.dropbox.com/s/z99hfagljw28kio/Capturedeployfail.PNG?dl=0">https://www.dropbox.com/s/z99hfagljw28k ... l.PNG?dl=0</a>

copy of error

Not sure if there is another step to add to specify with zip file to deploy....

ah

You pointed my in the right direction.

Confused

I fixed the test errors by setting the id to a value - but why should this be required as the field in an identity and therefore auto incremented, won't this now break the seed step as part on database update?

static DefaultSelectItemValuesCreator()
    {
        InitialValues = new List&lt;SelectItemValue&gt;
        {
            new SelectItemValue
            {
                Id = 1,
                Name = "NSW",
                Order = 1,
                Value = "NSW",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 2,
                Name = "VIC",
                Order = 2,
                Value = "VIC",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 3,
                Name = "WA",
                Order = 4,
                Value = "WA",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 4,
                Name = "NT",
                Order = 5,
                Value = "NT",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 5,
                Name = "SA",
                Order = 6,
                Value = "SA",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 6,
                Name = "TAS",
                Order = 7,
                Value = "TAS",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 7,
            Name = "QLD",
            Order = 3,
            Value = "QLD",
            Category = "State"
        }
        };


    }

using System.Collections.Generic; using System.Linq; using Abp.Application.Features; using Furiosotoro.Furiosotoro.Configuration; using Microsoft.EntityFrameworkCore; using Furiosotoro.Furiosotoro.Editions; using Furiosotoro.Furiosotoro.EntityFrameworkCore; using Furiosotoro.Furiosotoro.Features;

namespace Furiosotoro.Furiosotoro.Migrations.Seed.Host { public class DefaultSelectItemValuesCreator { public static List<SelectItemValue> InitialValues { get; private set; }

    private readonly FuriosotoroDbContext _context;

    static DefaultSelectItemValuesCreator()
    {
        InitialValues = new List&lt;SelectItemValue&gt;
        {
            new SelectItemValue
            {
                Id = 1,
                Name = "NSW",
                Order = 1,
                Value = "NSW",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 2,
                Name = "VIC",
                Order = 2,
                Value = "VIC",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 3,
                Name = "WA",
                Order = 4,
                Value = "WA",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 4,
                Name = "NT",
                Order = 5,
                Value = "NT",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 5,
                Name = "SA",
                Order = 6,
                Value = "SA",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 6,
                Name = "TAS",
                Order = 7,
                Value = "TAS",
                Category = "State"
            },
            new SelectItemValue
            {
                Id = 7,
            Name = "QLD",
            Order = 3,
            Value = "QLD",
            Category = "State"
        },
            new SelectItemValue
            {
                Id = 8,
                Name = "DL1",
                Order = 1,
                Value = "DL1",
                Category = "DownloadUpload"
            },
            new SelectItemValue
            {
                Id = 8,
                Name = "DL2",
                Order = 2,
                Value = "DL2",
                Category = "DownloadUpload"
            },
            new SelectItemValue
            {
                Id = 9,
                Name = "R1",
                Order = 2,
                Value = "R1",
                Category = "Repository"
            },
            new SelectItemValue
            {
                Id = 10,
                Name = "R2",
                Order = 3,
                Value = "R2",
                Category = "Repository"
            }
        };


    }

    public DefaultSelectItemValuesCreator(FuriosotoroDbContext context)
    {
        _context = context;
    }

    public void Create()
    {
        CreateValues();
    }

    private void CreateValues()
    {
        foreach (var value in InitialValues)
        {
            AddValueIfNotExists(value);
        }
    }

    private void AddValueIfNotExists(SelectItemValue value)
    {
        if (_context.SelectItemValues.Any(l => l.Name == value.Name))
        {
            return;
        }

        _context.SelectItemValues.Add(value);

        _context.SaveChanges();
    }
}

}

Thanks!

I change the seed to create the list like this public static List<SelectItemValue> InitialValues => GetInitialValues();

    private readonly FuriosotoroDbContext _context;


    private static List&lt;SelectItemValue&gt; GetInitialValues()
    {
        return new List&lt;SelectItemValue&gt;
        {

.... } } and all the tests are now working

thanks you :D

An unhandled exception occurred while processing the request. EntityNotFoundException: There is no such an entity. Entity type: Furiosotoro.Furiosotoro.Authorization.Users.User, id: 20

Abp.Domain.Repositories.AbpRepositoryBase+<GetAsync>d__21.MoveNext() in AbpRepositoryBase.cs, line 86

Stack Query Cookies Headers 

EntityNotFoundException: There is no such an entity. Entity type: Furiosotoro.Furiosotoro.Authorization.Users.User, id: 20
    Abp.Domain.Repositories.AbpRepositoryBase+&lt;GetAsync&gt;d__21.MoveNext() in AbpRepositoryBase.cs
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Abp.Threading.InternalAsyncHelper+&lt;AwaitTaskWithPostActionAndFinallyAndGetResult&gt;d__5.MoveNext() in InternalAsyncHelper.cs
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Abp.Authorization.Users.AbpUserStore+&lt;GetUserNameFromDatabaseAsync&gt;d__88.MoveNext()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Abp.Authorization.Users.AbpUserManager+&lt;UpdateAsync&gt;d__41.MoveNext() in AbpUserManager.cs
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    System.Runtime.CompilerServices.TaskAwaiter.GetResult()
    Furiosotoro.Furiosotoro.Authorization.Users.UserRegistrationManager+&lt;RegisterAsync&gt;d__13.MoveNext() in UserRegistrationManager.cs

            await _userManager.UpdateAsync(user);

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) System.Runtime.CompilerServices.TaskAwaiter.GetResult() Furiosotoro.Furiosotoro.Web.Controllers.AccountController+<Register>d__38.MoveNext() in AccountController.cs

                var user = await _userRegistrationManager.RegisterAsync(

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) lambda_method(Closure , object ) Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable+Awaiter.GetResult() Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeActionMethodAsync>d__12.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeNextActionFilterAsync>d__10.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted) Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeInnerFilterAsync>d__14.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeNextExceptionFilterAsync>d__23.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ExceptionContext context) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeNextResourceFilter>d__22.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeFilterPipelineAsync>d__17.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker+<InvokeAsync>d__15.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Builder.RouterMiddleware+<Invoke>d__4.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware+<Invoke>d__4.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) IdentityServer4.Hosting.IdentityServerMiddleware+<Invoke>d__3.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__6.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware+<Invoke>d__7.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) IdentityServer4.Hosting.BaseUrlMiddleware+<Invoke>d__3.MoveNext() System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Furiosotoro.Furiosotoro.Web.Authentication.JwtBearer.JwtTokenMiddleware+<>c__DisplayClass0_0+<<UseJwtTokenMiddleware>b__0>d.MoveNext() in JwtTokenMiddleware.cs

                await next();

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Furiosotoro.Furiosotoro.Web.Authentication.JwtBearer.JwtTokenMiddleware+<>c__DisplayClass0_0+<<UseJwtTokenMiddleware>b__0>d.MoveNext() in JwtTokenMiddleware.cs

                    await next();
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+&lt;Invoke&gt;d__6.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+&lt;Invoke&gt;d__7.MoveNext()

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?

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

Yes would like also to know the recommended way to swap themes

thanks

Answer

Yes I did - It was the first thing then I tried all the recommendation without success

Showing 1 to 10 of 22 entries