Base solution for your next web application

Activities of "richardghubert"

Hi, here is a FAQ regarding the new AspNetZero on .NET-Core-3.1 (great! we us it.).

https://aspnetboilerplate.com/Pages/Documents/v1.0.0.0/Dependency-Injection#asp-net-core-integration

ASP.NET Core Integration ASP.NET Core has already a built-in dependency injection system with Microsoft.Extensions.DependencyInjection package. ABP uses Castle.Windsor.MsDependencyInjection package to integrate it's dependency injection system with ASP.NET Core's. So, you don't have to think about it.

What are the caveats or plans here, since Windsor does not appear in the list of "supported" .NET-Core-3 IoC containers:

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-3.1#default-service-container-replacement

Thanks for any infos/futures.

Hello, We have a problem resetting Features (_tenantManager.ResetAllFeaturesAsync) for a Tenant (Edition is irrelevant here). We are using AspNetZero v6.5.0 .NET-Core 2.2 AspNet-Core MVC & JQuery (see below)

  1. In the first case (see code example below and attached image V1) we Add a feature to the TenantID=1 get the expected result: the new value appears in the DB for TenantID=1 (no Edition associated). Method ChangeEditionV1 activates feature e521b74b-359a-4cd2-b3d7-0eb4034c0483. After method is executed the feature is available in database (ChangeEditionV1.PNG image).
  2. In the second case we set (Add) two features to TenantID=1 and get an unexpected result: only the first of the two features appears correctly in the DB, the second one is “lost”. Method ChangeEditionV2 attempts to activate 2 features: 4b657e3a-9b27-4a32-874b-c72fc610fd01 and e521b74b-359a-4cd2-b3d7-0eb4034c0483. After execution of ChangeEditionV2 method, only one of these feature (4b657e3a-9b27-4a32-874b-c72fc610fd01) is seen in the DB (ChangeEditionV2.PNG image)

EXAMPLES:

// Case 1. Image V1. // This example works. Expected result. See attached Image V1. // [UnitOfWork] public async Task ChangeEditionV1() { try { List featuresData = new List(); // valid feature

featuresData.Add(new NameValue() { Name = "e521b74b-359a-4cd2-b3d7-0eb4034c0483", Value = "true" });

Tenant tenant = await _tenantManager.GetByIdAsync(1); if (tenant == null) throw new UserFriendlyException("Tenant does not exist!?");

await _tenantManager.ResetAllFeaturesAsync(1); // valid edition tenant.EditionId = 10; await _tenantManager.SetFeatureValuesAsync(1, featuresData.ToArray()); } catch(Exception ex) { throw new UserFriendlyException("Error: " + ex.Message); } }

=========================== // Case 2, Image V2. // This example does not work: only one of the two features appears in the DB. The second one is “lost in space”. Why? // [UnitOfWork] public async Task ChangeEditionV2() { try { List`` featuresData = new List``();

<br> // valid features featuresData.Add(new NameValue() { Name = "4b657e3a-9b27-4a32-874b-c72fc610fd01", Value = "true" }); featuresData.Add(new NameValue() { Name = "e521b74b-359a-4cd2-b3d7-0eb4034c0483", Value = "true" });

Tenant tenant = await _tenantManager.GetByIdAsync(1); if (tenant == null) throw new UserFriendlyException("Tenant does not exist!?");

await _tenantManager.ResetAllFeaturesAsync(1); // valid edition tenant.EditionId = 10; await _tenantManager.SetFeatureValuesAsync(1, featuresData.ToArray()); } catch (Exception ex) { throw new UserFriendlyException("Error: " + ex.Message); } }

IMAGE V1: Works.

<br> IMAGE V2: Does Not Work

Hi,

We have a pretty common situation and I'd like to understand the best-practice or trade-offs in AspNetZero to handle this best.

We import a package (NuGet) of pure C# classes (POCO). These are shared across several system. In our AspNetZero server, we want these to be first class persistent objects. However, they can't inherit from Entity, since they come from the Nuget. What is the best practice here?

