Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method Not Found Exception after updating from 2.0.1 to 2.0.2 #2076

Closed
tamys opened this issue Apr 26, 2017 · 17 comments
Closed

Method Not Found Exception after updating from 2.0.1 to 2.0.2 #2076

tamys opened this issue Apr 26, 2017 · 17 comments

Comments

@tamys
Copy link

@tamys tamys commented Apr 26, 2017

Please include your Abp version, exception message and stack trace in bug/problem reports.
v2.0.2
Server Error in '/' Application.

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingMethodException: Method not found: 'System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String, Byte[])'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[MissingMethodException: Method not found: 'System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String, Byte[])'.]
Abp.MultiTenancy.TenantCache2.CreateTenantCacheItem(TTenant tenant) +0 Castle.Proxies.TenantCache2Proxy.CreateTenantCacheItem_callback(Tenant tenant) +42
Castle.Proxies.Invocations.TenantCache2_CreateTenantCacheItem.InvokeMethodOnTarget() +130 Castle.DynamicProxy.AbstractInvocation.Proceed() +117 Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +111 Castle.DynamicProxy.AbstractInvocation.Proceed() +484 Castle.Proxies.TenantCache2Proxy.CreateTenantCacheItem(Tenant tenant) +190
Abp.MultiTenancy.<>c__DisplayClass7_0.b__0() +109
Abp.Runtime.Caching.<>c__DisplayClass0_02.<Get>b__0(TKey k) +44 Abp.Runtime.Caching.<>c__DisplayClass3_02.b__0(String k) +50
Abp.Runtime.Caching.CacheBase.Get(String key, Func2 factory) +174 Abp.Runtime.Caching.CacheExtensions.Get(ICache cache, TKey key, Func2 factory) +206
Abp.Runtime.Caching.TypedCacheWrapper2.Get(TKey key, Func2 factory) +107
Abp.Runtime.Caching.TypedCacheExtensions.Get(ITypedCache2 cache, TKey key, Func1 factory) +248
Abp.MultiTenancy.TenantCache2.GetOrNull(Int32 tenantId) +216 Abp.MultiTenancy.TenantCache2.Get(Int32 tenantId) +55
Castle.Proxies.TenantCache2Proxy.Get_callback(Int32 tenantId) +42 Castle.Proxies.Invocations.TenantCache2_Get.InvokeMethodOnTarget() +111
Castle.DynamicProxy.AbstractInvocation.Proceed() +117
Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +111
Castle.DynamicProxy.AbstractInvocation.Proceed() +484
Castle.Proxies.TenantCache2Proxy.Get(Int32 tenantId) +213 Abp.Zero.EntityFramework.DbPerTenantConnectionStringResolver.GetNameOrConnectionString(DbPerTenantConnectionStringResolveArgs args) +178 Abp.Zero.EntityFramework.DbPerTenantConnectionStringResolver.GetNameOrConnectionString(ConnectionStringResolveArgs args) +280 Abp.Domain.Uow.UnitOfWorkBase.ResolveConnectionString(ConnectionStringResolveArgs args) +57 Abp.EntityFramework.Uow.EfUnitOfWork.GetOrCreateDbContext(Nullable1 multiTenancySide) +485
Abp.EntityFramework.Uow.UnitOfWorkExtensions.GetDbContext(IActiveUnitOfWork unitOfWork, Nullable1 multiTenancySide) +329 Abp.EntityFramework.Uow.UnitOfWorkDbContextProvider1.GetDbContext(Nullable1 multiTenancySide) +121 Abp.EntityFramework.Repositories.EfRepositoryBase3.get_Context() +177
Castle.Proxies.EfRepositoryBase3Proxy.get_Context_callback() +36 Castle.Proxies.Invocations.EfRepositoryBase3_get_Context_2.InvokeMethodOnTarget() +58
Castle.DynamicProxy.AbstractInvocation.Proceed() +117
Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) +81
Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) +97
Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +159
Castle.DynamicProxy.AbstractInvocation.Proceed() +484
Castle.Proxies.EfRepositoryBase3Proxy.get_Context() +171 Abp.EntityFramework.Repositories.EfRepositoryBase3.get_Table() +40
Castle.Proxies.EfRepositoryBase3Proxy.get_Table_callback() +36 Castle.Proxies.Invocations.EfRepositoryBase3_get_Table_2.InvokeMethodOnTarget() +58
Castle.DynamicProxy.AbstractInvocation.Proceed() +117
Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) +81
Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) +97
Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +159
Castle.DynamicProxy.AbstractInvocation.Proceed() +484
Castle.Proxies.EfRepositoryBase3Proxy.get_Table() +171 Abp.EntityFramework.Repositories.EfRepositoryBase3.InsertAsync(TEntity entity) +47
Castle.Proxies.EfRepositoryBase3Proxy.InsertAsync_callback(AuditLog entity) +42 Castle.Proxies.Invocations.EfRepositoryBase3_InsertAsync_2.InvokeMethodOnTarget() +131
Castle.DynamicProxy.AbstractInvocation.Proceed() +117
Abp.Domain.Uow.UnitOfWorkInterceptor.PerformAsyncUow(IInvocation invocation, UnitOfWorkOptions options) +123
Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) +75
Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) +159
Castle.DynamicProxy.AbstractInvocation.Proceed() +484
Castle.Proxies.EfRepositoryBase3Proxy.InsertAsync(AuditLog entity) +191 Abp.Auditing.AuditingStore.SaveAsync(AuditInfo auditInfo) +69 Abp.Auditing.<>c__DisplayClass0_0.<Save>b__0() +45 System.Threading.Tasks.Task1.InnerInvoke() +56
System.Threading.Tasks.Task.Execute() +49
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +26
Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task) +61
Nito.AsyncEx.<>c__DisplayClass15_0.b__0(Task t) +47
System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke() +52
System.Threading.Tasks.Task.Execute() +49
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
System.Runtime.CompilerServices.TaskAwaiter.GetResult() +26
Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task) +61
Nito.AsyncEx.AsyncContext.Run(Func1 action) +240 Abp.Threading.AsyncHelper.RunSync(Func1 action) +29
Abp.Auditing.AuditingStoreExtensions.Save(IAuditingStore auditingStore, AuditInfo auditInfo) +121
Abp.Auditing.AuditingHelper.Save(AuditInfo auditInfo) +98
Abp.Web.Mvc.Auditing.AbpMvcAuditFilter.OnActionExecuted(ActionExecutedContext filterContext) +292
System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +354
System.Web.Mvc.Async.<>c__DisplayClass46.b__3f() +323
System.Web.Mvc.Async.<>c__DisplayClass33.b__32(IAsyncResult asyncResult) +44
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +47 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +136
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +102
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +50
System.Web.Mvc.Async.<>c__DisplayClass2b.b__1c() +72
System.Web.Mvc.Async.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult) +185
System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +40
System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +34
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +70 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +44
System.Web.Mvc.Controller.b__15(IAsyncResult asyncResult, Controller controller) +39
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +62 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +39
System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +39
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +70 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +133
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +56
System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +37
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +40
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +38
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9744373
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented Apr 26, 2017

