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

  • SEARCH
  • Home
  • 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 8019967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:33:14+00:00 2026-06-04T21:33:14+00:00

I am using WCF REST Service for my silverlight application. When I throw a

  • 0

I am using WCF REST Service for my silverlight application. When I throw a webfault exception with error code 500. The silver light displays the error message:’Error:404 File not found’. I did some research and found that it is the problem with browser i.e. the browser stack can only pass two response codes, 200 and 404 to any plugin here in my case its silverlight. That means when ever there is a webfault exception at the server side the SL will only display the message ‘File not found’. I want the error message to be passed to the client. One such solution is to pass the response code 200 and send the error message to the client attached to the return object of some similar logic like this.
I want know if there is anything else that is possible so that I dont have to change my class structure. Also I am returning JSON objects from the server. I basically need to SilverLight to get response codes other than 200 and 400 series.

  • 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-06-04T21:33:15+00:00Added an answer on June 4, 2026 at 9:33 pm

    Microsoft added a separate HTTP stack for your purpose when they released Silverlight 3.

    Specifying the HTTP stack is easy. You simply call the
    WebRequest.RegisterPrefix method, passing the ClientHttp object to
    specify client HTTP handling or a BrowserHttp object to specify
    browser HTTP handling. You do this before you make any web requests.

    The new stack has less limitations than the old one in that it can handle more HTTP methods and it can handle any HTTP return code. See the chart in the linked blog post for a more extensive comparison.

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

Sidebar

Related Questions

I have a typical Silverlight application with a WCF service and I am using
I'm using the WCF Rest service application project template in visual studio. I'm just
I was looking at using the WCF REST Service Application template to host all
I have a WCF rest service. I created it using 4.0 rest service application,
I created a WCF rest service, then called that from javascript using ajax. Now
I have a self hosted WCF Rest service that I am using to simulate
I am using WCF REST Start kit to build a RESTFul service. I defined
I'm interested in properly handling Faults within a WCF REST Service client. While using
I want to consume a WCF REST service using an AJAX call. Suppose I
I'm using WCF to create some REST service. One of the Rest Service method

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.