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

Unable to compile aspnet-core after adding entities with RAD #5461


User avatar
0
tom.ohle created

I'm using the AspNetZeroAngular2 v5.6.1 solution template and generated entities using the RAD tool. I get the following error when attempting to build the solution after successfully adding the entities. What is the fix for this?

Severity Code Description Project File Line Suppression State Error CS7036 There is no argument given that corresponds to the required formal parameter 'cacheManager' of 'EpPlusExcelExporterBase.EpPlusExcelExporterBase(ICacheManager)'


9 Answer(s)
  • User Avatar
    0
    yekalkan created

    Hi @csegin, This is due to the change on EpPlusExcelExporterBase class. See <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/commit/ba94df721ab6fafc5adf27c1cc6ce48f593e6025">https://github.com/aspnetzero/aspnet-ze ... 8f593e6025</a>

    We'll release a new rad tool version that will also solve this issue today.

  • User Avatar
    0
    kiandra created

    Hello, I am facing the same problem. I have downloaded the latest aspnet-core + angular project (v5.6.2) and have the latest version of the RAD tools installed (v1.5.4). After I have scaffolded my first entity I try to compile the aspnet-core project however it fails with the error 'EpPlusExcelExporterBase' does not contain a constructor that takes 1 arguments.

    Looking at some of the default exporters (for example UserListExcelExporter) it looks like they are still using the old EpPlusExcelExporterBase that does not have a protected constructor with an ICacheManager parameter.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Is your EpPlusExcelExporterBase is same with <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/DataExporting/Excel/EpPlus/EpPlusExcelExporterBase.cs">https://github.com/aspnetzero/aspnet-ze ... terBase.cs</a> ?

  • User Avatar
    0
    kiandra created

    Hi there,

    Yes, it is the same as the version in the link you posted.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @kiandra, we will be releasing a new version for RAD tool probably on Monday to fix this issue <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1552">https://github.com/aspnetzero/aspnet-ze ... ssues/1552</a>.

    Until then, please modify the generated code to fix this problem. Sorry for this messy bug.

  • User Avatar
    0
    kiandra created

    No problem at all ismcagdas, thanks for the follow up.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This should be fixed with the latest version of RAD Tool by the way.

  • User Avatar
    0
    naurinrr created

    Hi I am still getting this issue in MVC + jQuery latest project and I downloaded the RAD tool today as well from here,

    [https://marketplace.visualstudio.com/items?itemName=Volosoft.AspNetZeroPowerTools])

    what do you suggest I do?

  • User Avatar
    0
    yekalkan created

    Hi @Naurinrr,

    Do you also get this error when creating a basic entity with only 1 property?