Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ArturCorreia"

Ok i have added all the new properties to the userProfileEditDto class.

When i run the app and execute swagger for that API method I get a 500 status and doesnt evern get to my breakpoint.

code now looks like this...

var query = (from u in _userRepository.GetAll() join ud in _userDetailRepository.GetAll() on u.Id equals ud.UserId where u.Id == user.Id select new { u.UserName, u.Name, u.Surname, u.Id, u.EmailAddress, u.PhoneNumber, u.IsPhoneNumberConfirmed, ud.JobTitle, ud.LineManagerId, ud.PrefersToBeCalledByName, ud.Title, ud.EmployeeNumber, ud.DateOfBirth, ud.Department, ud.Site, ud.MobileNumber, ud.LinkedInProfileURL, ud.TwitterProfileURL, ud.JoinedTheCompanyOnDate, ud.JoinedTheDepartmentOnDate, ud.Hobbies, ud.FavouriteSportsTeam, ud.FavouriteBandsOrMusics, ud.FavouriteArtistsOrMovies, ud.MoreAboutMe, ud.ExternalContactCompanyName, ud.ExternalContactWebsite }).Single();

        userProfileEditDto.UserName = query.UserName;
        userProfileEditDto.Name = query.Name;
        userProfileEditDto.Surname = query.Surname;
        userProfileEditDto.EmailAddress = query.EmailAddress;
        userProfileEditDto.PhoneNumber = query.PhoneNumber;
        userProfileEditDto.IsPhoneNumberConfirmed = query.IsPhoneNumberConfirmed;
        userProfileEditDto.JobTitle = query.JobTitle;
        userProfileEditDto.LineManagerId = query.LineManagerId;
        userProfileEditDto.PrefersToBeCalledByName = query.PrefersToBeCalledByName;
        userProfileEditDto.Title = query.Title;
        userProfileEditDto.EmployeeNumber = query.EmployeeNumber;
        userProfileEditDto.DateOfBirth = query.DateOfBirth;
        userProfileEditDto.Site = query.Site;
        userProfileEditDto.MobileNumber = query.MobileNumber;
        userProfileEditDto.LinkedInProfileURL = query.LinkedInProfileURL;
        userProfileEditDto.TwitterProfileURL = query.TwitterProfileURL;
        userProfileEditDto.JoinedTheCompanyOnDate = query.JoinedTheCompanyOnDate;
        userProfileEditDto.JoinedTheDepartmentOnDate = query.JoinedTheDepartmentOnDate;
        userProfileEditDto.Hobbies = query.Hobbies;
        userProfileEditDto.FavouriteSportsTeam = query.FavouriteSportsTeam;
        userProfileEditDto.FavouriteBandsOrMusics = query.FavouriteBandsOrMusics;
        userProfileEditDto.FavouriteArtistsOrMovies = query.FavouriteArtistsOrMovies;
        userProfileEditDto.MoreAboutMe = query.MoreAboutMe;
        userProfileEditDto.ExternalContactCompanyName = query.ExternalContactCompanyName;
        userProfileEditDto.ExternalContactWebsite = query.ExternalContactWebsite;

        return userProfileEditDto;

Hi ismcagdas

Yes please.

Thanks.