My ideas to date (not being the expert here, of course):

  • If we were to use these classes as EF Navigation Properties in Apb Entities, i.e. always use them as complex-type properties of an Abp Entity class, it could do the trick. In this scenario, one would not even need to define a DbSet<POCO>, although one could (see: https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application )

  • Alternatively, if we just reference these complex types from an Apb Entity, doesn't EF generate Entity-Proxies for these and automatically make them into EF Navigation Properties (see: https://blogs.msdn.microsoft.com/adonet/2009/12/22/poco-proxies-part-1/ ) or is this not an option the default Abp flow. We'd like to avoid too much custom code (risk).

  • Any other way via delegation?

Thanks for any Tips/Example/Info!

Hi, could you provide me with an update to this:

https://forum.aspnetboilerplate.com/viewtopic.php?f=3&t=5140%20--%20https://stackoverflow.com/questions/48243612/asp-net-boilerplate-identityserver

I want to delegate the user sign-in flow to AAD B2C, i.e. to delegate identity management to Azure AD B2C by some AspNetZero-compatible means. Heres the appropriate tutorial from AAD B2C for this: https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-oidc

We are using the newest AppNetZero ASP.NET-Core-MVC which is considerably different than the abp forum post above. In the doc, all I see is this:

https://docs.aspnetzero.com/documents/zero/latest/Development-Guide-Core#openid-connect-login

which I have done, as also described here:

https://tahirnaushad.com/2018/05/19/azure-ad-b2c-with-asp-net-core-2-0/

What is not yet clear to me:

  1. Do I have to add any redirect code myself to the AccountController.cs?
  2. After enabling OpenId in appsettings.json, what changes do I need to make to the IdentityServer config in that (or other) files.
  3. The Token Reply Url required in the Azure AAD B2C config should be what? I currently have https://localhost:62114/signin-oidc

Since I'm looking to delegate identity management to Azure AD B2C OpenId, the External Authetication Source described here (https://aspnetboilerplate.com/Pages/Documents/Zero/User-Management) does not appear to be the proper fit. I need to go via the OpenId-connect and, perhaps, in federation with the internal IdentityServer4?...

Thanks!

I'm looking for inormation on LinkToUser as used in the Test "UserAppServices_Link_Test.cs".

In the sources and documentation, there is not a single word explaining what it is :-) https://aspnetboilerplate.com/api-docs/html/Properties_T_Abp_Authorization_Users_UserAccount.htm

It looks like it could be for linking an alias-user to a UserAccount even accross tenants? If this is the case, please explain a bit. E.g. which user and tenant is used to store at any given point and its intended Use-Case.

Thanks for infos!

Richard

Hi, We're looking at the ASP.NET Zero Power Tools Entities and they appear to work as intended. Any way to add a feature to delete the files and dependencies created if desired? An "undo" would speed the agile process a great deal. Else, we'll stick with GIT branches and stashes. Other ideas? Thanks.

Hi, I want to test the Android in the latest 5.6.2 asp.netZero release.

Referencing: https://aspnetzero.com/Documents/Development-Guide-Xamarin https://aspnetzero.com/Documents/Developing-Step-By-Step-Xamarin

And the newest release of VS2017 (see at the very end of this post for complete infos there)

I also have the appropriate Android SDKs installed corresponding to the several Android Emulators that I installed directly from the VS2017 setup-dialog. Everything compiles fine. No errors. Note: I have used Xamarin with blue-tooth pluggins before and have a running PlayStore-Xamarin App, so I'm not quite the beginner here.

So, I start the Web.Host in a CMD with dotnet run and it starts fine on the pre-defined port as:

C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Web.Host>dotnet run Using launch settings from C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Web.Host\Properties\launchSettings.json... Hosting environment: Development Content root path: C:\Users\Hubert\source\repos\SRI\PTW100\src\ptw.de.PTW100.Web.Host Now listening on: http://[::]:22742 Application started. Press Ctrl+C to shut down.

I then start the star.Mobile.Droid from VS2017 in debug mode to (for example) a Marshmallow Tablet Android 6, API 23. I have this API/SDK installed and it is properly within the project supported sdk. I have not changed a thing in the project exept the

