Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6888701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:03:36+00:00 2026-05-27T06:03:36+00:00

EDIT: I have now discovered the problem is with my WCF service getting dirty

  • 0

EDIT: I have now discovered the problem is with my WCF service getting dirty reads. Please see my other post. I’d still appreciate any advice on stuff I can improve in this post (such as a simple spelling mistake on my JS or a better way to update a partial view).

Other post: Linq to SQL – Dirty Reads after Updating – WCF Service

EDIT: Ok I’ve narrowed it down to a problem on the web service. I wrote a small application that uses my service reference to read and update Locations. Sometimes when I read a location, it Location name will change to an old name and I’ll get the error ChangeConflictException: row not found or changed.

Ok basically I have an MVC view with a form and 2 partial views (a drop down list and a DevExpress MVC Extensions TreeView). When a user clicks on a node, it calls a client side JS function that makes an Ajax POST to the server, gets the Node details (from the JSON result), and populates the form.

When the user clicks ‘Submit/Save’, another JS function is called and it also makes an Ajax POST to the server, passing in the node info. When that post returns with a JSON result, a JQuery GET request is made to the server. It gets the partial view as an html string, then replaces the TreeView with the new HTML.

This all seems to be working, except if I change a Node name from Node1 to Node2 to Node3, I sometimes get Node1 in the TreeView, Node3 in the DropDown, and Node2 in the form when I click on this “Node1” in the TreeView. Yet it’s all coming from the database, which has the correct information. And each time a Node is clicked or saved, the Model gets refreshed with the latest data from the database. When I check in the code behind, sometimes that updated model is wrong (e.g. says Node2 instead of Node3).

Why is this happening? I’ve tried clearing my browser cache, adding no-cache attributes to my controller (from other Stack Overflow questions). I have no idea what is going on! Sometimes if I just keep hitting refresh on the page, the tree view and drop down list change to previous values (e.g. Node1)!

Note: Node == Location == Unit (the DB table/entity I’m working with).

Note: the database has a trigger on the Location (the Nodes of the tree).

Note: the server uses WCF to communicate to the database.

Note: the .Using for the service is an extension that makes sure to properly closes the service client.

Edit: Removed code at the request of my co-worker.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:03:37+00:00Added an answer on May 27, 2026 at 6:03 am

    I resolved this. It was caused by caching on Structure Map that only became apparent when using WCF (because of WCF’s caching).

    Please see my other post: Linq to SQL – Dirty Reads after Updating – WCF Service

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[EDIT] I have now discovered the flaw in this approach. It works well when
EDIT: I have fixed all but two warnings now, so thank you all for
You may have noticed that we now show an edit summary on Community Wiki
Edit: I have solved this by myself. See my answer below I have set
EDIT: I have edited my post... Working on a project (c#), I have a
EDIT: I have realized the source of my problem. I only have count information
EDIT: I have submitted a bug report and Microsoft have acknowledge that it is
EDIT: I have added Slug column to address performance issues on specific record selection.
EDIT i have something like this in a file: imagecolor=0 arrayimagecolorcopy=0 arrayimagecolorcopy3d=0 when i
I won't want to have edit any working sets. I just want a way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.