Newbie: Failing to Run Web example after install

Discussion about the open-source Phalanger [?] project.

Newbie: Failing to Run Web example after install

Postby Anders2020 » June 30th, 2013, 10:55 pm

I installed the latest version from codeplex and choose to install web samples .

I have IIS7.5 on Windows 7 x64
please help
aspnet sample fails to run with this error but the other iis samples are running

Server Error in '/PhalangerSample_ASP.NET' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: PHP2004: Configuration error: Library assembly 'PhpNetClassLibrary, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb' could not be loaded. Dynamic wrapper 'E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' could not be loaded. Dynamic wrapper 'E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' could not be loaded. Could not load file or assembly 'file:///E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' or one of its dependencies. Access is denied.

Source Error:


[No relevant source lines]


Source File: Line: 0


Show Detailed Compiler Output:


Phalanger - the PHP Language Compiler - commencing compilation in a separate appdomain
Source files to compile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\42ba3df0\dd1919d5\App_Web_login.aspx.cdcab7d2.xstioddt.0.php
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\42ba3df0\dd1919d5\App_Web_login.aspx.cdcab7d2.xstioddt.1.php
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\42ba3df0\dd1919d5\App_Web_login.aspx.cdcab7d2.xstioddt.2.php
error PHP2004: Configuration error: Library assembly 'PhpNetClassLibrary, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb' could not be loaded. Dynamic wrapper 'E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' could not be loaded. Dynamic wrapper 'E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' could not be loaded. Could not load file or assembly 'file:///E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' or one of its dependencies. Access is denied.



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044
Anders2020
 
Posts: 3
Joined: June 30th, 2013, 10:52 pm

Re: Newbie: Failing to Run Web example after install

Postby Jakub Misek » July 1st, 2013, 12:47 pm

Please ensure directory 'E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\' is writeable by your IIS worker process.

Let me know if it works for you, Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Newbie: Failing to Run Web example after install

Postby Anders2020 » July 1st, 2013, 2:16 pm

OK will give a try now I had only granted read - execute to IIS AppPool\PhalangerAppPool
Anders2020
 
Posts: 3
Joined: June 30th, 2013, 10:52 pm

Re: Newbie: Failing to Run Web example after install

Postby Anders2020 » July 1st, 2013, 2:26 pm

NO CHANGE same error.

IIS WOrker process is IIS AppPool\PhalangerAppPool is this correct??
Anders2020
 
Posts: 3
Joined: June 30th, 2013, 10:52 pm

Re: Newbie: Failing to Run Web example after install

Postby Jakub Misek » July 2nd, 2013, 7:22 am

It is correct. The folder should have write access already, so this was just for sure.

Please can you check, whether 'E:\Lang\NetTools\Web\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' exists?

Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Newbie: Failing to Run Web example after install

Postby dulfe » July 2nd, 2013, 6:48 pm

I have the same error, but it does not make any reference to dynamic.dll

I am using Windows 8 x64 PRO with IIS 8

Code: Select all
Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: PHP2014: Syntax error: unexpected token '('

Source Error:


Line 54:             
Line 55:             [\AppStatic]
Line 56:             private static $__PageInspector_SetTraceDataMethod = \ASP\login_aspx::__PageInspector_LoadHelper("SetTraceData");
Line 57:             
Line 58:             [\AppStatic]

Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\5065b042\9c2cba7d\App_Web_login.aspx.cdcab7d2.juyyurjh.0.php    Line: 56


Show Detailed Compiler Output:


Phalanger - the PHP Language Compiler - commencing compilation in a separate appdomain
Source files to compile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\5065b042\9c2cba7d\App_Web_login.aspx.cdcab7d2.juyyurjh.0.php
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\5065b042\9c2cba7d\App_Web_login.aspx.cdcab7d2.juyyurjh.1.php
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\5065b042\9c2cba7d\App_Web_login.aspx.cdcab7d2.juyyurjh.2.php
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\5065b042\9c2cba7d\App_Web_login.aspx.cdcab7d2.juyyurjh.0.php(56,109): error PHP2014: Syntax error: unexpected token '('
dulfe
 
Posts: 9
Joined: July 2nd, 2013, 6:38 pm

Re: Newbie: Failing to Run Web example after install

Postby Dewey » July 9th, 2013, 11:42 pm

I too am having this problem on Windows 2003 Server. The error I have is shown below.

Code: Select all
Compilation Error
  Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

 Compiler Error Message: PHP2004: Configuration error: Library assembly 'PhpNetClassLibrary, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb' could not be loaded. Dynamic wrapper 'C:\Program Files\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' could not be loaded. Dynamic wrapper 'C:\Program Files\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll' could not be loaded. The specified user does not have a valid profile. Unable to load 'file:///C:\Program Files\Phalanger 3.0\Dynamic\PhpNetClassLibrary.dynamic.dll'.
Dewey
 
Posts: 6
Joined: July 9th, 2013, 11:34 pm

Re: Newbie: Failing to Run Web example after install

Postby Jakub Misek » July 10th, 2013, 12:23 pm

It seams like similar issue I've found on Win2003 - https://groups.google.com/d/msg/cs-scri ... R0DHDZIo8J

According to this, Application pool's identity must be set to NetworkService, and not to ApplicationPoolIdentity (default).
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 1 guest

cron

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 124 on September 25th, 2020, 6:57 am

Users browsing this forum: No registered users and 1 guest