Could not load file or assembly 'sapnco' or one of its dependencies. An attempt was made to load a program with an incorrect format
问题 I have got this error while I am using SAP .NET Connector 3.0 x64. I couldn't find any solution at stackoverflow, so I d like to share here for others who stuck at same problem like me. 回答1: Run > Regedit HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1X.0\WebProjects Change Use64BitIISExpress from 0 to 1 Restart Visual Studio and IISExpress. 回答2: In VS 2017 I was able to resolve this by setting the Bitness to "x64" for IIS Express in the server section under the project web properties. I