ADODBCould not load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly

后端 未结 6 790
渐次进展
渐次进展 2020-12-09 03:07

I\'m trying to read an ADOBD.Recordset object like this (my first time, so pardon my \"noobness\" :D):

Presentation.Category categorySvc = new Presentation.C         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-09 03:49

    It's on the individual references - not in the project properties. In the solution explorer window, open "References" (under the project), and click on the reference in question. The properties window will have an option for Embed Interop Types (for each reference).

    In Visual BAsic 2010:

    To turn off Embed Interop Types:

    Project menu > Show All Files, Solution Explorer: > References: > ADODB > Embed Interof types = False. Microsoft.Office.Interop.Access > Embed Interof types = False

    You will now be able to publish and also ADODB will appear in the: Project Menu > Project Properties… Publish TAB > Application Files

提交回复
热议问题