Tagged Questions
0
votes
3answers
439 views
Synchronously get picture (from Uri)
At the execution of my application, I need to know if a picture (from a specified URI) is available before I decide if I take the live picture or a "is unavailable picture".
Because the picture is ...
1
vote
2answers
160 views
Is it possible to make synchronous network call on ui thread in wpf (windows phone)
Is it possible to make a synchronous network call on UI thread in WPF (Windows Phone 8).
(I know it's cons, but still i need this functionality to make it work with some ported code)
Tried using ...
3
votes
1answer
487 views
WP7: can't get img from httpget url using webclient.OpenReadAsync
I need to get image from this API on Windows phone7 appplication,
getvmsimg
Description :
API for get variable message sign (VMS) as img
URL:
...
3
votes
1answer
341 views
Security rules for subclassing transparent type with safe-critical constructor in Silverlight
In the Silverlight (v4.0) security model, Shawn Farkas says of deriving from types:
[...] we see that
application types may only derive from
other application types or transparent
platform ...
3
votes
1answer
705 views
Silverlight: Encoding a webClient stream
I've been trying to get this to work, but I'm very frustrated at this point. I am a beginner in this field, so maybe I'm just making mistakes.
What I need to do is to take in a website .html and ...
2
votes
1answer
245 views
Silverlight and ATOM feeds that require authentication
I am building a simple feed reader application that needs to access an ATOM feed that requires authentication. I was going down the route of using the WebClient class and found a Credential property ...
1
vote
1answer
156 views
A simple way to bind data revived through xml into a stack panel
I am quite new to Silverlight, but I do have a grasp on it. My question is how to take the XML I have downloaded via Webclient, and place it into custom made controls? For example, the XML contains ...
1
vote
1answer
56 views
What's the difference between posting from a html-form and using the webclient class?
When I Inspect with firebug I notice that when posting with a regular html form it sets the contenttype to application/x-www-form-urlencoded, but when using the Webclient class it doesn't. And when i ...
1
vote
1answer
225 views
does SoapClient run on UI thread just like WebClient?
I have this confusion that makes me uncertain about the origin of performance lag in my Windows Phone 7 application.
We all know WebClient runs on UI thread and is evil and should be avoided. But I ...
0
votes
1answer
49 views
SILVERLIGHT sending file to server
I am using PhotoChooserTask to select image from windows phone and then I want to send this file/image to the server.
WebClient has method UploadFile but WebClient in Silverlight has not this method.
...
0
votes
1answer
70 views
Render SSRS report in Silverlight app securely, via WebClient byte[] or alternative
I'm trying to implement a SSRS reporting feature in a Silverlight 5 application, which is operating in browser mode.
Attempt 1)
The initial plan was to render the page using the URL technique on the ...
0
votes
1answer
31 views
Manipulating txt file from silverlight application ?
I'am trying to modify a txt file located on my server ,for that i am using this code :
WebClient webClientvent = new WebClient();
webClientvent.OpenWriteCompleted += new ...
0
votes
1answer
504 views
How to use WebClient to POST and get a response in Silverlight
Is it possible to use WebClient to POST to a server and get a response?
I'm trying to upload a file via Silverlight to an MVC app. When I use the WebClient I can successfully upload the file but I ...
0
votes
1answer
212 views
How to make a web request using https in silverlight
I have
var client = new WebClient();
client.DownloadStringCompleted += (s, ea) =>
{
var ret = Newtonsoft.Json.JsonConvert.DeserializeObject(ea.Result);
...
0
votes
1answer
233 views
Silverlight 4: Consuming a webservice in .web
Is it possible to call a webservice if you reference it in .Web?
If yes, how can I access it in MainPage.xaml.cs?
The reason why I am asking this is for easy changing of config in deployment
...
0
votes
1answer
428 views
Can't download xml from sharepoint with silverlight.
EDIT: Switched to Silverlight 4 and that got me a little further.
I have an xml that stores high scores in a sharepoint library. The sharepoint site is https and I can hit the "copy shortcut" of the ...
0
votes
1answer
498 views
Silverlight: Difficulty with WebClient
I'm having a really weird issue. I must be doing something really obvious that is wrong, but I can't see it. I'm building a wp7 app which currently runs in the emulator.
I have a URL that returns ...
0
votes
1answer
978 views
Opening an image on demand with Silverlight 2 WebClient
I'm trying to show some images on my silverlight application whenever user wants to. The images are in a folder in my silverlight project and I don't want the user to download all of them when he/she ...
2
votes
0answers
336 views
Silverlight - How to get Webresponse string from WebClient.UploadStringAsync
public void Register(string email, string name, string hash)
{
string registerData = "{\"email\":\"" + email + "\",\"name\":\"" + name + "\",\"hash\":\"" + hash + "\"}";
...
1
vote
0answers
135 views
Silverlight WebClient.DownloadStringAsync() only work out of browser
My Silverlight 5 app uses WebClient to upload and download json content. POST requests are working fine, however GET request are working only in out-of-browser context.
Here is my server's ...
1
vote
0answers
765 views
Using WebClient to download string from ASP.NET Web Service Error
I have a simple ASP.NET Web Service:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;
using ...
0
votes
0answers
132 views
Getting html data with DownloadStringCompletedEventArgs
I want to get some data from a website but my code can't get url. Because if state is always false and my textbox called "weather1" always display "ece".
When I make the value of textbox as e.Result ...
0
votes
0answers
111 views
Windows Phone 7 get MP3 from uri
I'm trying to get an MP3 from a uri downloaded to the Isolated Storage on a windows phone app. It's quite a large file (podcast), so I'm not sure if there's any limits to what I can and cannot store ...
0
votes
0answers
171 views
Silverlight external web service request in-browser not working, works OOB
I am writing a small application that requests Google Finances currency exchange service from this URL: http://www.google.com/ig/calculator?q=1USD=?GBP
The code is like:
WebClient googlews = new ...
0
votes
0answers
92 views
Silverlight file upload/population concurrency issue
I'm trying to create a multi-file upload control. Technically it works, but it seems like the webclient is still working on uploading items. When my service tries to repopulate the listbox with the ...
0
votes
0answers
359 views
Trouble downloading file from server Silverlight (3.0)?
I'm having trouble downloading a file. I can't find any descent examples online so between bad ones and my upload code (which works) I have what you see below. It isn't making it to the handler at all ...
0
votes
0answers
185 views
WebClient callback is not called in Silverlight application
I have an issue using a Enterprise library integration pack in combination with prism.
Basically, I'm trying to use download the configuration file using WebClient. However, the webclient callback ...
0
votes
0answers
1k views
System.Reflection.TargetInvocationException
In this link - OP is inquiring about error:
System.Reflection.TargetInvocationException:
An exception occurred during the
operation, making the result invalid.
Check InnerException for ...
0
votes
0answers
264 views
Silverlight WebClient issue when remote server is down
I am developing an application in Silverlight which communicates with a remote server over SSL, here is the code
private void button1_Click(object sender, RoutedEventArgs e)
{
...
-1
votes
0answers
18 views
SilverLight XML application, URI is empty
I've read a lot of forum topics about this but I did not find any answer on my question.
I'm trying to read an XML File using webclient in the next way...
WebClient xmlClient = new WebClient();
...