Problems writing to database from ASP.NET

Problems writing to database from ASP.NET

am 03.05.2007 22:07:01 von HarrisonSchofill

I'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

Re: Problems writing to database from ASP.NET

am 03.05.2007 22:40:15 von reb01501

Harrison Schofill wrote:
> I'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?
>
There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice), but this is a classic asp newsgroup. ASP.Net is
a different technology from classic ASP. While you may be lucky enough
to find a dotnet-savvy person here who can answer your question, you
can eliminate the luck factor by posting your question to a newsgroup
where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.

Even if we did deal with .Net stuff here, I doubt anyone could help
given the information you've provided. Some code would help, especially
if the code provided contained the line of code that causes the error.


HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.