Silverlight 2: How to abort a WCF operation

I have a Silverlight 2 application that calls a WCF Service that invokes a database stored procedure. The query could take several minutes to process and I want to provide a cancel button on the client UI.

How do I properly abort the WCF operation that was called? What is the best practice?

Category:wcf Views:0 Time:2009-01-22

Related post

  • asp.net: calling asp page while wcf operation is processing 2011-12-13

    I have a web application consists of several aspx pages + wcf service (one project) and a silverlight app. I have the following problem: I open silverlight app, it does async call to my long wcf service operation. While it is processing I can't reque

  • Are there any guarantees about when IIS might recycle while processing a 1-way WCF operation? 2008-11-28

    Background This question is in two parts. I have a one-way WCF operation hosted in IIS 6. The following is my understanding of how this works: _1. IIS receives a request. _2. IIS sends an HTTP 202 response (thanks, I'll process this later). _3. IIS c

  • Programatically configure individual WCF operations with different WCF configurations 2009-01-16

    I am just getting started with WCF and would like to set up a distributable networked system as follows: (but am not sure if it is possible.) I have a .net client that has business logic. It will need various data from various sources so I would like

  • Hooking into a WCF operation 2009-02-26

    I need to hook into the WCF operation process to execute some code right before and right after each operation. Some context: I already have a custom servicehost, servicehostfactory and servicebehavior all my services are based on a common base class

  • WCF Operation Logging 2009-09-15

    I'd like to log the performance of our WCF operations, in particular if an operation takes longer to execute than a given threshold it creates a warning in a log. We have started by implementing IDispatchMessageInspector which allows us to time each

  • Creating Async WCF operations in WCF +MVVM 2011-02-16

    I am trying to implement MVVM for my WPF application. I have WCF services for which I want to create a data Model. My WCF does not implement callbacks. I am having issues creating a Model for my Async WCF services. Please provide me some sample on ho

  • WCF Operation Serialization Collection Error 2011-03-10

    I'm returning a collection of DTO objects from a WCF operation. I get the following error on the service (this only happens occasionally) Error: Collection was modified; enumeration operation may not execute. Stack Trace: at System.ThrowHelper.ThrowI

  • How can I tell when a WCF operation is being called 2011-03-16

    I have a WCF operation which is like this, public bool SubmitDocument(byte[] document) So the idea is that the caller will serialise a document, and call the operation above. It then gets put into our database. I am trying to understand the internal

  • Large string argument in WCF operation call 2011-05-19

    I am unable to pass a string as an argument to a WCF operation call. The string is quite large (about 12000 characters). I have increased maxStringContentLength in web.config and played around with almost all the attributes but the problem still rema

  • Is there a standard way to use attributes to modify how WCF operations behave? 2011-07-07

    I'm working on some funky code right now, and I've been wondering whether or not I can use attributes to modify how a WCF operation behaves, like maybe make it perform additional checking or make it skip some logic. For example, if we had the followi

  • WCF Operation not supported in WCF Test Client because it uses type 2011-08-24

    When I try to import a WSDL (http://ns.hr-xml.org/schemas/org_hr-xml/3_0/Services/Web_Services/WSDL/TimeCard.wsdl) via WCF Test Client I get the " WCF Operation not supported in WCF Test Client" because it uses type " error message as shown on screen

  • Why aren't my JSON values appearing in my WCF operation? 2011-09-15

    I am having problems getting values to my WCF operation from my JQuery code. I have a WCF operation with the following declaration: [OperationContract] [WebGet(BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, Res

  • Stackoverflow Calling My WCF Operation Only from WCFTestClient 2012-01-21

    I'm calling a WCF operation and was running into the classic circular reference issue where my primary object (Persons) included a reference to another object (Reminders) which I need to contain a reference back to Persons. I fixed this using Referen

  • How to create an async/background process within a WCF operation? 2012-04-25

    In my WCF operations I will do the logic necessary for the operation: save a record, get a dataset, etc. and in some cases I need to log the activity as well. However, in these cases I feel that there is no point in having the client application wait

  • Cancel WCF operation on client abort 2011-06-17

    I have a silverlight client that can call a method on my WCF web service to get values from a database. In the case of long query, I want to give the user the option to cancel it. Client side, when the user press "Cancel", I call ".Abort()" on my WCF

  • Call synchronous WCF operation contract methods asynchronously on silverlight 2011-10-04

    We are consuming wcf services on the silverlight application trough creating proxies using ChanellFacotry. The Operation and Data contracts are exposed to silverlight trough assembly, which is consist of shared files from serverside Data and Operatio

  • WCF timout that abort the current operation? 2012-03-02

    I have tried to set sendTimeout, receiveTimeout and the httpRuntim executionTimeout on our WCF (IIS7/TCP/WAS) application service. The timeout works but the operation will continue to run, what we need is to get the operation aborted. In this case th

  • Silverlight 2 - Adding database records using WCF 2009-02-23

    I'm creating a simple Silverlight 2 application - a guestbook. I'm using MSSQL as the data source, I've managed to load the data but I can't find out how to add new rows (messages) to the database. I crawled all the internet but didn't find any worki

  • Silverlight 4.0 + MVC 2.0 + WCF RIA Services + EF 4.0 = Load Error 2009-12-28

    I'm trying to buid a site with the following: VS 2010 (for the updated WCF RIA Services) Silverlight 4.0 (packaged with WCF RIA Services). MVC 2 EF 4.0 I am setting it up so that the public facing pages will be html from MVC, but the administration p

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.163 (s). 11 q(s)