Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1860 > unrolled thread

COM and DOTNET on Windows Server 2008 R2 64 bit

Started byTrevor <trevorREMOVE@holyoak.com>
First post2011-05-26 15:14 -0600
Last post2011-05-26 16:52 -0600
Articles 3 — 1 participant

Back to article view | Back to comp.lang.php


Contents

  COM and DOTNET on Windows Server 2008 R2 64 bit Trevor <trevorREMOVE@holyoak.com> - 2011-05-26 15:14 -0600
    Re: COM and DOTNET on Windows Server 2008 R2 64 bit Trevor <trevorREMOVE@holyoak.com> - 2011-05-26 16:26 -0600
      Re: COM and DOTNET on Windows Server 2008 R2 64 bit Trevor <trevorREMOVE@holyoak.com> - 2011-05-26 16:52 -0600

#1860 — COM and DOTNET on Windows Server 2008 R2 64 bit

FromTrevor <trevorREMOVE@holyoak.com>
Date2011-05-26 15:14 -0600
SubjectCOM and DOTNET on Windows Server 2008 R2 64 bit
Message-ID<irmfsj$a96$1@dont-email.me>
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

[toc] | [next] | [standalone]


#1861

FromTrevor <trevorREMOVE@holyoak.com>
Date2011-05-26 16:26 -0600
Message-ID<irmk2h$5i5$1@dont-email.me>
In reply to#1860
I just tried running php from the commandline, and my assembly works 
fine - using the same php script that doesn't work in my browser. I'm 
starting to think it might be some kind of security problem?

- Trevor

On 5/26/2011 3:14 PM, Trevor wrote:
> 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

[toc] | [prev] | [next] | [standalone]


#1862

FromTrevor <trevorREMOVE@holyoak.com>
Date2011-05-26 16:52 -0600
Message-ID<irmljl$eev$1@dont-email.me>
In reply to#1861
Huh. Restarting Apache fixed it. Now I have no idea which thing it was 
that I did that made it work.

- Trevor

On 5/26/2011 4:26 PM, Trevor wrote:
> I just tried running php from the commandline, and my assembly works
> fine - using the same php script that doesn't work in my browser. I'm
> starting to think it might be some kind of security problem?
>
> - Trevor
>
> On 5/26/2011 3:14 PM, Trevor wrote:
>> 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web