Page 1 of 1

Phalanger Tools compiled project not running in IIS

PostPosted: February 13th, 2015, 12:43 am
by Pirazi
Hi I'm new to phalanger and phalanger tools,

I'm trying to create a website that uses an assembly I've compiled. It seems to work fine in Visual Studios 2013.

But when I go to deploy it in IIS, I'm getting a class not found exception.

The steps I've taken:

1) Add the dll as a reference in the project.
2) compile project in release mode.
3) Copied the /bin directory, index.php and web.config to the server root

Error: Class 'TestClass/class1' not found in ...

What am I missing? Do I need to add something to the webconfig?

Thanks

Re: Phalanger Tools compiled project not running in IIS

PostPosted: February 22nd, 2015, 9:47 am
by Jakub Misek
Hi,

Phalanger compiles php files into DLL, so you don't have to copy index.php and other .php files to your root.

Copy DLL files from your BIN folder. Additional references should be added to web.config as follows:
Code: Select all
<phpNet>
    <scriptLibrary>
      <add url="bin/mydll.dll" />
    </scriptLibrary>
</phpNet>