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

Error for excel file import #3988


User avatar
0
pankajmathur created

Hi,

We are getting a following exception when trying to upload an excel file containing the records for import.

<ins>Could not create an instance of type 'SecuritySwitch.Abstractions.HttpPostedFileBase'. Model bound complex types must not be abstract or value types and must have a parameterless constructor.</ins>

We have enabled hangfire for the background processing and facing this issue in .Net Core 2.0.


2 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Use IFormFile in .NET Core 2.0.

  • User Avatar
    0
    pankajmathur created

    Thanks!!! We are now using IFormFile