Base solution for your next web application

Activities of "tinytownsoftware"

I was happily running the website locally this morning, but all of a sudden, it cannot log in anymore, using any account. I checked my change history and nothing has really changed that could cause this. I also reverted back to the code that is in Production and that doesn't work either. Production on Azure thankfully works, but my Staging slot in Azure does not work even though it worked just fine this morning (I did not change the code). Furthermore, I have another laptop that has code that is about 2 weeks old. I just ran that and it does not log in, so something very shady is going on. Something somewhere on the internet is down, but I don't know what.

I stepped through the AccountController's Login method and it works fine, it returns success. Putting in the wrong password returns failure. But something is not working as far as maybe setting the AbpSession, as /api/services/app/Session/GetCurrentLoginInformations returns a null user. The cookie itself is there in the browser, I checked. I am not too familiar with how AbpSession works, so if you tell me where to set a breakpoint to see if it's getting set properly, I can do it.

So, there must be something external that either Abp or AspNetZero are accessing that stopped working between now and this morning.

Question

I see the following crash in OnStart on Android for a handful of my users. I cannot reproduce this myself. Has anyone seen this? Why would it not be able to resolve the INavigationService dependency? The only call to the DependencyResolver in OnStart is await DependencyResolver.Resolve<INavigationService>().InitializeAsync();.

android.runtime.JavaProxyThrowable: at BalanceForecasting.Core.Dependency.DependencyResolver.Resolve[T] () [0x00006] in <da884dc937844bcb825aea050968506b>:0
at BalanceForecasting.App.OnStart () [0x000a6] in <da884dc937844bcb825aea050968506b>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <7d466fc78986465b98bf8e069ca47b5e>:0
at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <c2c0528935f749b79020cc27a8a55d69>:0
at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <c2c0528935f749b79020cc27a8a55d69>:0
at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00009] in <c2c0528935f749b79020cc27a8a55d69>:0
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.30(intptr,intptr)
  at mono.java.lang.RunnableImplementor.n_run (Native Method)
  at mono.java.lang.RunnableImplementor.run (RunnableImplementor.java:30)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7356)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:930)

I just finished writing the Android application. Everything is working fine with the localhost server. I changed the ApiUrlConfig.DefaultHostUrl const to point to my live website (previously it was localhost). Then I ran it in the emulator in Debug mode, but got the above exception. I'm not sure why it would do that. The website itself works just fine. Here is the full stack. Does it have anything to do with the fact that I am running it in Debug mode in the emulator?

{Java.IO.IOException: stream was reset: PROTOCOL_ERROR at ModernHttpClient.NativeMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00428] in /Users/paul/code/paulcbetts/modernhttpclient/src/ModernHttpClient/Android/OkHttpNetworkHandler.cs:135 at BalanceForecasting.ApiClient.AuthenticationHttpHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00037] in C:\Users\Robert\Documents\BalanceForecastingZero\src\BalanceForecasting.Application.Client\ApiClient\AuthenticationHttpHandler.cs:29 --- End of managed Java.IO.IOException stack trace --- java.io.IOException: stream was reset: PROTOCOL_ERROR at com.squareup.okhttp.internal.spdy.SpdyStream.getResponseHeaders(SpdyStream.java:145) at com.squareup.okhttp.internal.http.SpdyTransport.readResponseHeaders(SpdyTransport.java:104) at com.squareup.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:830) at com.squareup.okhttp.internal.http.HttpEngine.access$200(HttpEngine.java:95) at com.squareup.okhttp.internal.http.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:823) at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:684) at com.squareup.okhttp.Call.getResponse(Call.java:272) at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:228) at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:199) at com.squareup.okhttp.Call.access$100(Call.java:34) at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:162) at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) }

Hello, I was looking in Azure to see what queries were bottlenecks and I noticed that this query was running too frequently. It ran 35089 queries in the past 24 hours, which is around 24 per minute. I modified the BackgroundJobManager class and set the JobPollPeriod to one hour, but it didn't seem to have an effect. Any ideas?

(@__Now_0 datetime2(7),@__p_1 int)SELECT TOP(@__p_1) [a].[Id], [a].[CreationTime], [a].[CreatorUserId], [a].[IsAbandoned], [a].[JobArgs], [a].[JobType], [a].[LastTryTime], [a].[NextTryTime], [a].[Priority], [a].[TryCount] FROM [AbpBackgroundJobs] AS [a] WHERE ([a].[IsAbandoned] <> CAST(1 AS bit)) AND ([a].[NextTryTime] <= @__Now_0) ORDER BY [a].[Priority] DESC, [a].[TryCount], [a].[NextTryTime]

Question

Hello, I was looking at my Azure SQL usage and this query popped up as very frequent. In the past 24 hours it has been executed 21295 times. Any ideas where it's coming from and why it's so frequent?