star.ApiClient.DEbugServerIpAddresses. Hierin may be the confusion. Here it is:

namespace ptw.de.PTW100.ApiClient
{
    public static class DebugServerIpAddresses
    {
        //https://aspnetzero.com/Documents/Developing-Step-By-Step-Xamarin
        // https://aspnetzero.com/Documents/Development-Guide-Xamarin
        //You can use Emulators.Android, Emulators.Gennymotion or LocalhostIp based on your needs.
        //public static string Current => LocalhostIp;
        public static string Current => LocalhostIp;

        //You can configure your computer's IP adress for external access (if Current = LocalhostIp)
        private const string LocalhostIp = Emulators.Android; //"192.168.2.101";

        //Loopback addresses by emulators.
        private static class Emulators
        {
            public const string Android = "10.0.2.2 ";
            public const string Gennymotion = "10.0.3.2";
        }
    }
}

I may be confused (after reading severa times) as to the IP used by the mobile app to access the localhost:22742 Host API. Which setting is that and where?

When start the Mobile App from VS2017, everything looks great, the Emulator starts, the Android-device appears, and the Xamarin.Diagnostics console in VS2017 is as follows:

[I:]:                     Found Xamarin.Android 9.1.0.17
[I:sdk]:                  Runtime path: C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\MSBuild\Xamarin\Android
[I:sdk]:                  Framework path: C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0
[D:]:                     ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[D:]:                     ValidateAndroidNdkLocation: ``, result=False
[I:]:                     Looking for Android NDK...
[D:]:                     ValidateJavaSdkLocation: `C:\Program Files\Java\jdk1.8.0_161`, result=True
[I:]:                     Tracking android devices started
[D:]:                     Tracking avd started
[D:]:                     avd watcher *.ini path: 'C:\Users\Hubert\.android\avd'
[D:]:                     Cannot load avd devices from 'C:\Users\Hubert\.android\avd'
[D:]:                     TrackDeviceTask got: 
[D:]:                     avd watcher: got device list from avd with 0 devices
[I:]:                     Got new device list from adb with 0 devices
[D:]:                     VS emulator watcher: got device list from VS emulator with 2 devices
[I:]:                     Looking for Android SDK...
[D:]:                     ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[D:]:                     ValidateAndroidSdkLocation: `C:\Program Files (x86)\Android\android-sdk`, result=True
[D:]:                     VS emulator watcher: got device list from VS emulator with 2 devices
[D:]:                     VS emulator watcher: got device list from VS emulator with 3 devices
[D:]:                     VS emulator watcher: got device list from VS emulator with 4 devices

But nothing else happens. It hangs. I do not see a new app starting/appearing on the Android, and VS2017 is "ready" but not actively debugging... It is apparently looking for a device and stuck waiting? Funny thing are the messages above recarding the AVD and I do not see any devices in the Device Log nor do I in the Android Device Manager. The Android Device Manager will not even start. No errors.

Any tips appreciated.

Network Infro from the currently selected/running Android Emulator Device

Emulator Adapter # 1: (Used only for diagnostic purposes) Physical address: 02DEDEDEDE02 Virtual switch: Windows Phone Emulator Internal Switch Network addresses: fe80::de:deff:fede:de02 (Preferred) 169.254.56.136 (Preferred) Emulator Adapter [#2](https://support.aspnetzero.com/QA/Questions/2): Physical address: 00155DC0AEED Virtual switch: Intel(R) Ethernet Connection (4) I219-LM Virtual Switch Network addresses: 2003:c3:2f12:d16c:215:5dff:fec0:aeed (Preferred) 2003:c3:2f12:d12f:215:5dff:fec0:aeed (Preferred) fe80::215:5dff:fec0:aeed (Preferred) 192.168.2.111 (Preferred) Desktop Adapter [#1](https://support.aspnetzero.com/QA/Questions/1): Physical address: 1A15E29DE948 Network addresses: 172.21.45.81 fe80::9da4:6263:fedd:65c5 Desktop Adapter [#2](https://support.aspnetzero.com/QA/Questions/2): Physical address: 106530FA04C3 Network addresses: 192.168.2.101 fe80::61ee:be72:270c:9aa1 2003:c3:2f12:d16c:cb0:fa22:2293:a657 2003:c3:2f12:d12f:61ee:be72:270c:9aa1 2003:c3:2f12:d16c:61ee:be72:270c:9aa1 Desktop Adapter [#3](https://support.aspnetzero.com/QA/Questions/3): Physical address: 00155DC0AEE9 Network addresses: 169.254.80.80 fe80::e07b:8f9:5df8:b695

