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 153029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:43:42+00:00 2026-05-11T09:43:42+00:00

Making a request to a RESTful service in Silverlight with HttpWebRequest works well so

  • 0

Making a request to a RESTful service in Silverlight with HttpWebRequest works well so long as I don’t add any headers to the request.

As soon as I add a header using code like this

var webReq = (HttpWebRequest)WebRequest.Create(new Uri(_RemoteAddress, 'GetProviderMetadata')); webReq.Method = HttpMethodType.Get; webReq.Headers['SomeToken'] = 'someTokenValue'; 

I get the exception pasted at the bottom of this question as soon as EndGetResponse() is called. Anyone know why this is? Adding headers to get requests seems to work fine in normal .NET so I’m guessing it’s some sort of Silverlight limitation but I can’t find any documentation that clarifies.

   {System.NotSupportedException ---> System.NotSupportedException: Specified method is not supported.   at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)   at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)   at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)   --- End of inner exception stack trace ---   at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)   at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)   at System.Net.BrowserHttpWebRequest.<>c__DisplayClassd.<InvokeGetResponseCallback>b__b(Object state2)   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)}    [System.NotSupportedException]: {System.NotSupportedException ---> System.NotSupportedException: Specified method is not supported.   at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)   at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)   at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)   --- End of inner exception stack trace ---   at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)   at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)   at System.Net.BrowserHttpWebRequest.<>c__DisplayClassd.<InvokeGetResponseCallback>b__b(Object state2)   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)}    _className: 'System.NotSupportedException'    _data: {System.Collections.ListDictionaryInternal}    _dynamicMethods: null    _exceptionMethod: null    _exceptionMethodString: null    _helpURL: null    _HResult: -2146233067    _innerException: {System.NotSupportedException: Specified method is not supported.   at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)   at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)   at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)}    _message: ''    _remoteStackIndex: 0    _remoteStackTraceString: null    _source: 'System.Windows'    _stackTrace: {sbyte[192]}    _stackTraceString: null    _xcode: -532462766    _xptrs: 0    Data: {System.Collections.ListDictionaryInternal}    HelpLink: null    HResult: -2146233067    InnerException: {System.NotSupportedException: Specified method is not supported.   at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)   at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)   at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)}    Message: ''    Source: 'System.Windows'    StackTrace: '   at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)\r\n   at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\r\n   at Intellidimension.RdfEntity.Service.RemoteEntityServiceProviderClient.getProviderMetadataResponse(IAsyncResult result)\r\n   at System.Net.BrowserHttpWebRequest.<>c__DisplayClassd.<InvokeGetResponseCallback>b__b(Object state2)\r\n   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)\r\n   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)'    System.Runtime.InteropServices._Exception.HelpLink: null    System.Runtime.InteropServices._Exception.Source: 'System.Windows' 
  • 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. 2026-05-11T09:43:43+00:00Added an answer on May 11, 2026 at 9:43 am

    Silverlight only supports setting headers using the POST method not the GET method. This is due to a limitation in how the TCP/IP stack is implemented in Silverlight. It uses the browser extension APIs instead of going directly against the host OS’s APIs.

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

Sidebar

Related Questions

I am making a request to a service and getting a response. Service works
I am making restful requests in my silverlight app, I want to get information
I'm making a request via urllib2 that is coming back with the following headers:
I'm making a request to a website via the HttpWebRequest/HttpWebResponse objects. I'm making several
I'm making a request to the google closure compiler API service: $content = file_get_contents('file.js');
I am making request to web service and have to do this extending AsyncTask
In SOAP-UI I am making a request to a web service like this: <soapenv:Envelope
I am making a synchronous request to the web service and unable to show
I'm making a request from an UpdatePanel that takes more then 90 seconds. I'm
I am making a request to a CGI program using AJAX. The response sends

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.