can not use this package in .net frame work but can use in dotnet core?

mc 6,476 Reputation points
2023-06-26T10:17:08.2166667+00:00

I want to use this package:

dotnet add package FaceRecognitionDotNet --version 1.3.0.7


error:HRESULT:0x8007000BBadImageFormatException

but it is not useable in .netframework web application why?

it can use in dotnet 7.

today I test it in vs2019 not work. but work in vs2022 (not dotnet 7)

Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. QiYou-MSFT 4,341 Reputation points Microsoft External Staff
    2023-06-27T02:58:46.34+00:00

    Hi @mc

    First, check if the version supports this library.

    Test1

    Second, make sure you don't have 32-bit/64-bit conflicts.

    You can follow these steps to see if you are running 64-bit.

    Test2

    Test3

    Usually the problem is caused by 32-bit operation.

    Best Regards

    Qi You


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.