(@__ef_filter__p_3 bit,@__ef_filter__p_4 bit,@__ef_filter__CurrentTenantId_5 int,@__ef_filter__p_6 bit,@__ef_filter__p_7 bit,@__ef_filter__CurrentTenantId_8 int,@__ef_filter__p_0 bit,@__ef_filter__p_1 bit,@__ef_filter__CurrentTenantId_2 int,@__user_Id_0 bigint)SELECT [t0].[Name] FROM [AbpUserOrganizationUnits] AS [a] INNER JOIN ( SELECT [a0].[Id], [a0].[CreationTime], [a0].[CreatorUserId], [a0].[IsDeleted], [a0].[OrganizationUnitId], [a0].[RoleId], [a0].[TenantId] FROM [AbpOrganizationUnitRoles] AS [a0] WHERE ((@__ef_filter__p_3 = CAST(1 AS bit)) OR ([a0].[IsDeleted] <> CAST(1 AS bit))) AND ((@__ef_filter__p_4 = CAST(1 AS bit)) OR ((([a0].[TenantId] = @__ef_filter__CurrentTenantId_5) AND ([a0].[TenantId] IS NOT NULL AND @__ef_filter__CurrentTenantId_5 IS NOT NULL)) OR ([a0].[TenantId] IS NULL AND @__ef_filter__CurrentTenantId_5 IS NULL))) ) AS [t] ON [a].[OrganizationUnitId] = [t].[OrganizationUnitId] INNER JOIN ( SELECT [a1].[Id], [a1].[ConcurrencyStamp], [a1].[CreationTime], [a1].[CreatorUserId], [a1].[DeleterUserId], [a1].[DeletionTime], [a1].[DisplayName], [a1].[IsDefault], [a1].[IsDeleted], [a1].[IsStatic], [a1].[LastModificationTime], [a1].[LastModifierUserId], [a1].[Name], [a1].[NormalizedName], [a1].[TenantId] FROM [AbpRoles] AS [a1] WHERE ((@__ef_filter__p_6 = CAST(1 AS bit)) OR ([a1].[IsDeleted] <> CAST(1 AS bit))) AND ((@__ef_filter__p_7 = CAST(1 AS bit)) OR ((([a1].[TenantId] = @__ef_filter__CurrentTenantId_8) AND ([a1].[TenantId] IS NOT NULL AND @__ef_filter__CurrentTenantId_8 IS NOT NULL)) OR ([a1].[TenantId] IS NULL AND @__ef_filter__CurrentTenantId_8 IS NULL))) ) AS [t0] ON [t].[RoleId] = [t0].[Id] WHERE (((@__ef_filter__p_0 = CAST(1 AS bit)) OR ([a].[IsDeleted] <> CAST(1 AS bit))) AND ((@__ef_filter__p_1 = CAST(1 AS bit)) OR ((([a].[TenantId] = @__ef_filter__CurrentTenantId_2) AND ([a].[TenantId] IS NOT NULL AND @__ef_filter__CurrentTenantId_2 IS NOT NULL)) OR ([a].[TenantId] IS NULL AND @__ef_filter__CurrentTenantId_2 IS NULL)))) AND (([a].[UserId] = @__user_Id_0) AND @__user_Id_0 IS NOT NULL)

It would be helpful to make the text of the dropdown actions in the DataTable dynamic. I modified the code and figured you can maybe include it in a future release.

In datatables.record-action.js - createDropdownItem function: if (fieldItem.text) { var text = ''; if (typeof fieldItem.text === 'function') { text = fieldItem.text({ record: record }); } else { text = fieldItem.text; } $a.html(text); }

On the desktop browser, I can see the email address/username menu button. However, on mobile, none of the themes have this dropdown button. When I tap the three dots icon, all I see is the flag/language selection when the accordion shows.

Also, on desktop browsers, themes 5 and 10 do not have this button either. All other themes are fine.

Please advise, thank you! It's pretty important to have this button on mobile.

Thanks, Robert

Because there are two websites, I have to pay double the price on Azure. Additionally, I have to worry about DNS subdomains. I going to try to merge the two, but I was curious about why it was implemented this way?

I enabled quick theme change an I was expecting that if a given logged in user changed the theme, the new theme would only be used for their account. What's actually happening is that if a user changes the theme, it's global for all users. Is there a way to make the theme change be localized for only one user?

I am using the Power Tools extension to generate a new entity. I then went to the new page and created an entity. But to my surprise, this entity appeared for all users. I was expecting it to only be visible to the user who created it. So my question is, how exactly do I do this? What do I need to modify to add the foreign key to the user? The tool generated a lot of files, so it's a bit overwhelming. Thank you!

Showing 1 to 10 of 10 entries