Base solution for your next web application
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.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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

    Use IFormFile in .NET Core 2.0.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    pankajmathur created

    Thanks!!! We are now using IFormFile

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)