PHP Personal Website Error.
PHP Personal Website Error.
I did install the PHP PWS template on VS2008 and when I try to execute on web borwser, I get this generic error:
Server Error in '/PHPPersonal' Application.
Object reference not set to an instance of an object.
Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
|
Source File: E:\PhpPersonal\App_Code\PhotoManager.php Line:231
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
<!-- [NullReferenceException]: Object reference not set to an instance of an object. at System.Configuration.ConfigurationElement.get_Item(String propertyName) at <^>.get_Item(Object , PhpStack ) at PHP.Core.Reflection.DRoutineDesc.Invoke(DObject instance, PhpStack stack) at PHP.Core.Reflection.DRoutineDesc.Invoke(DObject instance, PhpStack stack, DTypeDesc caller) at PHP.Core.Reflection.DObject.InvokeMethod(String name, DTypeDesc caller, ScriptContext context) at PHP.Core.Operators.InvokeMethod(Object x, String methodName, DTypeDesc caller, ScriptContext context) at PhotoManager.GetRandomAlbumID(ScriptContext <context>) in E:\PhpPersonal\App_Code\PhotoManager.php:line 231 at PhotoManager.GetPhotos(ScriptContext <context>, Object AlbumID) in E:\PhpPersonal\App_Code\PhotoManager.php:line 87 at PhotoManager.GetPhotos() [TargetInvocationException]: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) at System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at System.Web.UI.WebControls.FormView.DataBind() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.FormView.EnsureDataBound() at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at <^>.ProcessRequest(Object , PhpStack ) at PHP.Core.Reflection.DRoutineDesc.Invoke(DObject instance, PhpStack stack) at PHP.Core.Reflection.DRoutineDesc.Invoke(DObject instance, PhpStack stack, DTypeDesc caller) at PHP.Core.Operators.InvokeStaticMethod(DTypeDesc type, Object methodName, DObject self, DTypeDesc caller, ScriptContext context) at ASP._default_aspx.ProcessRequest(ScriptContext , Object context) in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\phppersonal\229520bc\45d3f300\App_Web_mxudt11b.10.php:line 1394 at ASP._default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->
I also have VB PWS installed on VS2005 standard and it runs on the same W2K3 server without any problem.
I think the getrandomalbumID function on PhotoManager.php has a miss spell, but I'm VB not PHP.
Does any body have been experienced this issue also?
Thanks for your help.
- integrax@codeplex
- Posts: 1
- Joined: January 7th, 2012, 8:52 pm
Who is online
Users browsing this forum: No registered users and 10 guests