Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1861
| From | Trevor <trevorREMOVE@holyoak.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: COM and DOTNET on Windows Server 2008 R2 64 bit |
| Date | 2011-05-26 16:26 -0600 |
| Organization | A noiseless patient Spider |
| Message-ID | <irmk2h$5i5$1@dont-email.me> (permalink) |
| References | <irmfsj$a96$1@dont-email.me> |
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
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web