Phalanger
Phalanger copied to clipboard
Node cannot be used in configuration file located on virtual path ':machine:' because it defines application wide configuration.
After fallowing tutorial here http://wiki.phpcompiler.net/Installation/3.0/Linux under Ubuntu 12.04 Version information: Mono Runtime Version: 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.1); ASP.NET Version: 4.0.30319.1
i get exception:
[System.Reflection.TargetInvocationException]: Exception has been thrown by the target of an invocation. at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x00000] in <filename unknown>:0 at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0 at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0 at PHP.Core.ConfigurationSectionHandler.GetConfig (PHP.Core.ApplicationContext appContext, System.String sectionName) [0x00000] in <filename unknown>:0 at PHP.Core.Configuration.Load (PHP.Core.ApplicationContext appContext) [0x00000] in <filename unknown>:0 at PHP.Core.Configuration.Reload (PHP.Core.ApplicationContext appContext, Boolean reloadFromFile) [0x00000] in <filename unknown>:0 at PHP.Core.ScriptContext.InitWebRequest (PHP.Core.ApplicationContext appContext, System.Web.HttpContext context) [0x00000] in <filename unknown>:0 at PHP.Core.RequestContext.Initialize (PHP.Core.ApplicationContext appContext) [0x00000] in <filename unknown>:0 at PHP.Core.RequestContext.Initialize (PHP.Core.ApplicationContext appContext, System.Web.HttpContext context) [0x00000] in <filename unknown>:0 at PHP.Core.RequestHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] in <filename unknown>:0 at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0 [System.Configuration.ConfigurationErrorsException]: Node cannot be used in configuration file located on virtual path ':machine:' because it defines application wide configuration. at PHP.Core.PhpConfigurationContext.EnsureApplicationConfig (System.Xml.XmlNode node) [0x00000] in <filename unknown>:0 at PHP.Core.ConfigurationSectionHandler.Create (PHP.Core.PhpConfigurationContext parent, System.Web.Configuration.HttpConfigurationContext context, System.Xml.XmlNode section) [0x00000] in <filename unknown>:0 at PHP.Core.ConfigurationSectionHandler.Create (System.Object parent, System.Object configContext, System.Xml.XmlNode section) [0x00000] in <filename unknown>:0
while trying to execute file a.php
:
`
The exception message is little bit short. The info you suggested would be very helpful, virtual path is already there, node name will be filled in.
In this case it is bug, where Phalanger gets incorrect virtual path in HttpConfigurationContext (mod_mono?apache?phalanger?).