Base solution for your next web application

Activities of "omital"

Hi. I have the same problem. Do you find any solution?

Please someone help?

I faced with this problem (object object internal server error) and I cant find any effective solution. Please help me Halil İbrahim Kalkan.

thank for your response. I set option RemoteOnly and recived this error: {"message":"An error has occurred.","exceptionMessage":"ComponentActivator: could not proxy Abp.WebApi.Controllers.Dynamic.DynamicApiController`1[[ISIRISampleDistribution.Laboratories.ILaboratoryAppService, ISIRISampleDistribution.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]","exceptionType":"Castle.MicroKernel.ComponentActivator.ComponentActivatorException","stackTrace":" at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments)\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context)\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)\r\n at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden)\r\n at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally)\r\n at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy)\r\n at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)\r\n at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)\r\n at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context)\r\n at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)\r\n at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)\r\n at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments)\r\n at Castle.Windsor.WindsorContainer.Resolve(Type service)\r\n at Abp.Dependency.IocManager.Resolve(Type type)\r\n at Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver, Type type)\r\n at Abp.WebApi.Controllers.AbpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)\r\n at System.Web.Http.Controllers.HttpControllerDescriptor.CreateController(HttpRequestMessage request)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.

I find it. You can enable angularjs directive debugging with below right after "var app = angular.module('app');" app.config(function($logProvider){ $logProvider.debugEnabled(true); }); with this command you can debug directives in browser's console window.

hi. you use include extension method in application layer. Is this true solution to Add reference to EntityFramework.dll in Application layer? or we must add a method to repository for load data with related entities, for example

public IQuariable<Person> GetPersonWithRelatedObject(){
 return GetAll().Include(p=>p.RelatedObject);
}

<cite>hikalkan: </cite> Hi,

I will share a simplified version of AspNet Zero's registration code for you:

[HttpPost]
[UnitOfWork]
public virtual async Task<ActionResult> Register(RegisterViewModel model)
{
   try
   {
       if (!_multiTenancyConfig.IsEnabled)
       {
           model.TenancyName = Tenant.DefaultTenantName;
       }
       else if (model.TenancyName.IsNullOrEmpty())
       {
           throw new UserFriendlyException(L("TenantNameCanNotBeEmpty"));
       }

       var tenant = await GetTenantAsync(model.TenancyName);

       var user = new User
       {
           TenantId = tenant.Id,
           Name = model.Name,
           Surname = model.Surname,
           UserName = model.UserName,
           EmailAddress = model.EmailAddress,
           Password = new PasswordHasher().HashPassword(model.Password),
           IsActive = true
       };

       _unitOfWorkManager.Current.EnableFilter(AbpDataFilters.MayHaveTenant);
       _unitOfWorkManager.Current.SetFilterParameter(AbpDataFilters.MayHaveTenant, AbpDataFilters.Parameters.TenantId, tenant.Id);

       user.Roles = new List<UserRole>();
       foreach (var defaultRole in await _roleManager.Roles.Where(r => r.IsDefault).ToListAsync())
       {
           user.Roles.Add(new UserRole { RoleId = defaultRole.Id });
       }

       CheckErrors(await _userManager.CreateAsync(user));
       await _unitOfWorkManager.Current.SaveChangesAsync();

       //Directly login
       var loginResult = await GetLoginResultAsync(user.UserName, model.Password, tenant.TenancyName);
       if (loginResult.Result == AbpLoginResultType.Success)
       {
           await SignInAsync(loginResult.User, loginResult.Identity);
           return Redirect(Url.Action("Index", "Application"));
       }
   }
   catch (UserFriendlyException ex)
   {
       ViewBag.ErrorMessage = ex.Message;
       return View(model);
   }
}

I hope this helps you and others.

I have this problem too. but I use SPA version with angularjs. Is your solution difference ? I cant find _multiTenancyConfig in application layer

Edit: I think AbpSession that injected to application service for this purpose?! Is it true?

Work like a charm. Thank you man :) ;)

Thank you for your response. I cheeked all package and some of them has been upgrade to new version but I received error

Mvc.Controllers.AbpHandleErrorAttribute - System.MissingMethodException: Method not found: 'Abp.Application.Features.IFeatureDependency Abp.Authorization.Permission.get_DependedFeature()'.

in error log and also navigation system does not work properly (abp.nav is null)

I create new project with asp.netBoilerplate abp and abp.web version are 7.3.0 but in project that I faced with problem abp and abp.web version are 7.4.0 therefore I use latest version but I received this error ".Mvc.Controllers.AbpHandleErrorAttribute - System.MissingMethodException: Method not found: 'Abp.Application.Features.IFeatureDependency Abp.Authorization.Permission.get_DependedFeature()'"

Showing 1 to 10 of 56 entries