Base solution for your next web application

Activities of "mrvithan"

I have update the package using Update-Package to get latest update. ('Cause i need CustomData for MenuItemDefinition). However, after finish the update, I get a few error as seen in screenshot. Any fixed or help ?

I am trying to override abp.message.info and other abp.message when throw an userfriendlyexception. I am trying

abp.message.info = function (detail, title) { };

But nothing happen. Any help ?

PS. I know this might not related to ABP issue. But any help will be thank you.

I use AutoMapper and there are some fields that depend on 'Don't want' to output back to client. For example

public virtual string Exception {get;set;} public virtual bool IsSuccess { get { return string.IsNullOrEmpty(Exception); } }

I don't want to serialize Exception.

We just find out that when we pass a very long parameter into an AppService. The audit log will auto trim and insert '...' instead then insert the string into "Parameters" field. Are there any possible to turn this feature off ?

Thx for help.

I am trying to use InsertOrUpdate method in IRepository. I can insert an entity but not for update. It throws an error saying the same entity key is exists. Do you have any example how to use it ?

And another question. How to create 2 way-binding in Entity Framework ? for example, A task has a assigned person. but from person class, how to automatically has "Tasks" that the person is on. Now i have manual call ITaskIRepository.where(p => p.PersonId == id) to get the task list. I know this is quite not related with ABP, but a help is very appreciated.

PS. if you would like me to split into 2 question, please lets me know.

Thx for help

How to get the current selected language from Server-Side ?

I suddenly get this error "Could not load file or assembly 'msvcp120.dll' or one of its dependencies. The module was expected to contain an assembly manifest." at base.Application_Start(sender, e);

Any help ?

After i add

AbpBootstrapper.IocManager.RegisterIfNot<IAssemblyFinder, CurrentDomainAssemblyFinder>();

in Global.ascx. Seem that i get this error every time i restart my server on all my controller.

No parameterless constructor defined for this object.

I have to re-compile whole solution again and it run again.

Any suggestion ?

I try to create a new user with no Tenant in an AppService using this code :

//Create user
        var user = new User
        {
            Name            = input.Name.Trim(),
            Surname         = input.Name.Trim(),
            EmailAddress    = input.Email.Trim(),
            IsActive        = true,
            TenantId        = 1
        };


        user.UserName   = input.Code;
        user.Password   = new PasswordHasher().HashPassword(input.Password);
        user.Roles      = new List&lt;UserRole&gt;();
        foreach (var agentRole in _roleManager.Roles.Where(r => r.Name == StaticRoleNames.Host.Agent).ToList())
        {
            user.Roles.Add(new UserRole { RoleId = agentRole.Id });
        }

        _userManager.Create(user);

I also setup a new role called 'Agent' with Tenant = 1. There is no error but the user has not been created.

Any suggestion ?

I have try several method but not seem to work. Please help.

Showing 1 to 10 of 16 entries