COM and DOTNET on Windows Server 2008 R2 64 bit [message #174207] |
Thu, 26 May 2011 21:14 |
Trevor
Messages: 11 Registered: February 2011
Karma:
|
Junior Member |
|
|
On a test server, using Windows Server 2003 R2 with Apache, I am able to
use COM and DOTNET functionality. (Although I actually ended up using
the UniversalCCW library which provides a COM wrapper around any .Net
assembly in order to do what I needed.)
I'm now trying to get this stuff working on our production server, using
Windows Server 2008 R2 64 bit. I'm using these lines of code (which
again, works fine on the other server):
$COM = new COM("Universal_CCW.Universal_CCW_Factory");
$asmb_full_name = "uucrypto, Version=1.0.0.2, Culture=Neutral,
PublicKeyToken=d3356e74613fd6c5";
$crypto = $COM->New_Object("test", $asmb_full_name, "uu.uucrypto");
I get the following error when it gets to the 3rd line above:
1 Fatal error: Uncaught exception 'com_exception' with message 'Source:
mscorlib Description: Could not load file or assembly 'uucrypto,
Version=1.0.0.2, Culture=neutral, PublicKeyToken=d3356e74613fd6c5' or
one of its dependencies. The system cannot find the file specified.' in
test.php:21 Stack trace: #0 test.php(21): com->New_Object('test',
'uucrypto, Versi...', 'uu.uucrypto') #1 {main} thrown in test.php on line 21
The same assembly works fine on the same server from a simple test
program I made in C#.
I've tried everything I can find to try. I even just tried the DOTNET
function to see if it would work, but that also didn't work. I got the
following error:
1 Fatal error: Class 'DOTNET' not found in test.php on line 16
Is there something I need to do to turn this stuff on??
Thanks,
Trevor
|
|
|