sure...

    public async Task<CurrentUserProfileEditDto> GetCurrentUserProfileForEdit()
    {
        var user = await GetCurrentUserAsync();
        var userProfileEditDto = ObjectMapper.Map<CurrentUserProfileEditDto>(user);

        userProfileEditDto.QrCodeSetupImageUrl = user.GoogleAuthenticatorKey != null
            ? _googleTwoFactorAuthenticateService.GenerateSetupCode("EZNow",
                user.EmailAddress, user.GoogleAuthenticatorKey, 300, 300).QrCodeSetupImageUrl
            : "";
        userProfileEditDto.IsGoogleAuthenticatorEnabled = user.GoogleAuthenticatorKey != null;

        if (Clock.SupportsMultipleTimezone)
        {
            userProfileEditDto.Timezone = await SettingManager.GetSettingValueAsync(TimingSettingNames.TimeZone);

            var defaultTimeZoneId = await _timeZoneService.GetDefaultTimezoneAsync(SettingScopes.User, AbpSession.TenantId);
            if (userProfileEditDto.Timezone == defaultTimeZoneId)
            {
                userProfileEditDto.Timezone = string.Empty;
            }
        }

        var query =  from u in _userRepository.GetAll()
                     join ud in _userDetailRepository.GetAll() on u.Id equals ud.UserId 
                     select new 
                     {
                         u.UserName,
                         u.Name,
                         u.Surname,
                         u.Id,
                         u.EmailAddress,
                         u.PhoneNumber,
                         u.IsPhoneNumberConfirmed,
                         ud.JobTitle,
                         ud.LineManagerId,
                         ud.PrefersToBeCalledByName,
                         ud.Title,
                         ud.EmployeeNumber,
                         ud.DateOfBirth,
                         ud.Department,
                         ud.Site,
                         ud.MobileNumber,
                         ud.LinkedInProfileURL,
                         ud.TwitterProfileURL,
                         ud.JoinedTheCompanyOnDate,
                         ud.JoinedTheDepartmentOnDate,
                         ud.Hobbies,
                         ud.FavouriteSportsTeam,
                         ud.FavouriteBandsOrMusics,
                         ud.FavouriteArtistsOrMovies,
                         ud.MoreAboutMe,
                         ud.ExternalContactCompanyName,
                         ud.ExternalContactWebsite
                     };

        ObjectMapper.Map(userProfileEditDto, user);

        return userProfileEditDto;
    }
    
    
public class CurrentUserProfileEditDto
{
    [Required]
    [StringLength(AbpUserBase.MaxNameLength)]
    public string Name { get; set; }

    [Required]
    [StringLength(AbpUserBase.MaxSurnameLength)]
    public string Surname { get; set; }

    [Required]
    [StringLength(AbpUserBase.MaxUserNameLength)]
    public string UserName { get; set; }

    [Required]
    [StringLength(AbpUserBase.MaxEmailAddressLength)]
    public string EmailAddress { get; set; }

    [StringLength(UserConsts.MaxPhoneNumberLength)]
    public string PhoneNumber { get; set; }

    public virtual bool IsPhoneNumberConfirmed { get; set; }

    public string Timezone { get; set; }

    public string QrCodeSetupImageUrl { get; set; }

    public bool IsGoogleAuthenticatorEnabled { get; set; }

    public DetailDto Detail { get; set; }
}

Hi ismcagdas

Now that i have then join in place and no errors showing, what i notice now is that when running the server side app and when i execute the https://localhost:44301/api/services/app/Profile/GetCurrentUserProfileForEdit and dont seem to get all the joined data back from my own table and i do have data in both tables.

Is there something else i'm missing like another map?

Thanks.

Now got it working.

I had this being mapped

ObjectMapper.Map(userProfileEditDto, query);

rather than

ObjectMapper.Map(userProfileEditDto, user);

Thanks for you help as always ismcagdas !!

OK changed it and still an error, must be the mapping thats throwing this?

logs...

INFO 2020-04-01 20:26:04,054 [4 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'EZNow.Authorization.Users.Profile.ProfileAppService.GetCurrentUserProfileForEdit (EZNow.Application)' INFO 2020-04-01 20:26:04,064 [4 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "GetCurrentUserProfileForEdit", controller = "Profile"}. Executing controller action with signature System.Threading.Tasks.Task`1[EZNow.Authorization.Users.Profile.Dto.CurrentUserProfileEditDto] GetCurrentUserProfileForEdit() on controller EZNow.Authorization.Users.Profile.ProfileAppService (EZNow.Application). ERROR 2020-04-01 20:26:08,981 [32 ] Mvc.ExceptionHandling.AbpExceptionFilter - Missing type map configuration or unsupported mapping.

Mapping types: CurrentUserProfileEditDto -> IQueryable1 EZNow.Authorization.Users.Profile.Dto.CurrentUserProfileEditDto -> System.Linq.IQueryable1[[<>f__AnonymousType4`24[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], EZNow.Application, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null]] AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

