Update my post:
My Computer Administrator granted me the Administrator Privilege on my Windows XP Pro PC that is on Microsoft Windows NT 4 LAN System. I have no URS in my PC and I just use my local host of Internet to do/learn the VWD Express applications.
This morning, I entered my C:\Documents and Settings\e1enxshc\My Documents\Visual Studio 2005\Projects\Presidents and deleted all the folder (App_Data), files (Book.aspx, Default.aspx, MasterPage.master), Presidents.sln and web.config (I created before) and copied the book publisher's (App_Data), files (Book.aspx, Default.aspx, MasterPage.master), Presidents.sln and web.config to this C:\Documents and Settings\e1enxshc\My Documents\Visual Studio 2005\Projects\Presidents. Then I started my VWD Express program and opened the Presidents project => I did "Build" and "Execute" the Book.aspx via the local host and I got the the following error:
Server Error in '/Presidents' Application.
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PersonID'.
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.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PersonID'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[HttpException (0x80004005): DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'PersonID'.]
System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +354
System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName, String format) +32
System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) +462
System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +81
System.Web.UI.WebControls.ListControl.PerformSelect() +32
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +99
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +92
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +33
System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +31
System.Web.UI.Control.PreRenderRecursiveInternal() +148
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Control.PreRenderRecursiveInternal() +233
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4437
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Please help and advise me in resolving this problem.
Thanks,
Scott Chang
Scott Chang