Base solution for your next web application
Open Closed

Method not found #2945


User avatar
0
hussein created

I've an exception which i can't resolve My abp version: 1.5.1

Method not found: 'System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String)'.

[MissingMethodException: Method not found: 'System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String)'.]
   Abp.MultiTenancy.TenantCache`2.CreateTenantCacheItem(TTenant tenant) in D:\Halil\Github\module-zero\src\Abp.Zero\MultiTenancy\TenantCache.cs:87
   Castle.Proxies.TenantCache`2Proxy.CreateTenantCacheItem_callback(Tenant tenant) +5
   Castle.Proxies.Invocations.TenantCache`2_CreateTenantCacheItem.InvokeMethodOnTarget() +69
   Castle.DynamicProxy.AbstractInvocation.Proceed() +80
   Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +42
   Castle.DynamicProxy.AbstractInvocation.Proceed() +108
   Castle.Proxies.TenantCache`2Proxy.CreateTenantCacheItem(Tenant tenant) +141

10 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    There might be an old nuget reference or dll in your project, can you check it ?

    Thanks.

  • User Avatar
    0
    terry bentley created

    Did you find the answer to this one? I just upgraded from ABP 1.4.1 to ABP 2.0.2 and am getting the same error when I try to log in.

  • User Avatar
    0
    terry bentley created

    I was able to resolve my issue. I only had Abp.Zero 2.0.1 installed as soon as I upgraded to Abp.Zero 2.0.2 the error disappeared.

  • User Avatar
    0
    jhoiby created

    I'm getting an almost identical issue with a virgin ASP.Net/Angular template I downloaded 15 minutes ago and built in Visual Studio 2017.

    ERROR 2017-05-02 19:21:16,001 [15   ] nHandling.AbpApiExceptionFilterAttribute - Method not found: 'System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String, Byte[])'.
    System.MissingMethodException: Method not found: 'System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String, Byte[])'.
       at Abp.MultiTenancy.TenantCache`2.CreateTenantCacheItem(TTenant tenant)
       at Castle.Proxies.TenantCache`2Proxy.CreateTenantCacheItem_callback(Tenant tenant)
       at Castle.Proxies.Invocations.TenantCache`2_CreateTenantCacheItem.InvokeMethodOnTarget()
       at Castle.DynamicProxy.AbstractInvocation.Proceed()
       at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation)
    

    I did a straight stock download/unzip to project folder/create and update database/run. I'm assuming it's not a package version mismatch because this is a fresh full download with no modifications.

    I was able to login as admin but when I create a new tenant called "MyTenant" I get the method not found error listed in the original post.

    I downloaded this new template version since I was able to not get logging to work in the Core template. I'm getting frustrated. :?

    Thanks,

    James

  • User Avatar
    0
    fir55torm created

    Same issue here. Running it out of the box. Fails on the same error. I've built to project using EF ASP.net 5 with no angular.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You need to upgrade ABP to 2.0.2, can you check that ?

    Thanks.

  • User Avatar
    0
    mahendra created

    Hi,

    I am facing the same issue. My ABP Version is 2.0.2, but no luck. The same issue persists while creating a new tenant.

    Regards, Mahendra

  • User Avatar
    0
    hodor created

    Hi,

    Same for me with a brand new project. Just set multitenancy to false and ended up this error.

  • User Avatar
    0
    pankajmathur created

    I got same error when I switched on redis cache. Below is stack trace of error.

    at Abp.MultiTenancy.TenantCache2.CreateTenantCacheItem(TTenant tenant) at Castle.Proxies.TenantCache2Proxy.CreateTenantCacheItem_callback(Tenant tenant) at Castle.Proxies.Invocations.TenantCache2_CreateTenantCacheItem.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.TenantCache2Proxy.CreateTenantCacheItem(Tenant tenant) at Abp.MultiTenancy.TenantCache2.<>c__DisplayClass7_0.<GetOrNull>b__0() at Abp.Runtime.Caching.TypedCacheExtensions.<>c__DisplayClass0_02.<Get>b__0(TKey k) at Abp.Runtime.Caching.CacheExtensions.<>c__DisplayClass3_02.<Get>b__0(String k) at Abp.Runtime.Caching.CacheBase.Get(String key, Func2 factory) at Abp.Runtime.Caching.CacheExtensions.Get[TKey,TValue](ICache cache, TKey key, Func2 factory) at Abp.Runtime.Caching.TypedCacheWrapper2.Get(TKey key, Func2 factory) at Abp.Runtime.Caching.TypedCacheExtensions.Get[TKey,TValue](ITypedCache2 cache, TKey key, Func1 factory) at Abp.MultiTenancy.TenantCache2.GetOrNull(Int32 tenantId) at Abp.MultiTenancy.TenantCache2.Get(Int32 tenantId) at Castle.Proxies.TenantCache2Proxy.Get_callback(Int32 tenantId) at Castle.Proxies.Invocations.TenantCache2_Get.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.TenantCache2Proxy.Get(Int32 tenantId) at Abp.Zero.EntityFramework.DbPerTenantConnectionStringResolver.GetNameOrConnectionString(DbPerTenantConnectionStringResolveArgs args) at Abp.Zero.EntityFramework.DbPerTenantConnectionStringResolver.GetNameOrConnectionString(ConnectionStringResolveArgs args) at Abp.Domain.Uow.UnitOfWorkBase.ResolveConnectionString(ConnectionStringResolveArgs args) at Abp.EntityFramework.Uow.EfUnitOfWork.GetOrCreateDbContext[TDbContext](Nullable1 multiTenancySide) at Abp.EntityFramework.Uow.UnitOfWorkExtensions.GetDbContext[TDbContext](IActiveUnitOfWork unitOfWork, Nullable1 multiTenancySide) at Abp.EntityFramework.Uow.UnitOfWorkDbContextProvider1.GetDbContext(Nullable1 multiTenancySide) at Castle.Proxies.EfRepositoryBase3Proxy_4.get_Context_callback() at Castle.Proxies.Invocations.EfRepositoryBase3_get_Context_6.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.EfRepositoryBase3Proxy_4.get_Context() at Abp.EntityFramework.Repositories.EfRepositoryBase3.get_Table() at Castle.Proxies.EfRepositoryBase3Proxy_4.get_Table_callback() at Castle.Proxies.Invocations.EfRepositoryBase3_get_Table_6.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.EfRepositoryBase3Proxy_4.get_Table() at Castle.Proxies.EfRepositoryBase3Proxy_4.GetAll_callback() at Castle.Proxies.Invocations.EfRepositoryBase3_GetAll_6.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.EfRepositoryBase3Proxy_4.GetAll() at Abp.EntityFramework.Repositories.EfRepositoryBase3.<FirstOrDefaultAsync>d__12.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.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.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.AbpUserStore2.<FindByNameOrEmailAsync>d__20.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.AbpUserStore2.<FindByNameOrEmailAsync>d__21.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.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Abp.Authorization.AbpLogInManager3.<LoginAsyncInternal>d__35.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.AbpLogInManager3.<LoginAsync>d__34.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.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.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.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at CitiXsys.ManagementConsoleWeb.Web.Controllers.AccountController.

  • User Avatar
    0
    pankajmathur created

    Resolved after reading suggestion from below link.

    <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2076">https://github.com/aspnetboilerplate/as ... ssues/2076</a>