Base solution for your next web application

Activities of "tteoh"

<cite>tteoh: </cite>

<cite>tteoh: </cite> <cite>ismcagdas: </cite> Hi @tteoh,

In order to solve only this problem, you just need to upgrade all nuget packages which starts with Abp.*. We will be happy to help if you face any problems.

Thanks.

Hi, I really "clueless" on how to "upgrade all nugget packages which starts with Abp.*" in Visual Studio. Thanks in advance.

/Tommy

Dear Support,

I have managed to upgrade the abp nugget packages following this link: <a class="postlink" href="https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui">https://docs.microsoft.com/en-us/nuget/ ... manager-ui</a>

However, I encountered the following error when reached:

  • Abp.Zero
  • Abp.Zero.Common (dependent package)

I realized Abp.Zero.Common is a new package that was not installed on version 1.5.0.

When I attempt to compile the solution, I hit the following error:

1>------ Rebuild All started: Project: OUD.Core, Configuration: Debug Any CPU ------
1>  Restoring NuGet packages...
1>  To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
1>  All packages listed in packages.config are already installed.
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(8,48,8,86): error CS7069: Reference to type 'DefaultExternalAuthenticationSource<,>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(8,18,8,45): error CS0311: The type 'OUD.MultiTenancy.Tenant' cannot be used as type parameter 'TTenant' in the generic type or method 'LdapAuthenticationSource<TTenant, TUser>'. There is no implicit reference conversion from 'OUD.MultiTenancy.Tenant' to 'Abp.MultiTenancy.AbpTenant<OUD.Authorization.Users.User>'.
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(8,18,8,45): error CS7069: Reference to type 'AbpTenant<>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(10,44,10,57): error CS7069: Reference to type 'DefaultExternalAuthenticationSource<,>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(10,68,10,92): error CS7069: Reference to type 'DefaultExternalAuthenticationSource<,>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\PermissionChecker.cs(11,38,11,75): error CS0308: The non-generic type 'PermissionChecker' cannot be used with type arguments

Opening the cs file "C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\PermissionChecker.cs":

using Abp.Authorization;
using OUD.Authorization.Roles;
using OUD.Authorization.Users;
using OUD.MultiTenancy;

namespace OUD.Authorization
{
   /// <summary>
   /// Implements <see cref="PermissionChecker"/>.
   /// </summary>
   public class PermissionChecker : PermissionChecker<Tenant, Role, User>
   {
       public PermissionChecker(UserManager userManager)
           : base(userManager)
       {

       }
   }
}

The "using Abp.Authorization" is no longer referenced.

Please help. /Tommy

Dear Support,

Managed to resolve the compilation issue pertaining to above based on the link below: <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/380">https://github.com/aspnetboilerplate/mo ... issues/380</a>

Thanks. /Tommy

<cite>tteoh: </cite>

<cite>ismcagdas: </cite> Hi @tteoh,

In order to solve only this problem, you just need to upgrade all nuget packages which starts with Abp.*. We will be happy to help if you face any problems.

Thanks.

Hi, I really "clueless" on how to "upgrade all nugget packages which starts with Abp.*" in Visual Studio. Thanks in advance.

/Tommy

Dear Support,

I have managed to upgrade the abp nugget packages following this link: <a class="postlink" href="https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui">https://docs.microsoft.com/en-us/nuget/ ... manager-ui</a>

However, I encountered the following error when reached:

  • Abp.Zero
  • Abp.Zero.Common (dependent package)

I realized Abp.Zero.Common is a new package that was not installed on version 1.5.0.

When I attempt to compile the solution, I hit the following error:

1>------ Rebuild All started: Project: OUD.Core, Configuration: Debug Any CPU ------
1>  Restoring NuGet packages...
1>  To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
1>  All packages listed in packages.config are already installed.
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(8,48,8,86): error CS7069: Reference to type 'DefaultExternalAuthenticationSource<,>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(8,18,8,45): error CS0311: The type 'OUD.MultiTenancy.Tenant' cannot be used as type parameter 'TTenant' in the generic type or method 'LdapAuthenticationSource<TTenant, TUser>'. There is no implicit reference conversion from 'OUD.MultiTenancy.Tenant' to 'Abp.MultiTenancy.AbpTenant<OUD.Authorization.Users.User>'.
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(8,18,8,45): error CS7069: Reference to type 'AbpTenant<>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(10,44,10,57): error CS7069: Reference to type 'DefaultExternalAuthenticationSource<,>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\Ldap\AppLdapAuthenticationSource.cs(10,68,10,92): error CS7069: Reference to type 'DefaultExternalAuthenticationSource<,>' claims it is defined in 'Abp.Zero', but it could not be found
1>C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\PermissionChecker.cs(11,38,11,75): error CS0308: The non-generic type 'PermissionChecker' cannot be used with type arguments

Opening the cs file "C:\Users\Admin\Source\Workspaces\OUD\OUD\OUD.Core\Authorization\PermissionChecker.cs":

using Abp.Authorization;
using OUD.Authorization.Roles;
using OUD.Authorization.Users;
using OUD.MultiTenancy;

namespace OUD.Authorization
{
    /// <summary>
    /// Implements <see cref="PermissionChecker"/>.
    /// </summary>
    public class PermissionChecker : PermissionChecker<Tenant, Role, User>
    {
        public PermissionChecker(UserManager userManager)
            : base(userManager)
        {

        }
    }
}

