Base solution for your next web application

Activities of "rvanwoezik"

Hi Guys,

After publishing my Mvc Core2 to Azure, I have trouble getting styles and scripts. In my console i get HTTP500: server error - The Server encountered an unexpected condition GET - <a class="postlink" href="http://fp-phoogle.azurewebsites.net/AbpScripts/GetScripts?v=636420979441315541">http://fp-phoogle.azurewebsites.net/Abp ... 9441315541</a>

Any tips?

Question

I finally migrated my ASP.NET 5.x & Angularjs 1.x to ASP.NET CORE & Angular and it is working on my machine ;-) When i try to publish it to Azure (merge project) from Visual Studio I'm getting an error:

The command "ng build --prod" exited with code 9009. PhoogleZero.Web.Host C:\Users\Rene\Documents\Visual Studio 2017\Projects\aspnet-core\src\PhoogleZero.Web.Host\PhoogleZero.Web.Host.csproj 76

Any instructions or tips how to publish to Azure?

Hi in AngularJS spa I have a large organizationtree, when selecting a unit in the bottom half of the tree the members portlet is on top of the page.

Need css advice to keep the members portlet visible

Thanks in advance

I have extended user with DateOfBirth, in UserAppService i have created GetBirthdayList()

public async Task<ListResultDto<UserListDto>> GetBirthDayList()
        {
            var query = from u in UserManager.Users.Where(p => p.IsActive)
                        let diffYears = DbFunctions.DiffYears(u.DateOfBirth, DateTime.Today)
                        let birthdayOccurred =
                        u.DateOfBirth.Month < DateTime.Today.Month
                        || ((u.DateOfBirth.Day + 3) <= DateTime.Today.Day && u.DateOfBirth.Month == DateTime.Today.Month)
                        let nextBirthdate = DbFunctions.AddYears(u.DateOfBirth, diffYears + (birthdayOccurred ? 1 : 0))
                        let daysToBirthdate = DbFunctions.DiffDays(DateTime.Today, nextBirthdate)
                        orderby daysToBirthdate
                        select u;

            var users = await query.Take(12).ToListAsync();

            return new ListResultDto<UserListDto>(users.MapTo<List<UserListDto>>());
        }

This list is visible for members of the Role Admin, but not for default Role "user", how to give role "user" view rights to birthdaylist without giving them create edit delete rights? Should i use userRepository instead of UserManager?

I hope my question is clear.

Hi, I have extended OrganizationUnit with, among others, property IsClinic when querying the organizationUnitRepository this extended properties or discriminator are not available.

var query =
                from ou in _organizationUnitRepository.GetAll().Where(ou => ou.IsClinic)

Any tips?

maybe a stupid question, but where do i change the Visible rows per page for the usergrid in Angular 1.5?

Thanks in advance! Rene van Woezik

Hi, for a certain view i like to have All OrganizationUnits include there Members -> Member Name and ProfilePic. I'm banging my head against my keyboard but still can get it right.

I Tried this, but result is empty

var query = from uou in _userOrganizationUnitRepository.GetAll()
                        join ou in _organizationUnitRepository.GetAll() on uou.OrganizationUnitId equals ou.Id
                        join user in UserManager.Users on uou.UserId equals user.Id
                        where uou.OrganizationUnitId == input.Id
                        orderby input.Sorting
                        select new { uou, user };

Please advice

I'm using ASP.NET MVC 5.x & Angularjs 1.x

Existing Users don't have problems, only for new users Checked DB Table AbpUsers, new user with mentioned id is in DB

I've extended User with properties like DateOfBirth, Address etc. Also changed to https / ssl

Workflow is that Admin adds User -> New User receives Email confirmation mail. When they click the link they get following error:

[https://www.phoogle.nl/Account/EmailConfirmation?userId=wRf37Cr1IEOkUyMX12s7Gg%3D%3D&tenantId=mFlm%2BKHDrbFA%2BQWcyocM9g%3D%3D&confirmationCode=fd8baadba672497695e88d687396a269])

There is no such an entity. Entity type: PhoogleZero.Authorization.Users.User, id: 199

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: PhoogleZero.Authorization.Users.User, id: 199

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[EntityNotFoundException: There is no such an entity. Entity type: PhoogleZero.Authorization.Users.User, id: 199]
   Abp.Domain.Repositories.<GetAsync>d__17.MoveNext() +325
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Threading.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__5`1.MoveNext() +550
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Authorization.Users.&lt;GetUserNameFromDatabaseAsync&gt;d__64.MoveNext() +446
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Authorization.Users.&lt;UpdateAsync&gt;d__41.MoveNext() +517
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   PhoogleZero.Web.Controllers.&lt;EmailConfirmation&gt;d__39.MoveNext() +772
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Threading.&lt;AwaitTaskWithPostActionAndFinallyAndGetResult&gt;d__5`1.MoveNext() +550
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +97
   System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult) +17
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
   System.Web.Mvc.Async.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() +50
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +225
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +225
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +225
   System.Web.Mvc.Async.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() +225
   System.Web.Mvc.Async.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
   System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +26
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
   Castle.Proxies.AccountControllerProxy.EndExecuteCore_callback(IAsyncResult asyncResult) +4
   Castle.Proxies.Invocations.Controller_EndExecuteCore.InvokeMethodOnTarget() +55
   Castle.DynamicProxy.AbstractInvocation.Proceed() +80
   Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +42
   Castle.DynamicProxy.AbstractInvocation.Proceed() +108
   Castle.Proxies.AccountControllerProxy.EndExecuteCore(IAsyncResult asyncResult) +142
   System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   Castle.Proxies.AccountControllerProxy.EndExecute_callback(IAsyncResult asyncResult) +26
   Castle.Proxies.Invocations.Controller_EndExecute.InvokeMethodOnTarget() +55
   Castle.DynamicProxy.AbstractInvocation.Proceed() +80
   Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +42
   Castle.DynamicProxy.AbstractInvocation.Proceed() +108
   Castle.Proxies.AccountControllerProxy.EndExecute(IAsyncResult asyncResult) +142
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +129

Any Tips what can cause this?

Do you have a sample of using Azure Blob storage? Maybe extend the DbBinaryObjectManager?

I want to use the bootstrap datepicker popup [http://keenthemes.com/preview/metronic/theme/admin_1_angularjs/#/ui_bootstrap.html])

Do I need to add a directive in app.js? Do I need to add script to to bundle in AppBundleConfig.cs?

Thanx in advance

Showing 51 to 60 of 69 entries