How do I handle errors from a call to an http handler routine on the server?

I have written an http handler for the server. It is used for file uploads. It works fine.
However, if the server gets any kind of exception, I don't seem to get anything back in the Silverlight httpWebRequest.  It seems like something in the communications sees the exception as a  "server not found" type error.  And a
Dialog pops up that appears to NOT be my code that says the message.
For my WCF calls, I implemented a SilverlightFaultBehavior that switched the status code to OK and I was able to get the server exceptions from my WCF calls into my Silverlight app.
But how do I do that for an http handler?  What do I have to add, if anything to the server side and what do I need to do on the Silverlight client side?

How are you calling your service?
You should be doing asynchronous calls and supplying a callback with silverlight.
Check for errors in the callback.
FileListServiceReference.FileListServiceClient proxy = new ITSupport.FileListServiceReference.FileListServiceClient();
proxy.GetFileListCompleted += new EventHandler<ITSupport.FileListServiceReference.GetFileListCompletedEventArgs>(proxy_FileListCompleted);
proxy.GetFileListAsync(fileList);
void proxy_FileListCompleted(object sender, ITSupport.FileListServiceReference.GetFileListCompletedEventArgs e)
ObservableCollection<ImageVM> ims = new ObservableCollection<ImageVM>();
if (e.Error == null)
That does stuff if there's no errors and returns nothing if there are but you might want more sophisticated handling.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • How to solve this error from window phone 80073cf9 lumia 630.

    any one know how to solve this error from window phone 80073cf9  lumia 630.

    Hello Muhammad,
    We appreciate the post, but this forum is for Windows Store and Phone Developer related questions. Your question can best be answered through the
    Windows Phone support page.
    Thanks!
    -Jonathan
    Windows Store Developer Support
    Office Store Developer Support

  • Anyone seen this?!?  ORA-32103: error from OCI call

    Greetings all,
    Getting this error (ORA-32103: error from OCI call) when calling Environment::getCacheMaxSize() after calling Environment::createEnvironment(). The error is not listed in the Oracle documentation and I was wondering if anyone had seen it or knew what it meant.
    snippet
    Environment* env = Environment::createEnvironment(Environment::THREADED_MUTEXED);
    std::cout << "ok..\n";
    std::cout << "The env pointer:" << env << std::endl;
    std::cout << "ok..\n";
    std::cout << "Here is a Env variable:" << env->getCacheMaxSize() << std::endl;
    end snippet
    Many thanks,
    John Fauntleroy

    Thanks for the response!
    I've not been able to get to the connection stage of the process as the error occurs just after the createEnvironment() call.I believe the Evironment is not being created correctly for some reason but have no idea why because no exceptions are being thrown and the my testing only yields an unlisted error. ack, frustrating tstl! The error I'm getting is "ORA-32103: error from OCI call". ORA-32103 is not listed in the oracle error docs. ORA-32101 and ORA-32105 are listed but nothing in between. Is interesting...
    Anyone got some ideas?
    Best regards,
    John Fauntleroy

  • Mount_smbfs: error from NetrShareEnum call: exception = 382312522

    mount_smbfs: error from NetrShareEnum call: exception = 382312522
    when i trying to connect to xp network
    who is guru there?

    Perchance, does this happen after "Sleep"?
    Or maybe a non blank PW for the latest XP Security upgrades?
    http://ask-mark.com/ravings/2007/11/01/shibboleth

  • How do we send photos from an iphone to a business email so that the photo shows up as an attachment vs. a part of the body of the email?

    How do you email photos from an iphone to a business email so that the photo shows up as an attachment vs. a part of the body of the email?

    Eric, thanks for the info about the pictures, it worked.   The mail icon is not the one that came with the mac(it looks like a stamp with an eagle) this appears at a notepad with a ruler,paintbrush and pencil.  I can not open it, I did not download it and now I can not turn off the computer with shutdown I have to manually turn if off by pressing the power button.   This can not be normal.  Any suggestions.  thanks,  Ellen

  • How do I delete photos from iPod Touch?  Some photos do not have the trash basket option!

    How do I delete photos from iPod Touch?  Some photos do not have the trash basket option!
    When I first synced my iPod Touch with my laptop, it uploaded a lot of photos onto the iPod.  I now wish to delete those but it does not seem as a straight forward option!

    For photos synced to the iPod you have to unsync them:
    To delete photos from your device
    In iTunes, select the device icon in the Devices list on the left. Click the Photos tab in the resulting window.
    Choose "Sync photos from."
    On a Mac, choose iPhoto or Aperture from the pop-up menu.
    On a Windows PC, choose Photoshop Album or Photoshop Elements from the pop-up menu.
    Choose "Selected albums" and deselect the albums or collections you want to delete.
    Click Apply.
    http://support.apple.com/kb/HT4236

  • How do I delete movies from iTunes library? I have moved them to the iCloud and now only seem to have the option to hide the icon in iCloud.  I am sure I chose poorly at the 'keep file' window.  Please help. My Brain hurts- 18   movies need to go-.

    How do I delete movies from iTunes library? I have moved them to the iCloud and now only seem to have the option to hide the icon in iCloud.  I am sure I chose poorly at the 'keep file' window.  Please help. My Brain hurts… 18 plus movies need to go….  Thank you.

    Instead of removing the music from the cloud or the iTunes library why not shuffle your music using a Smart Playlist which excludes the holiday music, or tracks that are not checked. For example, use this very simple Smart Playlist:

  • I found how to delete a series from my ipad, but it still won't download the last episode of the new series I am trying to have.  What have I done wrong?

    I found how to delete a series from my ipad, but it still won't download the last episode of the new series I am trying to have.  What have I done wrong?

    What is the GarageBand version that your friend is using?
    If it is GarageBand '11, version 6.0.5, you can buy GarageBand '11 as a boxed retail version with the iLIfe '11 bundle, e.g. from Amazon.
    Then you can upgrade GarageBand '11 to 6.0.5, using this upgrader from the Support page:
                     GarageBand 6.0.5
    GarageBand 6.0.5 will work well with your system.  But if your friend is using the newest GarageBand 10, this will not help. Then ask your friend to send you audio files for each track, so you can recreate the project from the audio.  Or your friend could also use GarageBand '11 for the projects you want to share, that will run well in all newer MacOS X versions, even with GarageBand 10.0 installed on the same system.
    -- Leonie

  • How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    Photos that were synced from a computer won't show for copying to a computer. If you want to copy them back then you will need a third-party app on your phone such as Simple Transfer which can copy them off via your wifi network. But photos are 'optimised' when they are synced to a device, any that you then copy back to a computer may not be exactly the same as they originally were on your computer (e.g. their dimensions might be different and their colours may look a bit different).

  • How can I remove computers from my itunes account when I no longer have the computers?

    How can I remove computers from my itunes account when I no longer have the computers?

    De-authorise all, then authorise the one you still have.

  • How can I transfer photos from my  iMac to my iPad and not lose the ones already stored on the iPad.

    How can I transfer photos from my  iMac to my iPad and not lose the ones already stored on the iPad?  When using iTunes to sync a folder from the iMac to the iPad it always removes anything previously synced.
    Help appreciated
    David

    I've just found out the reason for this behaviour. I am syncing from a computer which is different to the one I first synced with. iTunes can't cope with this situation so deletes anything synced from another source.

  • How do I transfer music from my itunes library  to my wife's on the same computer?

    How do I transfer music from my itunes library to my wife's on the same computer? I am trying to put the music that is on my phone on her phone.

    Has she transferred iTunes content to her iPhone from an iTunes library on another computer or from a different iTunes library on the same computer?
    If not, you transfer music to her iPhone from your iTunes library in the same way the music was transferred to your iPhone. If she has any iTunes content on her iPhone that was transferred from a different iTunes library, all iTunes content on her iPhone will be erased first.

  • How do I get connected to a server on my network via an IP address?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    I am new to Mac...How do I get connected to a server on my network via a hyper link IP address path?  When I try to open in a URL and login as a registered user with proper login it errors out saying there was a problem with connecting to the server?

    Some of the following is going to use some technical terms — this area is inherently somewhat technical. 
    If you don't understand some part of the following reply, please ask.
    Is this your own OS X Server system on your own network, or is this some other server within some larger organization? 
    You're posting this in the OS X Server forum, which is a software package that allows OS X systems to provide web-based and many other services; to become servers.
    If it's your OS X Server on your network, then the network and DNS configurations are suspect, or the server is somehow malfunctioning or misconfigured.   This is unfortunately fairly common, as some folks do try to avoid setting up DNS services.
    If it's a larger organization and somebody else is managing the server and the network, then you'll probably need to contact the IT folks for assistance; to learn the network setup and DNS requirements, and if there's a problem with the server itself.
    The basic web URL "hyper link IP address path" — without using DNS — usually looks something the following, where you'll need to replace 10.20.30.40 with the IP address of your server:
    http://10.20.30.40
    UptimeJeff has posted a URL that specifies the AFP file system; an OS X file share.  That's used if you're connecting to an Apple storage service somewhere on your network.  You might alternatively need to specify smb://10.20.30.40 or such, if it's a Windows file server.  (There can be additional requirements for connecting to Windows Server systems, too.)
    If there's local IT staff available here, please contact them for assistance.  If these are your own local systems and your own local OS X Server system, then some information on the server will be needed.  (If you're on a NAT'd network, you'll also need to get DNS services configured and working on your local OS X Server system and your network — you'll not be able to skip this step and reference ISP DNS servers here — or things can and usually will get weird.)

  • How do I open files from an external drive?  It's plugged into the second slot to the end.

    How do I open files from an external drive?  It's plugged into the second slot to the end.  Did I plug it into the right place and how do I find the drive when trying to attach a file in an email? 

    Files on an external hard drive open just like files on the internal drive - but I get the idea that you are having a problem just finding and seeing those files. Is that correct?
    What operating system is running on your MacBook?

  • How do i delete duplicates from my music library. After updating my iTunes the "Show Duplicates" option does not appear in the menu

    How do i delete duplicates from my music library. After updating my iTunes the "Show Duplicates" option does not appear in the menu

    If you are on Version 11.0.1 rather than 11 Apple put it back in
    View > Show Duplicates
    Option + View > Show Exact Duplicates
    so if you are on 11 upgrade to 11.0.1 and you will have it

Maybe you are looking for

  • NULL value not validated for a Required field

    Hi, I have added a MessageLovInput item to the expense header page (/oracle/apps/ap/oie/entry/header/webui/GeneralInformationPG), and have made the Required Value to True. But I do not get any error when I navigate to the next page without populating

  • New server and/or CA certificate for connection from custom authentication

    We are running Access Manager version 72005Q4 in the Sun ONE Web Server 6.1SP5 B06/23/2005 container with java build 1.5.0_07-b03. I run a custom authentication module which checks sessions against our university single sign on system which is CAS (f

  • Best practices to reduce downtime for Database releases(rolling changes)

    Hi, What are best practices to reduce downtime for database releases on 10.2.0.3? What DB changes can be rolling and what can't? Thanks in advance. Regards, RJiv.

  • Getting image stored in database !!

    Hey !! I'm really trying to solve so much problems i'm having with javafx !! So, like the title may suggest, i'm having problems as to get image from the database !! Everything seems fine but it tells me that there is "Exception while runing Applicat

  • Drag and drop into iTunes

    I used to be able to drag and drop a mp3 file from mail directly to iTunes. Not anymore. How can i save these music files to iTunes now? When I use the Lion save feature it takes so many more clicks and I'm not sure how to set up the folders so that