Page 1 of 1

Error starting the php site for the first time

PostPosted: July 29th, 2014, 7:07 pm
by Alecu
I just started a phalanger project in visual studio. When I start the website in a site I get the following error:

[A]PHP.Core.PhpConfigurationContext cannot be cast to [B]PHP.Core.PhpConfigurationContext. Type A originates from 'PhpNetCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PhpNetCore\v4.0_3.0.0.0__0a8e8c4c76728c71\PhpNetCore.dll'. Type B originates from 'PhpNetCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PhpNetCore\v4.0_4.0.0.0__0a8e8c4c76728c71\PhpNetCore.dll'.


Any ideas?

Re: Error starting the php site for the first time

PostPosted: August 6th, 2014, 10:26 am
by Jakub Misek
hi,

You have installed/using both Phalanger 3.0 and 4.0 which causes conflicts in .NET.

Please uninstall version 3.0 and reset your IIS.

thanks,