Page 1 of 1

Sample ASP.NET - Compilation Error

PostPosted: October 30th, 2013, 3:39 pm
by dulfe
I have tried to make this work many times and always get the same error.

I completely uninstalled Phalanger, installed it, and when I try to execute the ASP.NET sample I get this error:

Code: Select all
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: 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.y8d7vr8r.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.y8d7vr8r.0.php
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\5065b042\9c2cba7d\App_Web_login.aspx.cdcab7d2.y8d7vr8r.1.php
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\phalangersample_asp.net\5065b042\9c2cba7d\App_Web_login.aspx.cdcab7d2.y8d7vr8r.2.php
C:\Windows
 


I tried giving Full Access permissions to DefaultAppPool in C:\Program Files (x86)\Phalanger 3.0\WebRoot\Samples\ASP.NET but still does not work.

The DYNAMIC folder does not get created neither.

I tried changing the user to NETWORK SERVICE... no dice.

Any ideas?

I am using Windows 8.1 Pro x64 (I also tried with Windows 8 Pro)

Thanks.

Re: Sample ASP.NET - Compilation Error

PostPosted: October 30th, 2013, 5:46 pm
by Jakub Misek
Hi,

Thank you for the feedback!

This is caused by Visual Studio PageInspector component. It tries to create following property
Code: Select all
private static $__PageInspector_SetTraceDataMethod = \ASP\login_aspx::__PageInspector_LoadHelper("SetTraceData");
which cannot be parsed in PHP.

We can disable this feature for now.

Re: Sample ASP.NET - Compilation Error

PostPosted: October 30th, 2013, 6:20 pm
by dulfe
OK... I changed:

Code: Select all
<compilation debug="true" />


to

Code: Select all
<compilation debug="false" />


and now it works.

Thanks.

Re: Sample ASP.NET - Compilation Error

PostPosted: October 30th, 2013, 6:22 pm
by Jakub Misek
Great! Thank you for giving us know.

Jakub