Sample ASP.NET - Compilation Error

Extending PHP application with ASP.NET. Configuring ASP.NET to run Phalanger powered PHP code properly and efficiently.

Sample ASP.NET - Compilation Error

Postby dulfe » October 30th, 2013, 3:39 pm

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.
dulfe
 
Posts: 9
Joined: July 2nd, 2013, 6:38 pm

Re: Sample ASP.NET - Compilation Error

Postby Jakub Misek » October 30th, 2013, 5:46 pm

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.
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: Sample ASP.NET - Compilation Error

Postby dulfe » October 30th, 2013, 6:20 pm

OK... I changed:

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


to

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


and now it works.

Thanks.
dulfe
 
Posts: 9
Joined: July 2nd, 2013, 6:38 pm

Re: Sample ASP.NET - Compilation Error

Postby Jakub Misek » October 30th, 2013, 6:22 pm

Great! Thank you for giving us know.

Jakub
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 PHP/ASP.NET Web Applications

Who is online

Users browsing this forum: No registered users and 3 guests

cron

User Control Panel

Login

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 3 guests