Failed to load Oracle.ManagedDataAccessDTC.dll or its dependencies

Source: Internet
Author: User

The first project was finished, delivered to the test, tested, encountered a bunch of problems, of course not procedural, but environmental!

This project was developed with EF 5 + MVC5 + Oracle 11.

Drive is oracle.manageddataaccess, local win7/8.1 run a little problem. This afternoon packed to WIN 2008, after solving a lot of environmental problems, a big problem arose:

Could not load file or assembly ' Oracle.ManagedDataAccessDTC.dll ', what Pspmanager: ctor or something.

The problem arises because TransactionScope is used in some places.

The drive is unloaded, re-loaded n back, restarted n back, does not help.

Put this DLL into the Bin, run the website directly on the error, or can not load.

The Oracle official documentation only says not to directly refer to this DTC.dll, will be automatically called by manageddataaccess, to distinguish between 32-bit and 64-bit, the other basic did not mention.

Google and Bing can find a few related posts, but none of the results. Not to mention the degree Niang.

The pspmanager of what was reported. Ctor looked at it with the Anti-compilation tool, and there was no class like that.

But there's a microsoft.visualc quote.

There is a 11.0.xxx version of the local GAC (C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualC),

Against that test server, we found only a 8. Version of XXX.

Try to take the local test past, run the same results, no use.

See Overtime work 3.5 hours, plus an afternoon time, all the whole fast 8 hours, not good this thing, the heart of the nasty.

Search the C + + runtime, under a 64-bit

Microsoft Visual C + + SP1 Redistributable Package (x64)

http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=13523

Install, restart the site, test, pass!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.