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

Activities of "sayas"

Hi, Finally i got the solution from this post: [http://forum.aspnetboilerplate.com/viewtopic.php?p=9706#p9706]) :D

Thank you very much for your kind help :)

Question

Hi, I've purchased ASPNetZero just before a couple of days. Now I would like to add some PlugIn Modules to my project. Can you please give me a sample project which implements the PlugIn Modules??

Nobody is here to help me???? :cry: :cry: :cry:

Hi,

I need to develop an application which is having a single instance - single database & multiple database at same time. ie, I'm planning to use a single database for all my small clients and will be having multiple databases for the premium clients. But there will be only single instance of the software.

Is that possible? What's your opinion??

Hi, That's also not working anyway. :cry:

The log Details are as follows:

DEBUG 2016-11-04 11:37:44,402 [1    ] Abp.Modules.AbpModuleManager             - Loading Abp modules...
DEBUG 2016-11-04 11:37:44,418 [1    ] Abp.Modules.AbpModuleManager             - Found 15 ABP modules in total.
DEBUG 2016-11-04 11:37:44,424 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Web.SmartCampusWebModule, SmartCampus.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,426 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusDataModule, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,427 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.EntityFramework.AbpZeroEntityFrameworkModule, Abp.Zero.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,427 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.Zero, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,427 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AbpKernelModule, Abp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,427 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFramework.AbpEntityFrameworkModule, Abp.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,427 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusCoreModule, SmartCampus.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,428 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusApplicationModule, SmartCampus.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,428 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,428 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Api.SmartCampusWebApiModule, SmartCampus.WebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,428 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.WebApi.AbpWebApiModule, Abp.Web.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,428 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebModule, Abp.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,428 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,429 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.SignalR.AbpWebSignalRModule, Abp.Web.SignalR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,429 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.Mvc.AbpWebMvcModule, Abp.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:44,433 [1    ] Abp.Modules.AbpModuleManager             - 15 modules loaded.
DEBUG 2016-11-04 11:37:44,600 [1    ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:37:44,600 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:37:44,600 [1    ] o.Configuration.LanguageManagementConfig - Converted SmartCampus (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:37:44,600 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:37:44,979 [1    ] EntityFramework.AbpEntityFrameworkModule - Registering DbContext: SmartCampus.EntityFramework.SmartCampusDbContext, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:37:46,163 [1    ] Abp.Localization.LocalizationManager     - Initializing 4 localization sources.
DEBUG 2016-11-04 11:37:46,169 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: Abp
DEBUG 2016-11-04 11:37:46,171 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpZero
DEBUG 2016-11-04 11:37:46,172 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: SmartCampus
DEBUG 2016-11-04 11:37:46,173 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpWeb
DEBUG 2016-11-04 11:37:46,284 [1    ] Abp.BackgroundJobs.BackgroundJobManager  - Start background worker: Abp.BackgroundJobs.BackgroundJobManager
DEBUG 2016-11-04 11:37:46,529 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - Found 9 classes define auto mapping attributes
DEBUG 2016-11-04 11:37:46,529 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Web.Models.Account.TenantSelectionViewModel+TenantInfo
DEBUG 2016-11-04 11:37:46,534 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.TenantLoginInfoDto
DEBUG 2016-11-04 11:37:46,535 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.UserLoginInfoDto
DEBUG 2016-11-04 11:37:46,535 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.CreateUserInput
DEBUG 2016-11-04 11:37:46,535 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.UserListDto
DEBUG 2016-11-04 11:37:46,535 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.CreateTenantInput
DEBUG 2016-11-04 11:37:46,535 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.TenantListDto
DEBUG 2016-11-04 11:37:46,535 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Institutions.Dto.InstitutionListDto
DEBUG 2016-11-04 11:37:46,536 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Courses.Dto.CoursesListDto
DEBUG 2016-11-04 11:37:48,584 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Sessions.ISessionAppService' with service name 'app/session'.
DEBUG 2016-11-04 11:37:48,585 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Users.IUserAppService' with service name 'app/user'.
DEBUG 2016-11-04 11:37:48,587 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Roles.IRoleAppService' with service name 'app/role'.
DEBUG 2016-11-04 11:37:48,588 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.MultiTenancy.ITenantAppService' with service name 'app/tenant'.
DEBUG 2016-11-04 11:37:48,590 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Institutions.IInstitutionAppService' with service name 'app/institution'.
DEBUG 2016-11-04 11:37:48,591 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.InstitutionCourseMappings.IInstitutionCourseMappingAppService' with service name 'app/institutionCourseMapping'.
DEBUG 2016-11-04 11:37:48,592 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Courses.ICourseAppService' with service name 'app/course'.
DEBUG 2016-11-04 11:38:22,160 [1    ] Abp.Modules.AbpModuleManager             - Loading Abp modules...
DEBUG 2016-11-04 11:38:22,570 [1    ] Abp.Modules.AbpModuleManager             - Found 15 ABP modules in total.
DEBUG 2016-11-04 11:38:22,574 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Web.SmartCampusWebModule, SmartCampus.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,575 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusDataModule, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,576 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.EntityFramework.AbpZeroEntityFrameworkModule, Abp.Zero.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,576 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.Zero, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,576 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AbpKernelModule, Abp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,576 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFramework.AbpEntityFrameworkModule, Abp.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,577 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusCoreModule, SmartCampus.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,577 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusApplicationModule, SmartCampus.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,577 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,577 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Api.SmartCampusWebApiModule, SmartCampus.WebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,578 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.WebApi.AbpWebApiModule, Abp.Web.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,578 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebModule, Abp.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,578 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,578 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.SignalR.AbpWebSignalRModule, Abp.Web.SignalR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,578 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.Mvc.AbpWebMvcModule, Abp.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:22,581 [1    ] Abp.Modules.AbpModuleManager             - 15 modules loaded.
DEBUG 2016-11-04 11:38:23,303 [1    ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:38:23,303 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:38:23,303 [1    ] o.Configuration.LanguageManagementConfig - Converted SmartCampus (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:38:23,303 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:38:23,748 [1    ] EntityFramework.AbpEntityFrameworkModule - Registering DbContext: SmartCampus.EntityFramework.SmartCampusDbContext, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:38:24,365 [1    ] Abp.Localization.LocalizationManager     - Initializing 4 localization sources.
DEBUG 2016-11-04 11:38:24,373 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: Abp
DEBUG 2016-11-04 11:38:24,374 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpZero
DEBUG 2016-11-04 11:38:24,376 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: SmartCampus
DEBUG 2016-11-04 11:38:24,377 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpWeb
DEBUG 2016-11-04 11:38:24,482 [1    ] Abp.BackgroundJobs.BackgroundJobManager  - Start background worker: Abp.BackgroundJobs.BackgroundJobManager
DEBUG 2016-11-04 11:38:24,679 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - Found 9 classes define auto mapping attributes
DEBUG 2016-11-04 11:38:24,679 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Web.Models.Account.TenantSelectionViewModel+TenantInfo
DEBUG 2016-11-04 11:38:24,685 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.TenantLoginInfoDto
DEBUG 2016-11-04 11:38:24,685 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.UserLoginInfoDto
DEBUG 2016-11-04 11:38:24,685 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.CreateUserInput
DEBUG 2016-11-04 11:38:24,685 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.UserListDto
DEBUG 2016-11-04 11:38:24,685 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.CreateTenantInput
DEBUG 2016-11-04 11:38:24,686 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.TenantListDto
DEBUG 2016-11-04 11:38:24,686 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Institutions.Dto.InstitutionListDto
DEBUG 2016-11-04 11:38:24,686 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Courses.Dto.CoursesListDto
DEBUG 2016-11-04 11:38:26,571 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Sessions.ISessionAppService' with service name 'app/session'.
DEBUG 2016-11-04 11:38:26,572 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Users.IUserAppService' with service name 'app/user'.
DEBUG 2016-11-04 11:38:26,572 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Roles.IRoleAppService' with service name 'app/role'.
DEBUG 2016-11-04 11:38:26,573 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.MultiTenancy.ITenantAppService' with service name 'app/tenant'.
DEBUG 2016-11-04 11:38:26,574 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Institutions.IInstitutionAppService' with service name 'app/institution'.
DEBUG 2016-11-04 11:38:26,575 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.InstitutionCourseMappings.IInstitutionCourseMappingAppService' with service name 'app/institutionCourseMapping'.
DEBUG 2016-11-04 11:38:26,577 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Courses.ICourseAppService' with service name 'app/course'.
DEBUG 2016-11-04 11:38:35,456 [11   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"b25472db-f4f5-4f67-ae9c-ba360e362355","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:38:35.4451249+05:30","Properties":{}}
DEBUG 2016-11-04 11:38:35,518 [6    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: b25472db-f4f5-4f67-ae9c-ba360e362355
DEBUG 2016-11-04 11:38:47,311 [10   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is disconnected: b25472db-f4f5-4f67-ae9c-ba360e362355
DEBUG 2016-11-04 11:38:47,609 [6    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"4b978dc2-a68d-4fd5-b097-99b79788bdbe","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:38:47.6096124+05:30","Properties":{}}
DEBUG 2016-11-04 11:38:47,613 [11   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: 4b978dc2-a68d-4fd5-b097-99b79788bdbe
DEBUG 2016-11-04 11:40:09,496 [19   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is reconnected: {"ConnectionId":"4b978dc2-a68d-4fd5-b097-99b79788bdbe","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:38:47.6096124+05:30","Properties":{}}
ERROR 2016-11-04 11:40:09,533 [6    ] nHandling.AbpApiExceptionFilterAttribute - UserId not found.
System.InvalidOperationException: UserId not found.
   at Microsoft.AspNet.Identity.UserManager`2.<GetRolesAsync>d__ac.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.<>c__DisplayClass63_0.<<GetUserPermissionCacheItemAsync>b__0>d.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 641
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Runtime.Caching.CacheExtensions.<>c__DisplayClass5_0`2.&lt;&lt;GetAsync&gt;b__0>d.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Caching\CacheExtensions.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Runtime.Caching.CacheBase.&lt;GetAsync&gt;d__15.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Caching\CacheBase.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Runtime.Caching.CacheExtensions.&lt;GetAsync&gt;d__5`2.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Caching\CacheExtensions.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.&lt;GetUserPermissionCacheItemAsync&gt;d__63.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 637
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.<IsGrantedAsync>d__30.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 167
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.&lt;IsGrantedAsync&gt;d__28.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.PermissionChecker`3.<IsGrantedAsync>d__18.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\PermissionChecker.cs:line 46
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.PermissionCheckerExtensions.<IsGrantedAsync>d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\PermissionCheckerExtensions.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.PermissionCheckerExtensions.<AuthorizeAsync>d__9.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\PermissionCheckerExtensions.cs:line 194
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__19.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 49
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.<CheckPermissions>d__22.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__20.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.<>c__DisplayClass3.<Run>b__1(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Abp.Authorization.AuthorizationHelperExtensions.Authorize(IAuthorizationHelper authorizationHelper, MethodInfo methodInfo) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelperExtensions.cs:line 27
   at Abp.Authorization.AuthorizationInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationInterceptor.cs:line 19
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformAsyncUow(IInvocation invocation, UnitOfWorkOptions options) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:line 62
   at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:line 41
   at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:line 35
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Auditing.AuditingInterceptor.PerformAsyncAuditing(IInvocation invocation, AuditInfo auditInfo) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Auditing\AuditingInterceptor.cs:line 70
   at Abp.Auditing.AuditingInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Auditing\AuditingInterceptor.cs:line 37
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Runtime.Validation.Interception.ValidationInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Validation\Interception\ValidationInterceptor.cs:line 34
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.InstitutionAppServiceProxy.CreateInstitution(Institution input)
   at SmartCampus.MultiTenancy.TenantAppService.&lt;CreateTenant&gt;d__7.MoveNext() in E:\Working Folder\WebProjects\SmartCampus\SmartCampus.Application\MultiTenancy\TenantAppService.cs:line 99
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Threading.InternalAsyncHelper.&lt;AwaitTaskWithPostActionAndFinally&gt;d__1.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Threading.InternalAsyncHelper.&lt;AwaitTaskWithFinally&gt;d__0.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 20
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.TaskHelpersExtensions.&lt;CastToObject&gt;d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;InvokeActionAsyncCore&gt;d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Uow.AbpApiUowFilter.&lt;ExecuteActionFilterAsync&gt;d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Uow\AbpApiUowFilter.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Validation.AbpApiValidationFilter.&lt;ExecuteActionFilterAsync&gt;d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Validation\AbpApiValidationFilter.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Auditing.AbpApiAuditFilter.&lt;ExecuteActionFilterAsync&gt;d__4.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Auditing\AbpApiAuditFilter.cs:line 30
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.&lt;ExecuteAsync&gt;d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Security.AntiForgery.AbpAntiForgeryApiFilter.&lt;ExecuteAuthorizationFilterAsync&gt;d__10.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Security\AntiForgery\AbpAntiForgeryApiFilter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Authorization.AbpApiAuthorizeFilter.&lt;ExecuteAuthorizationFilterAsync&gt;d__7.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Authorization\AbpApiAuthorizeFilter.cs:line 55
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.AuthenticationFilterResult.&lt;ExecuteAsync&gt;d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.&lt;ExecuteAsync&gt;d__0.MoveNext()
ERROR 2016-11-04 11:40:23,981 [22   ] nHandling.AbpApiExceptionFilterAttribute - UserId not found.
System.InvalidOperationException: UserId not found.
   at Microsoft.AspNet.Identity.UserManager`2.<GetRolesAsync>d__ac.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.&lt;&gt;c__DisplayClass63_0.&lt;&lt;GetUserPermissionCacheItemAsync&gt;b__0>d.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 641
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Runtime.Caching.CacheExtensions.&lt;&gt;c__DisplayClass5_0`2.<<GetAsync>b__0>d.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Caching\CacheExtensions.cs:line 0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Runtime.Caching.CacheBase.<GetAsync>d__15.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Caching\CacheBase.cs:line 69
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Runtime.Caching.CacheExtensions.<GetAsync>d__5`2.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Caching\CacheExtensions.cs:line 38
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.<GetUserPermissionCacheItemAsync>d__63.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 637
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.&lt;IsGrantedAsync&gt;d__30.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 167
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.Users.AbpUserManager`2.<IsGrantedAsync>d__28.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.PermissionChecker`3.&lt;IsGrantedAsync&gt;d__18.MoveNext() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Authorization\PermissionChecker.cs:line 46
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.PermissionCheckerExtensions.&lt;IsGrantedAsync&gt;d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\PermissionCheckerExtensions.cs:line 128
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.PermissionCheckerExtensions.&lt;AuthorizeAsync&gt;d__9.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\PermissionCheckerExtensions.cs:line 194
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.&lt;AuthorizeAsync&gt;d__19.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 49
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.&lt;CheckPermissions&gt;d__22.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.&lt;AuthorizeAsync&gt;d__20.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.&lt;&gt;c__DisplayClass3.&lt;Run&gt;b__1(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Abp.Authorization.AuthorizationHelperExtensions.Authorize(IAuthorizationHelper authorizationHelper, MethodInfo methodInfo) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelperExtensions.cs:line 27
   at Abp.Authorization.AuthorizationInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationInterceptor.cs:line 19
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformAsyncUow(IInvocation invocation, UnitOfWorkOptions options) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:line 62
   at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:line 41
   at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:line 35
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Auditing.AuditingInterceptor.PerformAsyncAuditing(IInvocation invocation, AuditInfo auditInfo) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Auditing\AuditingInterceptor.cs:line 70
   at Abp.Auditing.AuditingInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Auditing\AuditingInterceptor.cs:line 37
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Abp.Runtime.Validation.Interception.ValidationInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Runtime\Validation\Interception\ValidationInterceptor.cs:line 34
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at Castle.Proxies.InstitutionAppServiceProxy.CreateInstitution(Institution input)
   at SmartCampus.MultiTenancy.TenantAppService.<CreateTenant>d__7.MoveNext() in E:\Working Folder\WebProjects\SmartCampus\SmartCampus.Application\MultiTenancy\TenantAppService.cs:line 99
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinally>d__1.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithFinally>d__0.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 20
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Uow.AbpApiUowFilter.<ExecuteActionFilterAsync>d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Uow\AbpApiUowFilter.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Validation.AbpApiValidationFilter.<ExecuteActionFilterAsync>d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Validation\AbpApiValidationFilter.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Auditing.AbpApiAuditFilter.<ExecuteActionFilterAsync>d__4.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Auditing\AbpApiAuditFilter.cs:line 30
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Security.AntiForgery.AbpAntiForgeryApiFilter.<ExecuteAuthorizationFilterAsync>d__10.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Security\AntiForgery\AbpAntiForgeryApiFilter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Authorization.AbpApiAuthorizeFilter.<ExecuteAuthorizationFilterAsync>d__7.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Authorization\AbpApiAuthorizeFilter.cs:line 55
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()

I wonder which UserId is they are talking about?! :roll:

Hi,

I've tried again with and without using the parameterless constructor. But the issue remains the same.

I've tried to attach the Log File here.. But your forum does not allow me to do so. So I'm pasting here the text from the log file.

DEBUG 2016-11-04 10:58:59,080 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.InstitutionCourseMappings.IInstitutionCourseMappingAppService' with service name 'app/institutionCourseMapping'.
DEBUG 2016-11-04 10:58:59,112 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Courses.ICourseAppService' with service name 'app/course'.
WARN  2016-11-04 10:59:03,010 [6    ] Abp.Logging.LogHelper                    - Abp.Authorization.AbpAuthorizationException: Current user did not login to the application!
   at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__19.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 42
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.<CheckPermissions>d__22.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__20.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.<>c__DisplayClass3.<Run>b__1(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Abp.Authorization.AuthorizationHelperExtensions.Authorize(IAuthorizationHelper authorizationHelper, MethodInfo methodInfo) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelperExtensions.cs:line 27
   at Abp.Web.Mvc.Authorization.AbpMvcAuthorizeFilter.OnAuthorization(AuthorizationContext filterContext) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Mvc\Web\Mvc\Authorization\AbpMvcAuthorizeFilter.cs:line 42
Abp.Authorization.AbpAuthorizationException: Current user did not login to the application!
   at Abp.Authorization.AuthorizationHelper.&lt;AuthorizeAsync&gt;d__19.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 42
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.&lt;CheckPermissions&gt;d__22.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Authorization.AuthorizationHelper.&lt;AuthorizeAsync&gt;d__20.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelper.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.&lt;&gt;c__DisplayClass3.&lt;Run&gt;b__1(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
   at Abp.Authorization.AuthorizationHelperExtensions.Authorize(IAuthorizationHelper authorizationHelper, MethodInfo methodInfo) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Authorization\AuthorizationHelperExtensions.cs:line 27
   at Abp.Web.Mvc.Authorization.AbpMvcAuthorizeFilter.OnAuthorization(AuthorizationContext filterContext) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Mvc\Web\Mvc\Authorization\AbpMvcAuthorizeFilter.cs:line 42
DEBUG 2016-11-04 10:59:10,370 [10   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"ab601690-8e8a-4a0a-8892-ca0941c9aef8","IpAddress":"::1","TenantId":null,"UserId":null,"ConnectTime":"2016-11-04T10:59:10.3609726+05:30","Properties":{}}
DEBUG 2016-11-04 10:59:10,800 [6    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: ab601690-8e8a-4a0a-8892-ca0941c9aef8
DEBUG 2016-11-04 11:06:06,612 [28   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"cd9e9de3-163f-4f44-9957-e29a2769c7e4","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:06:06.6110182+05:30","Properties":{}}
DEBUG 2016-11-04 11:06:06,625 [28   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: cd9e9de3-163f-4f44-9957-e29a2769c7e4
DEBUG 2016-11-04 11:06:09,902 [26   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is disconnected: cd9e9de3-163f-4f44-9957-e29a2769c7e4
DEBUG 2016-11-04 11:06:10,191 [29   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"2a11d938-bcbf-45d5-9f56-37b15be7592f","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:06:10.1906595+05:30","Properties":{}}
DEBUG 2016-11-04 11:06:10,204 [26   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: 2a11d938-bcbf-45d5-9f56-37b15be7592f
DEBUG 2016-11-04 11:06:40,358 [25   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is disconnected: ab601690-8e8a-4a0a-8892-ca0941c9aef8
DEBUG 2016-11-04 11:10:29,265 [1    ] Abp.Modules.AbpModuleManager             - Loading Abp modules...
DEBUG 2016-11-04 11:10:29,281 [1    ] Abp.Modules.AbpModuleManager             - Found 15 ABP modules in total.
DEBUG 2016-11-04 11:10:29,288 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Web.SmartCampusWebModule, SmartCampus.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,290 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusDataModule, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,290 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.EntityFramework.AbpZeroEntityFrameworkModule, Abp.Zero.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,291 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.Zero, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,291 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AbpKernelModule, Abp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,291 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFramework.AbpEntityFrameworkModule, Abp.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,291 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusCoreModule, SmartCampus.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,292 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusApplicationModule, SmartCampus.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,292 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,292 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Api.SmartCampusWebApiModule, SmartCampus.WebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,292 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.WebApi.AbpWebApiModule, Abp.Web.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,292 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebModule, Abp.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,292 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,292 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.SignalR.AbpWebSignalRModule, Abp.Web.SignalR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,293 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.Mvc.AbpWebMvcModule, Abp.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:29,295 [1    ] Abp.Modules.AbpModuleManager             - 15 modules loaded.
DEBUG 2016-11-04 11:10:29,477 [1    ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:10:29,477 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:10:29,477 [1    ] o.Configuration.LanguageManagementConfig - Converted SmartCampus (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:10:29,477 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:10:29,852 [1    ] EntityFramework.AbpEntityFrameworkModule - Registering DbContext: SmartCampus.EntityFramework.SmartCampusDbContext, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:10:31,093 [1    ] Abp.Localization.LocalizationManager     - Initializing 4 localization sources.
DEBUG 2016-11-04 11:10:31,100 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: Abp
DEBUG 2016-11-04 11:10:31,102 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpZero
DEBUG 2016-11-04 11:10:31,104 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: SmartCampus
DEBUG 2016-11-04 11:10:31,105 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpWeb
DEBUG 2016-11-04 11:10:31,207 [1    ] Abp.BackgroundJobs.BackgroundJobManager  - Start background worker: Abp.BackgroundJobs.BackgroundJobManager
DEBUG 2016-11-04 11:10:31,442 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - Found 9 classes define auto mapping attributes
DEBUG 2016-11-04 11:10:31,442 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Web.Models.Account.TenantSelectionViewModel+TenantInfo
DEBUG 2016-11-04 11:10:31,446 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.TenantLoginInfoDto
DEBUG 2016-11-04 11:10:31,446 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.UserLoginInfoDto
DEBUG 2016-11-04 11:10:31,446 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.CreateUserInput
DEBUG 2016-11-04 11:10:31,446 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.UserListDto
DEBUG 2016-11-04 11:10:31,446 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.CreateTenantInput
DEBUG 2016-11-04 11:10:31,447 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.TenantListDto
DEBUG 2016-11-04 11:10:31,447 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Institutions.Dto.InstitutionListDto
DEBUG 2016-11-04 11:10:31,447 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Courses.Dto.CoursesListDto
DEBUG 2016-11-04 11:10:33,331 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Sessions.ISessionAppService' with service name 'app/session'.
DEBUG 2016-11-04 11:10:33,332 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Users.IUserAppService' with service name 'app/user'.
DEBUG 2016-11-04 11:10:33,333 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Roles.IRoleAppService' with service name 'app/role'.
DEBUG 2016-11-04 11:10:33,334 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.MultiTenancy.ITenantAppService' with service name 'app/tenant'.
DEBUG 2016-11-04 11:10:33,335 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Institutions.IInstitutionAppService' with service name 'app/institution'.
DEBUG 2016-11-04 11:10:33,337 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.InstitutionCourseMappings.IInstitutionCourseMappingAppService' with service name 'app/institutionCourseMapping'.
DEBUG 2016-11-04 11:10:33,338 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Courses.ICourseAppService' with service name 'app/course'.
DEBUG 2016-11-04 11:10:33,986 [8    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected (on reconnected event): {"ConnectionId":"2a11d938-bcbf-45d5-9f56-37b15be7592f","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:10:33.925982+05:30","Properties":{}}
DEBUG 2016-11-04 11:10:38,509 [8    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is disconnected: 2a11d938-bcbf-45d5-9f56-37b15be7592f
DEBUG 2016-11-04 11:10:40,569 [6    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"139a4c9d-65cb-4eea-b9ae-fb8b1adbe020","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:10:40.5683735+05:30","Properties":{}}
DEBUG 2016-11-04 11:10:40,606 [6    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: 139a4c9d-65cb-4eea-b9ae-fb8b1adbe020
DEBUG 2016-11-04 11:10:43,165 [6    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is disconnected: 139a4c9d-65cb-4eea-b9ae-fb8b1adbe020
DEBUG 2016-11-04 11:10:43,487 [9    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"55778023-367d-42f4-ad67-914595786be9","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:10:43.4877902+05:30","Properties":{}}
DEBUG 2016-11-04 11:10:43,495 [9    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: 55778023-367d-42f4-ad67-914595786be9
ERROR 2016-11-04 11:11:02,584 [9    ] nHandling.AbpApiExceptionFilterAttribute - Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at SmartCampus.InstitutionCourseMappings.InstitutionCourseMappingAppService.<MapCourses>d__3.MoveNext() in E:\Working Folder\WebProjects\SmartCampus\SmartCampus.Application\InstitutionCourseMappings\InstitutionCourseMappingAppService.cs:line 42
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinally>d__1.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Threading.InternalAsyncHelper.<AwaitTaskWithFinally>d__0.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 20
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Uow.AbpApiUowFilter.<ExecuteActionFilterAsync>d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Uow\AbpApiUowFilter.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Validation.AbpApiValidationFilter.<ExecuteActionFilterAsync>d__5.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Validation\AbpApiValidationFilter.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Auditing.AbpApiAuditFilter.<ExecuteActionFilterAsync>d__4.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Auditing\AbpApiAuditFilter.cs:line 30
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Security.AntiForgery.AbpAntiForgeryApiFilter.<ExecuteAuthorizationFilterAsync>d__10.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Security\AntiForgery\AbpAntiForgeryApiFilter.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.WebApi.Authorization.AbpApiAuthorizeFilter.<ExecuteAuthorizationFilterAsync>d__7.MoveNext() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Api\WebApi\Authorization\AbpApiAuthorizeFilter.cs:line 55
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()
DEBUG 2016-11-04 11:12:28,797 [1    ] Abp.Modules.AbpModuleManager             - Loading Abp modules...
DEBUG 2016-11-04 11:12:28,813 [1    ] Abp.Modules.AbpModuleManager             - Found 15 ABP modules in total.
DEBUG 2016-11-04 11:12:28,819 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Web.SmartCampusWebModule, SmartCampus.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,822 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusDataModule, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,822 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.EntityFramework.AbpZeroEntityFrameworkModule, Abp.Zero.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,822 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Zero.AbpZeroCoreModule, Abp.Zero, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,823 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AbpKernelModule, Abp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,823 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.EntityFramework.AbpEntityFrameworkModule, Abp.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,823 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusCoreModule, SmartCampus.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,824 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.SmartCampusApplicationModule, SmartCampus.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,824 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.AutoMapper.AbpAutoMapperModule, Abp.AutoMapper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,824 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: SmartCampus.Api.SmartCampusWebApiModule, SmartCampus.WebApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,825 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.WebApi.AbpWebApiModule, Abp.Web.Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,825 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebModule, Abp.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,825 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.AbpWebCommonModule, Abp.Web.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,825 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.SignalR.AbpWebSignalRModule, Abp.Web.SignalR, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,825 [1    ] Abp.Modules.AbpModuleManager             - Loaded module: Abp.Web.Mvc.AbpWebMvcModule, Abp.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:28,828 [1    ] Abp.Modules.AbpModuleManager             - 15 modules loaded.
DEBUG 2016-11-04 11:12:28,968 [1    ] o.Configuration.LanguageManagementConfig - Converted Abp (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:12:28,968 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpZero (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:12:28,968 [1    ] o.Configuration.LanguageManagementConfig - Converted SmartCampus (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:12:28,968 [1    ] o.Configuration.LanguageManagementConfig - Converted AbpWeb (Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource) to MultiTenantLocalizationSource
DEBUG 2016-11-04 11:12:29,441 [1    ] EntityFramework.AbpEntityFrameworkModule - Registering DbContext: SmartCampus.EntityFramework.SmartCampusDbContext, SmartCampus.EntityFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
DEBUG 2016-11-04 11:12:30,657 [1    ] Abp.Localization.LocalizationManager     - Initializing 4 localization sources.
DEBUG 2016-11-04 11:12:30,665 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: Abp
DEBUG 2016-11-04 11:12:30,667 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpZero
DEBUG 2016-11-04 11:12:30,669 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: SmartCampus
DEBUG 2016-11-04 11:12:30,670 [1    ] Abp.Localization.LocalizationManager     - Initialized localization source: AbpWeb
DEBUG 2016-11-04 11:12:30,787 [1    ] Abp.BackgroundJobs.BackgroundJobManager  - Start background worker: Abp.BackgroundJobs.BackgroundJobManager
DEBUG 2016-11-04 11:12:31,012 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - Found 9 classes define auto mapping attributes
DEBUG 2016-11-04 11:12:31,012 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Web.Models.Account.TenantSelectionViewModel+TenantInfo
DEBUG 2016-11-04 11:12:31,016 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.TenantLoginInfoDto
DEBUG 2016-11-04 11:12:31,016 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Sessions.Dto.UserLoginInfoDto
DEBUG 2016-11-04 11:12:31,016 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.CreateUserInput
DEBUG 2016-11-04 11:12:31,016 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Users.Dto.UserListDto
DEBUG 2016-11-04 11:12:31,016 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.CreateTenantInput
DEBUG 2016-11-04 11:12:31,017 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.MultiTenancy.Dto.TenantListDto
DEBUG 2016-11-04 11:12:31,017 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Institutions.Dto.InstitutionListDto
DEBUG 2016-11-04 11:12:31,017 [1    ] Abp.AutoMapper.AbpAutoMapperModule       - SmartCampus.Courses.Dto.CoursesListDto
DEBUG 2016-11-04 11:12:32,980 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Sessions.ISessionAppService' with service name 'app/session'.
DEBUG 2016-11-04 11:12:32,981 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Users.IUserAppService' with service name 'app/user'.
DEBUG 2016-11-04 11:12:32,982 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Roles.IRoleAppService' with service name 'app/role'.
DEBUG 2016-11-04 11:12:32,983 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.MultiTenancy.ITenantAppService' with service name 'app/tenant'.
DEBUG 2016-11-04 11:12:32,984 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Institutions.IInstitutionAppService' with service name 'app/institution'.
DEBUG 2016-11-04 11:12:32,985 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.InstitutionCourseMappings.IInstitutionCourseMappingAppService' with service name 'app/institutionCourseMapping'.
DEBUG 2016-11-04 11:12:32,986 [1    ] Abp.Logging.LogHelper                    - Dynamic web api controller is created for type 'SmartCampus.Courses.ICourseAppService' with service name 'app/course'.
ERROR 2016-11-04 11:12:33,758 [7    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - Can not find IP address of the client! connectionId: 55778023-367d-42f4-ad67-914595786be9
ERROR 2016-11-04 11:12:33,758 [7    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - Value does not fall within the expected range.
System.ArgumentException: Value does not fall within the expected range.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Web.Hosting.IIS7WorkerRequest.GetServerVariableInternal(String name)
   at System.Web.Hosting.IIS7WorkerRequest.GetServerVariable(String name)
   at System.Web.HttpRequest.FillInServerVariablesCollection()
   at System.Web.HttpServerVarsCollection.Populate()
   at System.Web.HttpServerVarsCollection.Get(String name)
   at Microsoft.Owin.Host.SystemWeb.OwinCallContext.Microsoft.Owin.Host.SystemWeb.CallEnvironment.AspNetDictionary.IPropertySource.GetServerRemoteIpAddress()
   at Microsoft.Owin.Host.SystemWeb.CallEnvironment.AspNetDictionary.get_ServerRemoteIpAddress()
   at Microsoft.Owin.Host.SystemWeb.CallEnvironment.AspNetDictionary.PropertiesTryGetValue(String key, Object& value)
   at Microsoft.Owin.Host.SystemWeb.CallEnvironment.AspNetDictionary.System.Collections.Generic.IDictionary<System.String,System.Object>.get_Item(String key)
   at Abp.Web.SignalR.Hubs.AbpCommonHub.GetIpAddressOfClient() in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.SignalR\Web\SignalR\Hubs\AbpCommonHub.cs:line 102
DEBUG 2016-11-04 11:12:33,797 [7    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected (on reconnected event): {"ConnectionId":"55778023-367d-42f4-ad67-914595786be9","IpAddress":"","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:12:33.7638483+05:30","Properties":{}}
DEBUG 2016-11-04 11:12:39,936 [9    ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"65768671-f01f-4fcd-b4cf-656e59bfff9f","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:12:39.9367695+05:30","Properties":{}}
DEBUG 2016-11-04 11:12:39,962 [12   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: 65768671-f01f-4fcd-b4cf-656e59bfff9f
DEBUG 2016-11-04 11:15:53,128 [27   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is disconnected: 65768671-f01f-4fcd-b4cf-656e59bfff9f
DEBUG 2016-11-04 11:15:53,424 [20   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"3b62d36a-10c7-4ca4-b192-70cbdd130862","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:15:53.4236988+05:30","Properties":{}}
DEBUG 2016-11-04 11:15:53,435 [16   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: 3b62d36a-10c7-4ca4-b192-70cbdd130862
DEBUG 2016-11-04 11:17:00,699 [20   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is disconnected: 3b62d36a-10c7-4ca4-b192-70cbdd130862
DEBUG 2016-11-04 11:17:01,085 [25   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is connected: {"ConnectionId":"3b1bdc22-d9e8-4264-92d3-e72a2bc88046","IpAddress":"::1","TenantId":null,"UserId":1,"ConnectTime":"2016-11-04T11:17:01.0843835+05:30","Properties":{}}
DEBUG 2016-11-04 11:17:01,107 [30   ] Abp.Web.SignalR.Hubs.AbpCommonHub        - A client is registered: 3b1bdc22-d9e8-4264-92d3-e72a2bc88046

NB: Also I've tried after removing the IMustHaveTenant from my entities. So, I think the TenantId=null is not a problem!

Hi Halil,

I've checked it with sql profiler. The funny thing is, i can see all the queries for inserting the data to AbpTenants, AbpUsers ect..... upto AbpAudits tables. But I could not find out the query for inserting the data to AbpInstitutions table!!! I had tried to attach the trace file for your reference. But your forum doesn't allow me to do so.. :roll:

Yeah.. I've tried that too.. When deleting the parameterless constructor, even the code doesn't coming to the method 'MapCourses'. And it says 'An internal Server error occurred!', but no exceptions were found in the AbpAuditLogs table.

But when using the 2 constructors together, the same problem exists - it directly comes to the method. Now I'm Stuck!!

Hi Halil,

Have you added any of the above mentioned reporting tools to the ABP? Which is better in your opinion??

Hai..

Thanks for your kind help. I got the values of select list & multiselect list using the $('#multipleSelect').val()

And sent the collected data using abp.services. Because i've written the code for inserting the data in AppServices.

But now i'm in trouble with another issue. That is , I'm using the 'InserAsync' function of 'IRepository' interface in the AppService. I've coded to set an instance of the repository in the AppService Constructor. But that constructor is not getting initiated. So that, an error is occurred at the point of inserting the data. If the IRepository instance is initiated, then I'm done.

I'll show you my code.

AppService

public class InstitutionCourseMappingAppService : SmartCampusAppServiceBase, IInstitutionCourseMappingAppService
    {
        public readonly IRepository<InstitutionCourseMapping,int> _institutionCourseMappingRepository;

        public InstitutionCourseMappingAppService()
        {

        }

        public InstitutionCourseMappingAppService(IRepository<InstitutionCourseMapping,int> institutionCourseMappingRepository)
        {
            _institutionCourseMappingRepository = institutionCourseMappingRepository;
        }

        public async Task MapCourses(string institutionId, string[] courses)
        {

            try
            {                
                foreach (string courseId in courses)
                {
                    InstitutionCourseMapping mapp = new InstitutionCourseMapping();
                    mapp.InstitutionId = Convert.ToInt32(institutionId);
                    mapp.CourseId = Convert.ToInt32(courseId);
                    await _institutionCourseMappingRepository.InsertAsync(mapp);   // Issue is happening here(Error: _institutionCourseMappingRepository is null)
                }                
            }
            catch (Exception ex)
            {
                Trace.Write(ex.Message);
                throw;
            }
        }

    }

JS

(function() {
    $(function () {

		var _$form = $('#mapcoursesForm');
        	_$form.validate();
        	_$form.find('button[type="submit"]').click(function(e) {
        	    e.preventDefault();

        	    if (!_$form.valid()) {
        	        return;
        	    }

        	    var institution= $('#institution').val();
        	    var selectedCourses = $('#courses').val();

        	    if (selectedCourses == null || selectedCourses == '') {
        	        swal("No Courses were Selected", "Please select any of the courses!", "warning");
        	        return false;
        	    }
        	    else
        	    {
        	        abp.ui.setBusy(_$form);
        	        var _institutionService = abp.services.app.institutionCourseMapping;    
   	            	// after this next line, it's directly going to the mapCourses methode. Not to the constructor  :(
        	        _institutionService.mapCourses(institution,selectedCourses).done(function (e) {
        	            swal("Success", "Courses and institutions were mapped successfully!", "Success");
        	            location.reload(true);  //reload page 
        	        }).always(function () {
        	            abp.ui.clearBusy(_$form);
        	        });
        	    }
		});
    });    
})();

How can we make it possible?

Showing 1 to 10 of 16 entries