Base solution for your next web application

Activities of "terry bentley"

I see that you have used XML files to define the translations for variables. I did see a brief description on how to configure the ASP.Net boiler plate to use RESX files and did get it working but it took a bit of work. I am now planning on developing a real production application using ASP.Net Zero and before I use the "standard" RESX files I would just like to know why XML files seem to be the preferred method of localization in the ASP.Net boilerplate?

Thanks... Terry

I have just started developing using the ASP.Net Iteration Zero and have added a few entities. I do an Ajax call to get an entity. When I get an error on the browser, it is just a popup with a big "X" saying [object Object] Internal Server Error

Is there a configuration parameter to allow me to display more information on the popup while debugging? I have to use Firebug in Firefox or the developer tools in Google Chrome to get more information. In this case the error from the POST is "The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'"

I have been going through applying the latest changes to the Module Zero to my code using WinMerge and have messed something up and been spending days trying to figure out what is causing it. I was hoping someone may be able to point me in the right direction.

After I log in I get the following errors in the FIrefox Console or Visual Studio debug and the web page display is blank.

TypeError: $.fn.selectpicker is undefined multipleSeparator: ', ' default-en_US.js?v=... (line 39, col 5)

ReferenceError: App is not defined var resBreakpointMd = App.getResponsiveBreakpoint('md'); layout.js (line 10, col 9)

ReferenceError: App is not defined App.setAssetsPath(abp.appPath + 'metronic/assets/'); app.js (line 32, col 1)

It looks like the first error is an issue with not referencing the \libs\bootstrap-select\bootstrap-select.js

The second two errors appear to be an issue with \metronic\assets\global\scripts\app.js being called at the right time?

Not sure where to properly fix this though. Thanks...Terry

I just upgraded to the latest version of Abp and Abp.Zero 0.8.1.0. This required an upgrade to .Net Framework 4.6.1 The app runs well on my local work station under both Visual studio 2013 and 2015. Unfortunately when I publish to Azure I get the following error.

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

When I add this assembly reference entry to the web.config and republish I get just a 500 error with no further information. So I don't know whether it got any further or not as far.

Does anyone have any ideas. I don't like the idea of having to rollback my changes to Abp.

Thanks.

I was wondering if you had a list of features that you will be adding in the next 6 month? By the way, the ones you have added over the last six months have been great. Excellent job! I would like to set user and role permission at a product level. Only specific roles and users would be able to view, update, delete, ... particular products. If this is something on your "to do list" I will hold off adding it. If not I will get started on it now. Thanks... Terry

I have been trying to figure out how to have a user time zone in addition to the current local machine time zone and UTC server time zone. As I was working through the abp moment enhancements I see that there are two different copies of abp.timing.convertToUserTimezone. They are in: Web\Abp\Framework\scripts\libs\abp.moment.js Web\Abp\Framework\scripts\abp.js The first returns a moment date object and the second returns a date. Was this intentional?

I was planning on using the moment.tz.setDefault to change the user time zone. Any ideas if this is the way to go?

Thanks

I just upgraded the Abp and ASPNet Zero to 1.2.0 after not upgrading for a few months. I think I made all the breaking change adjustments in the code and database but I must have missed something as I am getting the following error when I try to run it IUserTokenProviderAccessor should be instance of OwinUserTokenProviderAccessor!

App_Start\Startup.cs at the line app.RegisterDataProtectionProvider()

Any guidance as to where to look would be appreciated. Terry

If I enter an incorrect password for a valid username I get an error "There is no entity User with id: nn!" where nn is the user id with the username entered. If I enter an invalid username I get the expected invalid login error.

I have only noticed this since upgrading to Abp 1.2

Here is the stack trace: ERROR 2017-01-03 10:44:00,856 [5 ] Cipher.Web.Controllers.AccountController - There is no such an entity. Entity type: RtTech.Cipher.Authorization.Users.User, id: 36 Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: RtTech.Cipher.Authorization.Users.User, id: 36 at Abp.Domain.Repositories.AbpRepositoryBase2.<GetAsync>d__17.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Domain\Repositories\AbpRepositoryBase.cs:line 86 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 120 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.Users.AbpUserStore2.<GetUserNameFromDatabaseAsync>d__64.MoveNext() in D:\Halil\Github\module-zero\src\Abp.Zero\Authorization\Users\AbpUserStore.cs:line 0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.Users.AbpUserManager2.<UpdateAsync>d__41.MoveNext() in D:\Halil\Github\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 343 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNet.Identity.TaskExtensions.CultureAwaiter1.GetResult() at Microsoft.AspNet.Identity.UserManager2.<AccessFailedAsync>d__157.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.AbpLogInManager3.<TryLockOutAsync>d__38.MoveNext() in D:\Halil\Github\module-zero\src\Abp.Zero\Authorization\AbpLoginManager.cs:line 259 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Abp.Authorization.AbpLogInManager3.<LoginAsyncInternal>d__35.MoveNext() in D:\Halil\Github\module-zero\src\Abp.Zero\Authorization\AbpLoginManager.cs:line 182 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Authorization.AbpLogInManager3.<LoginAsync>d__34.MoveNext() in D:\Halil\Github\module-zero\src\Abp.Zero\Authorization\AbpLoginManager.cs:line 0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 120 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at RtTech.Cipher.Web.Controllers.AccountController.<GetLoginResultAsync>d__22.MoveNext() in C:\Users\bentleyt\Source\Repos\cipher\src\RtTech.Cipher.Web\Controllers\AccountController.cs:line 210 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at RtTech.Cipher.Web.Controllers.AccountController.<Login>d__19.MoveNext() in C:\Users\bentleyt\Source\Repos\cipher\src\RtTech.Cipher.Web\Controllers\AccountController.cs:line 136 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 120 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.

Since upgrading to ASP.Zero 1.2.0 I am seeing three square boxes in Internet Explorer where there should be ellipsis and even a box where there is a <br /> on the html page. If I remove the "Open Sans" font from the tag using the "F12 Developer tool" the element shows correctly. Is there a workaround for this or have I missed copying one or more files across?

This problem does not occur for Microsoft Edge, Chrome, or Firefox.

Thanks... Terry

Side note: even though I have an ASP.Net license clicking the New Topic button in the Premium Forum does nothing (no error or anything)

I upgraded this past week to ASP.Net Zero v1.2 and when I create a user I am getting the following error

System.Data.SqlClient.SqlException: Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception: The wait operation timed out

If I comment out the two lines await _notificationSubscriptionManager.SubscribeToAllAvailableNotificationsAsync(user.ToUserIdentifier()); await _appNotifier.WelcomeToTheApplicationAsync(user); in CreateUserAsync (UserAppService.cs) the user is created without a problem.

I am assuming there must be a deadlock in the database but I am not seeing any deadlocks in the SQL Profiler although I do see a reference to exec sp_executesql N'DELETE [dbo].[AbpNotifications] WHERE ([Id] = @0)',N'@0 uniqueidentifier',@0='1F3986A1-72E3-4CF2-A761-670629B6EF43' just before the first rollback.

This is a bit confusing as this is the notification record that is being added in the main transaction that has not been committed yet.

Any Ideas? Thanks... Terry

Showing 1 to 10 of 16 entries