C# - PhpReference prolem
1 post
• Page 1 of 1
C# - PhpReference prolem
I'm trying to use phalanger in an application in wich i need to use both php and c# pages. Everything works fine, but after i execute any page in .php with phalanger, when i try to run any c# page i receive an error saying that the type 'PHP.Core.PhpReference' can't be converted in 'MXM.Connection.AmbienteList'. It happens when i try to make this cast:
protected void Page_Load(object sender, EventArgs e)
{
UsuarioPresenter UP = new UsuarioPresenter(((AmbienteList)Session[0]), this);
}
From what i understood, phalanger must have converted Session[0] wich is originally of type 'object' to this 'PHP.Core.PhpReference' and is not converting it back... Is there any way to work this out?
protected void Page_Load(object sender, EventArgs e)
{
UsuarioPresenter UP = new UsuarioPresenter(((AmbienteList)Session[0]), this);
}
From what i understood, phalanger must have converted Session[0] wich is originally of type 'object' to this 'PHP.Core.PhpReference' and is not converting it back... Is there any way to work this out?
- samuelmpmac@codeplex
- Posts: 1
- Joined: January 7th, 2012, 8:53 pm
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 23 guests