Could not load file or assembly 'Oracle.ManagedDataAccessDTC.DLL' or one of its dependencies

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: Could not load file or assembly 'Oracle.ManagedDataAccessDTC.DLL' or one of its dependencies

Could not load file or assembly 'Oracle.ManagedDataAccessDTC.DLL' or one of its dependencies

โดย jataz2 » 26/09/2019 3:29 pm

c# เชื่อมต่อ database oracle แล้ว error

Could not load file or assembly 'Oracle.ManagedDataAccessDTC.DLL' or one of its dependencies

วิธ๊คือให้ดูว่าโปรเจ็ค ของคุณตั้งค่า build เป็นแบบไหน x86 หรือ x64 ก็เลือก version ของ Oracle.ManagedDataAccessDTC.DLL ที่ build ตรงกันมาใช้ จากนั้น add reference หรือไม่ก็ copy ไปวางใน bin ด้วยตอน deploy ก็ได้มันจะได้หาเจอ

วิธีดูว่า project ของคุณตั้งค่าให้ build เป็นอะไร ก็คลิกขวาที่ชื่อ project กดเลือก Properties เลือกแท็บ Build -> ดูที่ Platform target

ข้างบน