Mapping types: CurrentUserProfileEditDto -> IQueryable1 EZNow.Authorization.Users.Profile.Dto.CurrentUserProfileEditDto -> System.Linq.IQueryable1[[<>f__AnonymousType424[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int32, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.DateTime, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], EZNow.Application, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null]] at lambda_method(Closure , CurrentUserProfileEditDto , IQueryable1 , ResolutionContext ) at Abp.AutoMapper.AutoMapperObjectMapper.Map[TSource,TDestination](TSource source, TDestination destination) at EZNow.Authorization.Users.Profile.ProfileAppService.GetCurrentUserProfileForEdit() in E:\Projects\EZNow\EZNow-API\src\EZNow.Application\Authorization\Users\Profile\ProfileAppService.cs:line 129 at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.

So i DI these into the service

private readonly IQueryable<Detail> _userDetailRepository; private readonly IRepository<User, long> _userRepository;

Used this in the GetCurrentUserProfileForEdit method.

var query = from u in _userRepository.GetAll() join ud in _userDetailRepository.ToList() on u.Id equals ud.UserId select new { u.UserName, u.Name, u.Surname, ud.JobTitle, ud.LineManagerId, ud.PrefersToBeCalledByName, ud.Title, ud.EmployeeNumber, ud.DateOfBirth, ud.Department, ud.Site, ud.PhoneNumber, ud.MobileNumber, ud.LinkedInProfileURL, ud.TwitterProfileURL, ud.JoinedTheCompanyOnDate, ud.JoinedTheDepartmentOnDate, ud.Hobbies, ud.FavouriteSportsTeam, ud.FavouriteBandsOrMusics, ud.FavouriteArtistsOrMovies, ud.MoreAboutMe, ud.ExternalContactCompanyName, ud.ExternalContactWebsite };

        ObjectMapper.Map(userProfileEditDto, query);
        
        and for the UpdateCurrentUserProfile method i used this.
        
         var query = from u in _userRepository.GetAll()
                    join ud in _userDetailRepository.ToList() on u.Id equals ud.UserId
                    select new
                    {
                        u.UserName,
                        u.Name,
                        u.Surname,
                        ud.JobTitle,
                        ud.LineManagerId,
                        ud.PrefersToBeCalledByName,
                        ud.Title,
                        ud.EmployeeNumber,
                        ud.DateOfBirth,
                        ud.Department,
                        ud.Site,
                        ud.PhoneNumber,
                        ud.MobileNumber,
                        ud.LinkedInProfileURL,
                        ud.TwitterProfileURL,
                        ud.JoinedTheCompanyOnDate,
                        ud.JoinedTheDepartmentOnDate,
                        ud.Hobbies,
                        ud.FavouriteSportsTeam,
                        ud.FavouriteBandsOrMusics,
                        ud.FavouriteArtistsOrMovies,
                        ud.MoreAboutMe,
                        ud.ExternalContactCompanyName,
                        ud.ExternalContactWebsite
                    };


        ObjectMapper.Map(input, query);

Hi ismcagdas

Sure, here is some recent logs.

'EZNow.Authorization.Users.Profile.ProfileAppService' is waiting for the following dependencies:

  • Service 'System.Linq.IQueryable`1[[EZNow.UserDetail.Detail, EZNow.Core, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.

Castle.MicroKernel.Handlers.HandlerException: Can't create component 'EZNow.Authorization.Users.Profile.ProfileAppService' as it has dependencies to be satisfied.