The "using Abp.Authorization" is no longer referenced.

Please help. /Tommy

<cite>ismcagdas: </cite> Hi @tteoh,

In order to solve only this problem, you just need to upgrade all nuget packages which starts with Abp.*. We will be happy to help if you face any problems.

Thanks.

Hi, I really "clueless" on how to "upgrade all nugget packages which starts with Abp.*" in Visual Studio. Thanks in advance.

/Tommy

<cite>ismcagdas: </cite> Hi,

You just need to upgrade nuget packages (Abp.* packages). After that, you need to follow changes in both releases <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/releases">https://github.com/aspnetboilerplate/as ... e/releases</a> and <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/releases">https://github.com/aspnetboilerplate/mo ... o/releases</a>

We don't have a documentation for this but, if you have any problems during upgrade, we can try to help.

Thanks.

Hi Support,

Currently, I am using AspNetZero project template and had made changes to the codes. The link provided include both abp and modulezero, do I need to update both or just abp?

I do need your help on how to upgrade the new releases coz I don't even have an idea where to start.

Thanks. /Tommy

Answer

<cite>tteoh: </cite>

<cite>ismcagdas: </cite> Hi @tteoh,

Which version of Typescript do you use in your project ? I think you can upgrade it, this is just related to tooling.

Thanks.

I run from Developer Command Prompt for VS2015, it shows "Version 1.0.3.0"

However, I am not sure how to check the current TypeScript used for AspNetZero solution. Appreciate your advice.

Thanks. /Tommy

Hi Support,

Sorry for the miscommunication above. Every moment is a learning moment for me.

Just realized the version provided in the developer command prompt is not so accurate. Based on "C:\Program Files (x86)\Microsoft SDKs\TypeScript" path, I have version 1.8 and 2.2 installed.

Based on .Web csproj file, the config shows "<TypeScriptToolsVersion>2.1</TypeScriptToolsVersion>"

What should be the correct config?

Thanks. /Tommy

<cite>ismcagdas: </cite> Hi,

For AspNet Zero probalby in next two weeks. But ABP has a prerelease package and probably it will be released next week. You can upgrade your ABP packages to v2.1.0-beta4 and see if your problem is fixed.

Thanks.

Dear Support,

May I know what's the steps to upgrade to ABP v2.1? I will be doing this for the "first-time". Appreciate your guidance.

Thanks. /Tommy

Answer

<cite>ismcagdas: </cite> Hi @tteoh,

Which version of Typescript do you use in your project ? I think you can upgrade it, this is just related to tooling.

Thanks.

I run from Developer Command Prompt for VS2015, it shows "Version 1.0.3.0"

However, I am not sure how to check the current TypeScript used for AspNetZero solution. Appreciate your advice.

Thanks. /Tommy

Dear Support,

Managed to resolved the issue as below:

  1. The current form does not show the newly added phone number. Therefore, have to call vm.getPeople() function to refresh the screen

  2. As mentioned in (1), have to call vm.getPeople() function to refresh the view and remove the code phone.number = ''

  3. Have the make the following code changes:

  • Updated the ng-class directive to compare using person.id == vm.editingPersonId instead of person == vm.editingPerson
  • Change vm.editingPerson to vm.editingPersonId (use Id explicitly instead of entire person object)
  • Updated the function vm.editPerson(person) to use Person.id instead of entire person object.
  • Updated vm.addPhone(phone, person) with additional codes: --> vm.getPeople(); // To refresh the view --> vm.editingPersonId = person.id; // To keep the last edited person expanded

The above the user experience I felt is incomplete on the PhoneBook exercise as part of learning the framework.

Thanks. /Tommy

I am a developer and I followed the ASP.NET MVC 5.x & AngularJS 1.x project type of Developing an Application Step by Step. And now I'm stuck in AddPhone Method.

<ins>Here is the problems:</ins>

  1. I followed the codes there and why is it showing a "?" rather than the details that I entered. I checked the database and it's uploaded. As figure shown below. [attachment=2:py6nz3ys]AddMethod(Failed).PNG[/attachment:py6nz3ys]

phoneService.addPhone(phone)
                    .then(function (result) {
                        abp.notify.success(app.localize('SavedSuccessfully'));
                        person.phones.push(result);
                        phone.number = '';
                       **vm.getPeople();**
                    });

The one that I highlighted is a way to show the exact details but the view is collapsed if use this. As figure shown below. [attachment=0:py6nz3ys]AddMethod(Collapsed).PNG[/attachment:py6nz3ys]

  1. Is there anyway to update the details immediately but without collapse the view? As figure shown below. [attachment=1:py6nz3ys]AddMethod(Succeed).PNG[/attachment:py6nz3ys]

Dear Support,

With reference to online documentation: <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/EventBus-Domain-Events#entity-changes">https://aspnetboilerplate.com/Pages/Doc ... ty-changes</a>

I could not find any specific example on how to implement EntityEventData that is part of Abp.Events.Bus.Entities namespace.

I found the use of EntityEventData in the EventCloud sample application.

  1. May I know its purpose and usage as I am trying to piece together the explanation of online documentation and the EventCloud sample application.

  2. Where can I find more information on EntityEventData?

  3. Am I right to classify EntityEventData as part of Domain Event for Entity Changes?

Thanks. /Tommy

Showing 131 to 140 of 202 entries