Related to #2070
We have changed SimpleStringCipher in v2.0 which was not backward compatible and some of developers had problems while decrypting texts which are encrypted before v2.0.
So, in #2070 we made a rollback for .net461 framework and using new version only for .netstandard.

So, last parameter (salt) is removed.

@hikalkan hikalkan closed this Apr 26, 2017
@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented Apr 26, 2017

I realized that it can be a problem for Abp.Zero. We should also release Abp.Zero v2.0.2 which is compatible to ABP v2.0.2. Will do it now.

@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented Apr 26, 2017

Just released Abp.Zero packages, please upgrade your solution.

@tamys

This comment has been minimized.

Copy link
Author

@tamys tamys commented Apr 26, 2017

that was fast!!!
Thanks @hikalkan Zero works like charm now

@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented Apr 26, 2017

You're welcome.
Thank you for reporting the problem and testing it.

@jzhouw

This comment has been minimized.

Copy link
Contributor

@jzhouw jzhouw commented May 21, 2017

the project template should be updated too :-)

@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented May 22, 2017

We are frequently updating templates but we have many templates and we are frequently releasing ABP, so sometimes templates using a little old framework versions.
In that cases, we expect from developers to update their projects after creating the template :)

@zerocoll04

This comment has been minimized.

Copy link

@zerocoll04 zerocoll04 commented Jun 11, 2017

Hi hikalkan,

I have the issue yet, I download a new project from aspboilerplate.com and the issue not disapear.
Can you help me?

@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented Jun 11, 2017

Are you getting the same exception? Are you using .net core or .net framework?

@BeiMeng

This comment has been minimized.

Copy link

@BeiMeng BeiMeng commented Jul 25, 2017

Hi hikalkan,

I have the issue yet, I download a new project from aspboilerplate.com and the issue not disapear.
using .net framework,when login for the tenancyName is “Default”

@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented Jul 25, 2017

We have upgraded it for module-zero-core-template (https://github.com/aspnetboilerplate/module-zero-core-template) without problem. See the commit: aspnetboilerplate/module-zero-core-template@c5be0a0

@agussalimmokhtar

This comment has been minimized.

Copy link

@agussalimmokhtar agussalimmokhtar commented Jul 31, 2017

I downloaded a project from template choosing MVC5 & EF. I can run the project but I can pass the unit test.

Then, I update all the Nuget packages. When I run the test, I got this error:

Method not found: 'Void EntityFramework.DynamicFilters.DynamicFilterExtensions.Filter

Anything that I missed?

@hikalkan

This comment has been minimized.

Copy link
Member

@hikalkan hikalkan commented Jul 31, 2017

@agussalimmokhtar maybe it's related to #2352

@agussalimmokhtar

This comment has been minimized.

Copy link

@agussalimmokhtar agussalimmokhtar commented Jul 31, 2017

Still doesn't work for me. I had tried most of the suggestion. It works on .NET Core but not in MVC5 template

@map2701

This comment has been minimized.

Copy link

@map2701 map2701 commented Aug 2, 2017

The solution is get Abp.Zero 2.0.2 when abp version is 2.0.2.0, the problem is the template created with the wrong Abp.Zero version "2.0.1"

@jzhouw

This comment has been minimized.

Copy link
Contributor

@jzhouw jzhouw commented Aug 3, 2017

@hikalkan the template causes much problem as this issue, it's better to get the template synced with each release?

@ismcagdas

This comment has been minimized.

Copy link
Member

@ismcagdas ismcagdas commented Aug 3, 2017

Hi @jamesatgithub, you are right.
We will try to automate this process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants
You can’t perform that action at this time.