Hallo,
diese Fehlermeldung verstehe ich nicht:
Concurrency violation: the UpdateCommand affected 0 records.
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.Data.DBConcurrencyException: Concurrency violation:
the UpdateCommand affected 0 records.
Source Error:
Line 669: // Save the changes
Line 670: adptOrganization =
(SqlDataAdapter)Session["adptOrganization"];
Line 671: adptOrganization.Update(dsOrganization);
Line 672:
Line 673: // Delete RowOid
Source File:
d:\dm\operating\project\zk\prod\web\manage\organization\delete.aspx.cs Line:
671
Stack Trace:
[DBConcurrencyException: Concurrency violation: the UpdateCommand affected 0
records.]
System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping
tableMapping) +1669
System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
+152
System.Data.Common.DbDataAdapter.Update(DataSet dataSet) +11
DM.ZK.Manage.Organization.Delete.btnSave_Click(Object sender, EventArgs e)
in d:\dm\operating\project\zk\prod\web\manage\organization\delete.aspx.cs:671
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,
String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
Sie tritt an folgender Stelle auf:
...
// Checks are ok, so save the record
row.ValidTo =
Convert.ToDateTime(txtValidTo.Text.Trim());
row.ChangedAt = DateTime.Now;
row.ChangedBy = Session["PrincipalName"].ToString();
// Update database
try
{
// Save the changes
adptOrganization =
(SqlDataAdapter)Session["adptOrganization"];
----> hier Fehlerzeile: adptOrganization.Update(dsOrganization);
}
Der Datensatz ist vorhanden, es k�nnen auch Werte zugewiesen werden, aber der
Update der Datenbank klappt nicht, sogar ohne dass in den Catch-Block gegangen
wird.
Ich wei� jetzt nicht, wo ich zu suchen anfangen soll. Habt ihr entsprechende
Vorschl�ge oder Ideen?
Henri
_______________________________________________
Asp.net Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/asp.net