Base solution for your next web application

Activities of "yachea"

Hello,

I just fixed the issue at my level as I mentioned on Github : <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/827">https://github.com/aspnetzero/aspnet-ze ... issues/827</a>

Mainly you should set the IsPullToRefreshEnabled value to "true" instead of binding it to "{Binding IsNotBusy}" in the UsersView.xaml file.

Also I fixed the other big annoying issue: "Erratic jumps to the top of the list when lazy-loading new records" (see GitHub post)

Finally I would highly recommend to flow the following implementation of ListView scrolling using behaviors, (instead of the current hack that uses code behind binding)

here is the link :

<a class="postlink" href="http://rasmustc.com/blog/Infinite-ListView-Scrolling-With-Behaviors/">http://rasmustc.com/blog/Infinite-ListV ... Behaviors/</a>

Thank you very much

Please let me know if you have any update on this.

PS : This bug is making the app very unstable and thus not viable to use.

FIXED (at my level) see below:

If you try to update any user by adding him to a specific OU (organisation Unit) it will add him to every OU you have.

1 - Create a couple of OU (with some hierarchies) 2- From the mobile assign a user to one OU and save it.

---> the user will be assigned to all the OU you have.

---------- FIXE :

private async Task SaveUser() { UserInput.User = Model.User; UserInput.AssignedRoleNames = Model.Roles.Where(x => x.IsAssigned).Select(x => x.RoleName).ToArray(); UserInput.OrganizationUnits = Model.OrganizationUnits.Where(x => x.IsAssigned).Select(x => x.Id).ToList();

Just add ".Where(x => x.IsAssigned)" filter to ligne shown upper.

NOTE : There is an issue for applying the hierarchy correctly though from mobile.

Selecting a parent OU doesn't select sub OUs automatically (where as the web version does it)

Hello ,

It it very easy to reproduce actually. Maybe I miss expressed the steps to follow.

What you should do first is to go the <ins>last element in the list.</ins>

In other words:

1 - Scroll down (which means move the list up with your mouse until your reach the last element of the list)

at this step the list starts to refresh it self ( from the fact that you reached the bottom side. But doesn't necessarily crash yet) 2 - Scroll back the opposite side (move the list down with your mouse until you see the top element - exactly as what you are doping in your reply video ) and continue to do so let say 5 - 10 times max

After you make it crash once. It will crash much more quickly the subsequent times (until just one repetition would crash the app)

Please don't forget to have more than 10+ users in your list.

*** Please see the attached gif in my replay on github thread (too large to be attached here)

<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/827">https://github.com/aspnetzero/aspnet-ze ... issues/827</a>

Thank your very much

Great! I'll be flowing it on Github then. Thank you very much

Hello,

I tried this a couple of times , it crashes the app inevitably after (quick) successive multiple scrolls/refreshes of the users list .

1 - Start the mobile version for IOS (I didn't test with Android yet) (Any IPone version, I tried 7, 8 , 10) 2- Make sure to have enough users (I have 11) for the same Tenant (I use Default) 3- Open the main user list on your mobile either using IOS Simulator on an IPhone device
4 - As soon you scroll completely to the bottom down and get back up to the top of the list, things start to get messy. You have multiple "loading wheels" showing up at the same time. Plus if you continue "refreshing" the list successively (by dragging the list down with you thumb or mouse) the app ends up by crashing eventually.

After a new deployment the app is slightly more stable (so you have to try out a couple of quick scrolls/refreshes around 12~15 times or so)

After the first crash of the app, the subsequent tests will crash much more quickly (3~4 scrolls/refreshes )

Hint: I think it have to do with how RefreshUsersAsync() is called and the default PageSize of 10 witch doesn't seems to work correctly if your total number of user is more then 10. (11 in my case)

Thank for your advice,

Now I am getting this error when I try to install the package

(Note: I have selected from on download page * Framework (required) --> .NET Framework 4.6.1 | NOT --> .NET Core 1.1)

(I also tried by upgrading from .NET Framework 4.6.1 to .NETFramework,Version=v4.7 )

I am getting the flowing error message with both .NET Framework 4.6.1 and 4.7

PM> Install-Package Microsoft.AspNetCore.Server.Kestrel -Pre

Restoring packages for P:\AspNetZero\cmpcore\aspnet-core\src\cmpcore.Web.Host\cmpcore.Web.Host.csproj... GET <a class="postlink" href="https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json">https://api.nuget.org/v3-flatcontainer/ ... index.json</a> OK <a class="postlink" href="https://api.nuget.org/v3-flatcontainer/newtonsoft.json/index.json">https://api.nuget.org/v3-flatcontainer/ ... index.json</a> 136ms GET <a class="postlink" href="https://api.nuget.org/v3-flatcontainer/newtonsoft.json/5.0.1/newtonsoft.json.5.0.1.nupkg">https://api.nuget.org/v3-flatcontainer/ ... .0.1.nupkg</a> OK <a class="postlink" href="https://api.nuget.org/v3-flatcontainer/newtonsoft.json/5.0.1/newtonsoft.json.5.0.1.nupkg">https://api.nuget.org/v3-flatcontainer/ ... .0.1.nupkg</a> 29ms

[**** Here Starts the red highlight until the end *****]

Install-Package : Package Microsoft.AspNetCore.Server.Kestrel 2.0.0-preview1-final is not compatible with net47 (.NETFramework,Version=v4.7). Package Microsoft.AspNetCore.Server.Kestrel 2.0.0-preview1-final supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0) At line:1 char:1

  • Install-Package Microsoft.AspNetCore.Server.Kestrel -Pre
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Install-Package : One or more packages are incompatible with .NETFramework,Version=v4.7. At line:1 char:1

  • Install-Package Microsoft.AspNetCore.Server.Kestrel -Pre
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Install-Package : Package Microsoft.AspNetCore.Server.Kestrel 2.0.0-preview1-final is not compatible with net47 (.NETFramework,Version=v4.7) / win7-x86. Package Microsoft.AspNetCore.Server.Kestrel 2.0.0-preview1-final supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0) At line:1 char:1

  • Install-Package Microsoft.AspNetCore.Server.Kestrel -Pre
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Install-Package : One or more packages are incompatible with .NETFramework,Version=v4.7 (win7-x86). At line:1 char:1

  • Install-Package Microsoft.AspNetCore.Server.Kestrel -Pre
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    
    

Install-Package : Package restore failed. Rolling back package changes for 'cmpcore.Web.Host'. At line:1 char:1

  • Install-Package Microsoft.AspNetCore.Server.Kestrel -Pre
  •   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
    

" Can you try to update it's version to 2.0.0-preview1 and see if it works ? "

Could you please tel me the specific steps to that ? (Should I install something on my machine ?, Nuget something ? , manually substitute a dll into my solution ? )

(I found github source code here on " <a class="postlink" href="https://github.com/aspnet/KestrelHttpServer/releases">https://github.com/aspnet/KestrelHttpServer/releases</a>" but it's not compiling out of the box)

Do I need to install/update anything related to .NET Core /.NET Core 2.0.0 Preview 1 as well ?

If so please let me know the specifics steps to do that as well

Thank you for your help

Hello,

Trying with admin account didn't work. Trying on different machine worked but still need to make it work on my main development machine.

I tried updating the .Net Framework on my machine to .NET Framework 4.6.2 and then to .NET Framework 4.7 And also added some attributes to catch the exception details.

At first I got this message :

Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x70c5f13b, on thread 0x2338. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.'

Now I am getting this message (copied from Visual Studio debugger)

e.Message

One or more errors occurred.

e.StackTrace

at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelEngine.Start(Int32 count) at Microsoft.AspNetCore.Server.Kestrel.KestrelServer.Start[TContext](IHttpApplication`1 application) at Microsoft.AspNetCore.Hosting.Internal.WebHost.Start() at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host, CancellationToken token, String shutdownMessage) at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host) at cmpcore.Web.Startup.Program.Main(String[] args)

e.InnerException.Message

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

e.InnerException.StackTrace

at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.NativeMethods.uv_loop_init(UvLoopHandle handle) at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.Libuv.loop_init(UvLoopHandle handle) at Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle.Init(Libuv uv) at Microsoft.AspNetCore.Server.Kestrel.Internal.KestrelThread.ThreadStart(Object parameter)

e.InnerException.Source "Microsoft.AspNetCore.Server.Kestrel"

e.InnerException.Source.TargetSite

{Int32 uv_loop_init(Microsoft.AspNetCore.Server.Kestrel.Internal.Networking.UvLoopHandle)}

Please advise,

I still not able to use your product since more the a month of trying every day .., it's becoming a bit urgent for me to getting work,

Thank you for your assistance

Nothing conclusive on the internet so far.

More details:

I also get this error otherwise ( If I don't get the memory message I'll see the flowing one )

" The following error occurred when trying to configure IIS Express for project myProjectName.Web.Host.Filename: \?\D:\MyProjectFolder\aspnet-core.vs\config\applicationhost.config Error: Cannot read configuration file "

Also I've downloaded and run ASP.NET Boilerplate Framework with no issue from the first shot on the same Visual Studio 2017 and same Windows 7 machine.

Also I re-downloaded you package several times and restarted new project form scratch each time, with multiple machine restarts.

Yet I had no luck to run your project, even though ASP.NET Boilerplate works out of the box form the first time.

Please advise,

Thank you very much

Showing 1 to 10 of 11 entries