'EZNow.Authorization.Users.Profile.ProfileAppService' is waiting for the following dependencies:

  • Service 'System.Linq.IQueryable`1[[EZNow.UserDetail.Detail, EZNow.Core, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.

    at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency() at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, Arguments additionalArguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments) at Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, Boolean isOptional) at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext) at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.<CreateControllerFactory>g__CreateController|0(ControllerContext controllerContext) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) INFO 2020-04-01 18:51:20,743 [20 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'. INFO 2020-04-01 18:51:20,745 [20 ] c.Infrastructure.ControllerActionInvoker - Executed action EZNow.Authorization.Users.Profile.ProfileAppService.GetCurrentUserProfileForEdit (EZNow.Application) in 7.7031ms INFO 2020-04-01 18:51:20,745 [20 ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'EZNow.Authorization.Users.Profile.ProfileAppService.GetCurrentUserProfileForEdit (EZNow.Application)' INFO 2020-04-01 18:51:20,746 [20 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 77.7248ms 500 application/json; charset=utf-8 INFO 2020-04-01 18:52:08,545 [22 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2.0 GET https://localhost:44301/swagger/swagger-ui-bundle.js.map
    INFO 2020-04-01 18:52:08,545 [4 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2.0 GET https://localhost:44301/swagger/swagger-ui-standalone-preset.js.map
    INFO 2020-04-01 18:52:08,561 [21 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2.0 GET https://localhost:44301/swagger/swagger-ui.css.map
    INFO 2020-04-01 18:52:08,565 [4 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 20.1592ms 404 INFO 2020-04-01 18:52:08,565 [22 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 20.6866ms 404 INFO 2020-04-01 18:52:08,579 [21 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request finished in 18.0637ms 404 INFO 2020-04-01 18:52:39,969 [4 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/2.0 GET https://localhost:44301/api/services/app/Profile/GetProfilePicture
    INFO 2020-04-01 18:52:39,983 [4 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'EZNow.Authorization.Users.Profile.ProfileAppService.GetProfilePicture (EZNow.Application)' INFO 2020-04-01 18:52:39,986 [4 ] c.Infrastructure.ControllerActionInvoker - Route matched with {area = "app", action = "GetProfilePicture", controller = "Profile"}. Executing controller action with signature System.Threading.Tasks.Task`1[EZNow.Authorization.Users.Profile.Dto.GetProfilePictureOutput] GetProfilePicture() on controller EZNow.Authorization.Users.Profile.ProfileAppService (EZNow.Application). ERROR 2020-04-01 18:52:39,989 [4 ] Mvc.ExceptionHandling.AbpExceptionFilter - Can't create component 'EZNow.Authorization.Users.Profile.ProfileAppService' as it has dependencies to be satisfied.

'EZNow.Authorization.Users.Profile.ProfileAppService' is waiting for the following dependencies:

  • Service 'System.Linq.IQueryable`1[[EZNow.UserDetail.Detail, EZNow.Core, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.

Castle.MicroKernel.Handlers.HandlerException: Can't create component 'EZNow.Authorization.Users.Profile.ProfileAppService' as it has dependencies to be satisfied.

'EZNow.Authorization.Users.Profile.ProfileAppService' is waiting for the following dependencies:

  • Service 'System.Linq.IQueryable`1[[EZNow.UserDetail.Detail, EZNow.Core, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null]]' which was not registered.

    at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency() at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, Arguments additionalArguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Resolve(Type service, Arguments arguments) at Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, Boolean isOptional) at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext) at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.

Question

HI

Im getting an error after logging into the app "An internal error occurred during your request!" and when I F12 I see the a 500 status error failed to load resource, pointing to the GetProfilePicture.

I cant even get to debug the ProfileAppService.

Any Ideas?

Thanks

Nice one thanks demirmusa

Showing 21 to 30 of 39 entries