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!