Base solution for your next web application
Open Closed

Abp.HangFire.AspNetCore integration is not working #3030


User avatar
0
liem created

Hi, I could successfully download, run and view home page of a template Asp.net Core 1.x with Multi Page Web Application type and Module Zero integration. After that I tried to integrate Abp.HangFire.AspNetCore 2.0.1 package into the MVC project and run. Unfortunately the default admin pages (User, Tenant) do not work correctly. When accessed to user page I got the following error. I could not create a new user either

ERROR 2017-04-25 18:26:46,630 [51   ] Mvc.ExceptionHandling.AbpExceptionFilter - Method not found: 'System.String Abp.Extensions.StringExtensions.ToCamelCase(System.String)'.
System.MissingMethodException: Method not found: 'System.String Abp.Extensions.StringExtensions.ToCamelCase(System.String)'.
   at Abp.Web.Api.ProxyScripting.Generators.JQuery.JQueryProxyScriptGenerator.AddModuleScript(StringBuilder script, ModuleApiDescriptionModel module)
   at Abp.Web.Api.ProxyScripting.Generators.JQuery.JQueryProxyScriptGenerator.CreateScript(ApplicationApiDescriptionModel model)
   at Abp.Web.Api.ProxyScripting.ApiProxyScriptManager.CreateScript(ApiProxyGenerationOptions options)
   at Abp.Web.Api.ProxyScripting.ApiProxyScriptManager.<>c__DisplayClass5_0.<GetScript>b__0(String key)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Abp.Web.Api.ProxyScripting.ApiProxyScriptManager.GetScript(ApiProxyGenerationOptions options)
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__27.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 Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextExceptionFilterAsync>d__24.MoveNext()

Is there anyone that has the same issue?


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

    Hi,

    Which version of ABP do you use ? is it 2.0.2 ? Normally this extension method is defined here <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/master/src/Abp/Extensions/StringExtensions.cs#L307">https://github.com/aspnetboilerplate/as ... ns.cs#L307</a>.

  • User Avatar
    0
    liem created

    The assembly version in Web project is 2.0.2 but the one in Entity Framework and Core Web Project is 1.51. This might be an issue. Let me upgrade it to the new one and see what will happens. But I think the version 2.0.2 must be the default version in these projects, right! Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Liem,

    Yes, they all must use 2.0.2 but I couldn't understand why there is a reference to 1.5.1. I couldn't find it in the solution.

    Waiting for your feedback.

    Thanks.