VS 2017 Infos

Microsoft Visual Studio Professional 2017 Preview Version 15.9.0 Preview 2.0 VisualStudio.15.Preview/15.9.0-pre.2.0+28107.0 Microsoft .NET Framework Version 4.7.03056

Installed Version: Professional

Visual C++ 2017 00369-60000-00001-AA216 Microsoft Visual C++ 2017

Application Insights Tools for Visual Studio Package 8.14.10823.1 Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017 15.9.02026.0 ASP.NET and Web Tools 2017

ASP.NET Core Blazor Language Services 0.5.1-rtm-10384

ASP.NET Core Razor Language Services 15.8.31590 Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2017 5.2.60801.0 For additional information, visit https://www.asp.net/

AspNetZeroRadTool Extension 1.0 AspNetZeroRadTool Visual Studio Extension Detailed Info

Azure App Service Tools v3.0.0 15.9.02003.0 Azure App Service Tools v3.0.0

Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.3.3000.2 Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 15.9.02009.0 Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.3.3000.2 Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 2.10.0-beta2-63307-03 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter 15.9.18236.1 Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Extensibility Message Bus 1.1.49 (remotes/origin/d15-8@ee674f3) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Fabric.DiagnosticEvents 1.0 Fabric Diagnostic Events

JavaScript Language Service 2.0 JavaScript Language Service

JavaScript Project System 2.0 JavaScript Project System

JetBrains ReSharper Ultimate 2018.1 Build 112.0.20180414.70444 JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2018 JetBrains, Inc.

Microsoft Azure HDInsight Azure Node 2.3.3000.2 HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service 2.3.3000.2 Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio 2.3 Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service 2.3.3000.2 Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2

Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 1.0 Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package

MLGen Package Extension 1.0 MLGen Package Visual Studio Extension Detailed Info

Mono Debugging for Visual Studio 4.13.8-pre (545dd7d) Support for debugging Mono processes with Visual Studio.

Node.js Tools 1.4.20802.1 Commit Hash:97e1085d8b4b8e3e51c398e910177f87e86d135e Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager 4.6.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info

Python 15.9.18236.1 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Django support 15.9.18236.1 Provides templates and integration for the Django web framework.

Python - IronPython support 15.9.18236.1 Provides templates and integration for IronPython-based projects.

Python - Profiling support 15.9.18236.1 Profiling support for Python projects.

ResourcePackage Extension 1.0 ResourcePackage Visual Studio Extension Detailed Info

ResourcePackage Extension 1.0 ResourcePackage Visual Studio Extension Detailed Info

SQL Server Data Tools 15.1.61808.07020 Microsoft SQL Server Data Tools

ToolWindowHostedEditor 1.0 Hosting json editor into a tool window

TypeScript Tools 15.8.20801.2001 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 2.10.0-beta2-63307-03 Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: 0e85dd17f8014834a3e340baa784993081fc5e76. Microsoft Visual F# Tools 10.2 for F# 4.5

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers

Visual Studio Tools for Unity 3.8.0.6 Visual Studio Tools for Unity

Visual Studio Tools for Universal Windows Apps 15.0.28107.00 The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

VisualStudio.Mac 1.0 Mac Extension for Visual Studio

Xamarin 4.12.2.1 (d15-9-p2@2bc03d4a6) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 4.14.242 (c92fb2dd2) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 1.1.116 (466cd65) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 9.1.0.17 (HEAD/ee0bcdf64) Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK 11.16.0.22 (bd81f1c) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Showing 1 to 7 of 7 entries