Problems writing to database from ASP.NET
am 03.05.2007 22:07:01 von HarrisonSchofillI've got a developer who is running into problems getting a web app to write
to a SQL database. I am posting his error message. Any ideas?
Server Error in '/CTRS Web' Application.
------------------------------------------------------------ --------------------
Could not find a property named 'Account Number' on the type specified by
the DataObjectTypeName property in ObjectDataSource 'ObjectDataSource1'.
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.InvalidOperationException: Could not find a
property named 'Account Number' on the type specified by the
DataObjectTypeName property in ObjectDataSource 'ObjectDataSource1'.
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:
[InvalidOperationException: Could not find a property named 'Account Number'
on the type specified by the DataObjectTypeName property in ObjectDataSource
'ObjectDataSource1'.]
System.Web.UI.WebControls.ObjectDataSourceView.BuildDataObje ct(Type
dataObjectType, IDictionary inputParameters) +486
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteUpdate (IDictionary
keys, IDictionary values, IDictionary oldValues) +1328
System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values,
IDictionary oldValues, DataSourceViewOperationCallback callback) +78
System.Web.UI.WebControls.GridView.HandleUpdate(GridViewRow row, Int32
rowIndex, Boolean causesValidation) +1215
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean
causesValidation, String validationGroup) +858
System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs
e) +95
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source,
EventArgs e) +117
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventA rgs e) +115
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(Stri ng
eventArgument) +163
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBack EventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102