Invoke Code to read excel - VB Net error

Hi,

In the latest version and Windows legacy project, there seems the issue.
As workaround, how about convert to Windows project as the following post?

Regards,