PHP Personal Website Error.

Discussion about the open-source Phalanger [?] project.

PHP Personal Website Error.

Postby integrax@codeplex » October 23rd, 2009, 10:45 pm

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:

Line 229:Line 230:		public static function GetRandomAlbumID() {Line 231:			$connection = new SqlConnection(ConfigurationManager::$ConnectionStrings->get_Item("Personal")->ConnectionString); {Line 232:				$command = new SqlCommand("GetNonEmptyAlbums", $connection); {Line 233:					$command->CommandType = CommandType::StoredProcedure;


Source File: E:\PhpPersonal\App_Code\PhotoManager.php    Line:231

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]   System.Configuration.ConfigurationElement.get_Item(String propertyName) +681066   <^>.get_Item(Object , PhpStack ) +440   PHP.Core.Reflection.DRoutineDesc.Invoke(DObject instance, PhpStack stack) +43   PHP.Core.Reflection.DRoutineDesc.Invoke(DObject instance, PhpStack stack, DTypeDesc caller) +37   PHP.Core.Reflection.DObject.InvokeMethod(String name, DTypeDesc caller, ScriptContext context) +507   PHP.Core.Operators.InvokeMethod(Object x, String methodName, DTypeDesc caller, ScriptContext context) +145   PhotoManager.GetRandomAlbumID(ScriptContext <context>) in E:\PhpPersonal\App_Code\PhotoManager.php:231   PhotoManager.GetPhotos(ScriptContext <context>, Object AlbumID) in E:\PhpPersonal\App_Code\PhotoManager.php:87   PhotoManager.GetPhotos() +58[TargetInvocationException: Exception has been thrown by the target of an invocation.]   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0   System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +350   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29   System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +488   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1247   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73   System.Web.UI.WebControls.FormView.DataBind() +4   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82   System.Web.UI.WebControls.FormView.EnsureDataBound() +166   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72   System.Web.UI.Control.EnsureChildControls() +87   System.Web.UI.Control.PreRenderRecursiveInternal() +44   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842



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

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 17 guests

cron

User Control Panel

Login

Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 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 17 guests