Base solution for your next web application

Activities of "arash"

i am using [AbpAuthorize(PermissionNames.Pages_Users)] on application service class , but for only one specific method i want to allow Anonymous access in same class. can i use [AllowAnonymous] ?

how can i do that ? :D

thank you.

i have seen example MakeInactiveUsersPassiveWorker , basically it runs every five second , or i can change the Timer.Period to get new time in millisecond,

so is background worker suitable for process that should run in weekly or monthly period ? or i should use Background Jobs for weekly or monthly jobs ?

you can add any memebr to User class in core project , for ecample lets say you want to add mobile number ro user

you can

public class User : AbpUser<User> { public const string DefaultPassword = "123qwe";

    public static string CreateRandomPassword()
    {
        return Guid.NewGuid().ToString("N").Truncate(16);
    }

    public static User CreateTenantAdminUser(int tenantId, string emailAddress, string password)
    {
        return new User
        {
            TenantId = tenantId,
            UserName = AdminUserName,
            Name = AdminUserName,
            Surname = AdminUserName,
            EmailAddress = emailAddress,
            Password = new PasswordHasher().HashPassword(password)
        };
    }

    public long Mobile { get; set; }
}

}

i am trying to configure Farsi language as default language for application

he is my application PreInitialize()

public override void PreInitialize() { //Add/remove languages for your application Configuration.Localization.Languages.Add(new LanguageInfo("en", "English", "famfamfam-flag-england")); Configuration.Localization.Languages.Add(new LanguageInfo("fa", "Farsi", "famfamfam-flag-ir",true)); Configuration.Localization.Languages.Add(new LanguageInfo("tr", "Türkçe", "famfamfam-flag-tr"));

i have also disbaled //Configuration.Modules.Zero().LanguageManagement.EnableDbLocalization(); i have also added the following file to Localization/soure directory in core project myapplication-fa.xml

but i always get english language as default language

so what is problem ? how can i set default language ?

Question

I have Downloaded Angularjs/EntityFramework Template , after writing my own domain model and application service I ran into problem when I wanted to access Dynamicly Genrerated Api of my ApplicationService , the server return 500 message=An error has occurred , how can I view the log file I cant find Logs/Logs.txt configures in log4net.config

any suggestion ?

Showing 1 to 5 of 5 entries