Base solution for your next web application

Activities of "TomLeonard"

This is a long shot, but I was thinking that someone else must be considering of how to solve this;

The Xamarin ASPNZ app is a nice start and handles much of the Async traffic and authentication. I am embarking on replicating the main dashboard of my app space in the Xamarin app . There is no sense in replicating controls and using API's to bind them as the ASP core app is very responsive. Except for the grids, they seem to render well on most mobile device (the grids do have some issues on droid phones) I can’t see a reason to replicate this with native or XF controls.

So, my approach is to allow the main dashboard to render inside a WebView control implemented inside the APSNZ Xamarin client appl. Several issues arise from this scheme;

  1. Stripping off duplicate headers (allow ASNZ client app to manage navigation)
  2. duplicate footers
  3. Push notifications
  4. managing screen call stack to ensure app does not go outside dashboard frames.
  5. Custom navigation ( I have an API scheme for this )

Anybody already thinking along these lines or see more issues with this that I just mentioned? Any input is welcome on this moving the Xam Client further along. Thanks!

I cant seem to find the Acme.PhoneBookDemo repo, anybody seen it ? Docs say it should be here ;https://github.com/aspnetzero/aspnet-zero-samples/tree/master/PhoneBook-Core Thanks!

I am getting a FlurlHttpException axception whie making first https request in the ASPNZ Xamarin app. Taget mobiel devices is a Samsung S10+ running Android Version 9. (PIE). My minimum taget version is API level 23. The initial GET is to Azure, but throws exception before it even leaves phone, URL : https://????.azurewebsites.net/AbpUserConfiguration/GetAll

short version exception : exception {Flurl.Http.FlurlHttpException: Call failed. Didn't find class "md53445bfa005abb70b0a2fcd6c25bc64be.AwaitableOkHttp_OkTaskCallback" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.????.Mobile-efnJv1yo0JoM5swt4qJ1-g==/base.apk"],nativeLibraryDirectories=[/data/app/com.????.Mobile-efnJv1yo0JoM5swt4qJ1-g==/lib/arm64, /data/app/com.????.Mobile-efnJv1yo0JoM5swt4qJ1-g==/base.apk!/lib/arm64-v8a, /system/lib64]] GET https://????.azurewebsites.net/AbpUserConfiguration/GetAll ---> Java.Lang.ClassNotFoundException: Didn't find class "md53445bfa005abb70b0a2fcd6c25bc64be.AwaitableOkHttp_OkTaskCallback" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file

Anynoe have any infight on this excpetion of suggestions appreciated.

Question

Hello,

I am running self hosted Web API for version 6.9. in ASPNEtCore/Angular merged project. Performed DB migration and changed conn string. I dont know default credentials and trying to login (http://localhost:22742/ui/login.) with default/admin/123qwe , I get the error... "UserFriendlyException: Requires password change....." I am able to navigate to swagger API page (localhost:22742/swagger) , so I am not sure why I am not seeing the locahost:22742/UI page . Any suggestions ? Thanks

Hello.

When I check open azure sql sessions via SELECT login_name ,COUNT(session_id) AS session_count FROM sys.dm_exec_sessions GROUP BY login_name; I see the number is growing. After several hundreds of sessions new EF Core calls result in Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. I'm using v5.5 and default repositories. Also during profiling codebase via Stackify it shows warnings on each sql call Connection may not have been closed properly Could anybody check opened sessions count? Is it only my problems or data access bug?

Thanks!

Question

Hello

Could you specify Setup Page usage scenario? I have downloaded clean app (core + angular).

  • Is it correct I can go to app/admin/install and setup database from here? I'm not able to open this page because of error on GetCurrentLoginInformations api call
Cannot open database "..." requested by the login. The login failed.
  • Deployed app has enabled anonymous api/services/app/Install/GetAppSettingsJson Is it by design or it should be disabled after deploy?

Thanks

We are using Angular and .NET Core version and would like to integrate Identity Server 4.0. We see in the code ; /* We can not use app.UseIdentityServerAuthentication because IdentityServer4.AccessTokenValidation * is not ported to asp.net core 2.0 yet. See issue: <a class="postlink" href="https://github.com/IdentityServer/IdentityServer4/issues/1055">https://github.com/IdentityServer/Ident ... ssues/1055</a> * Once it's ported, add IdentityServer4.AccessTokenValidation to Web.Core project and enable following lines: */

ID 4 seems to be ported to Core 2.0 . Any timeline or estimate on release for APSNETZero CORE/Angular version to support this ? Thanks in advanced.

Question

Hello

could you help with the unit tests issue it works in product and unit tests:

var tags = await _tagRepository.GetAll().ToListAsync();
var tagsDto = ObjectMapper.Map<List<TagDto>>(tags);

but if I want to optimize for projections like this

var tagsDto = await _tagRepository.GetAll().ProjectTo<TagDto>().ToListAsync();

it asks for IConfigurationProvider in unit tests (but ok in product).

Mapper not initialized. Call Initialize with appropriate configuration. If you are trying to use mapper instances through a container or otherwise, make sure you do not have any calls to the static Mapper.Map methods, and if you're using ProjectTo or UseAsDataSource extension methods, make sure you pass in the appropriate IConfigurationProvider instance.

Could you advise how to setup it in tests.

Thanks!

I am having difficulties in using package manager database migration.
I am using VS20015 RC1 , SQL Express Any help is appreciated. I will try to create the db first and then try again.

  1. in non verbose mode , I see this error PM> Update-Database Exception calling "LoadFrom" with "1" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 char:5
  • $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException

You cannot call a method on a null-valued expression. At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:781 char:5

  • $dispatcher = $utilityAssembly.CreateInstance(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "CreateInstanceFrom" with "8" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5

  • $domain.CreateInstanceFrom(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException
  1. In verbose mode, I see this....

PM> Update-Database -ConnectionString "Server=DEV04\SQLEXPRESS; Database=PerfectBI; User=sa;Password=*****" -ConnectionProviderName "System.Data.SqlClient" -Verbose -ProjectName "PerfectBI.EntityFramework" Using StartUp project 'PerfectBI.Tests'. Exception calling "LoadFrom" with "1" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 char:5

  • $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException

You cannot call a method on a null-valued expression. At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:781 char:5

  • $dispatcher = $utilityAssembly.CreateInstance(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Exception calling "CreateInstanceFrom" with "8" argument(s): "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters." At C:\inetpub\wwwroot\PerfectBI\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5

  • $domain.CreateInstanceFrom(
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : PathTooLongException
Showing 1 to 10 of 10 entries