Click here to Skip to main content
15,891,184 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How can I prevent a user to click a button more than once Pin
Jeremy Likness25-Aug-09 10:03
professionalJeremy Likness25-Aug-09 10:03 
QuestionAdding the WPF Ribbon Bar as a resource for my other apps Pin
trey white18-Aug-09 7:11
trey white18-Aug-09 7:11 
AnswerRe: Adding the WPF Ribbon Bar as a resource for my other apps Pin
Pete O'Hanlon18-Aug-09 9:24
mvePete O'Hanlon18-Aug-09 9:24 
GeneralRe: Adding the WPF Ribbon Bar as a resource for my other apps Pin
trey white18-Aug-09 10:26
trey white18-Aug-09 10:26 
GeneralRe: Adding the WPF Ribbon Bar as a resource for my other apps Pin
Pete O'Hanlon18-Aug-09 10:46
mvePete O'Hanlon18-Aug-09 10:46 
GeneralRe: Adding the WPF Ribbon Bar as a resource for my other apps Pin
trey white18-Aug-09 11:00
trey white18-Aug-09 11:00 
GeneralRe: Adding the WPF Ribbon Bar as a resource for my other apps Pin
Pete O'Hanlon18-Aug-09 11:11
mvePete O'Hanlon18-Aug-09 11:11 
QuestionWebClient usage from Silverlight not working fo me (Security?) Pin
pisanis18-Aug-09 5:06
pisanis18-Aug-09 5:06 
Hi,

I have a strange problem I cannot seem to solve. I'm using, in Silverlight, and WebClient to invoke a REST service that returns an XML document.
(the example below shows this document as being accessible via the url: "http://localhost/persons.xml"

This is the callback code from a button defined in my XAML :

Private Sub getdata_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)

Dim wcProxy As New WebClient()
Dim Uri As New System.Uri("http://localhost/persons.xml")

'setup delegate
AddHandler wcProxy.DownloadStringCompleted, AddressOf wcProxy_DownloadStringCompleted

' invoke service
wcProxy.DownloadStringAsync(Uri)
End Sub

Private Sub wcProxy_DownloadStringCompleted(ByVal sender As Object, ByVal e As System.Net.DownloadStringCompletedEventArgs)

Dim doc As New XDocument
doc = XDocument.Parse(e.Result) <<< ERRORS HERE <<<<
...
...

End Sub

The error on the line marked above says:

An exception occurred during the operation, making the result invalid. Check InnerException for exception details.

and: e.Error.InnerException.Message says: "Security Error"


Not sure why this is. In at atempt to fix this, I have defined a file called 'clientaccesspolicy.xml' in my ASP.NET Web Application, with te following contents:


<access-policy>
<cross-domain-access>
<policy>
<allow-from>
<domain uri="*">

<grant-to>
<resource include-subpaths="true" path="/">





However - I'm not 100% sure if I need this at all, and even if I did, if I implemented it correctly.

I've made no other changes to the default .WEB project that the Silverlight 'New Project' creates for me.

Thanks - S.
AnswerRe: WebClient usage from Silverlight not working fo me (Security?) Pin
Mark Salsbery18-Aug-09 12:54
Mark Salsbery18-Aug-09 12:54 
GeneralRe: WebClient usage from Silverlight not working fo me (Security?) Pin
pisanis19-Aug-09 4:42
pisanis19-Aug-09 4:42 
QuestionProgramatically Adding Wpf Custom controls into vs2008 toolbox in windows application. Pin
sivat51818-Aug-09 0:13
sivat51818-Aug-09 0:13 
AnswerRe: Programatically Adding Wpf Custom controls into vs2008 toolbox in windows application. Pin
User 27100921-Aug-09 3:04
User 27100921-Aug-09 3:04 
GeneralRe: Programatically Adding Wpf Custom controls into vs2008 toolbox in windows application. Pin
sivat51826-Aug-09 21:47
sivat51826-Aug-09 21:47 
QuestionBinding images to an ImageButton at runtime Pin
Wolfram Steinke17-Aug-09 16:47
Wolfram Steinke17-Aug-09 16:47 
AnswerRe: Binding images to an ImageButton at runtime Pin
Pete O'Hanlon17-Aug-09 22:41
mvePete O'Hanlon17-Aug-09 22:41 
GeneralRe: Binding images to an ImageButton at runtime Pin
Wolfram Steinke18-Aug-09 14:15
Wolfram Steinke18-Aug-09 14:15 
GeneralRe: Binding images to an ImageButton at runtime Pin
Christian Graus18-Aug-09 15:24
protectorChristian Graus18-Aug-09 15:24 
GeneralRe: Binding images to an ImageButton at runtime Pin
Pete O'Hanlon18-Aug-09 21:42
mvePete O'Hanlon18-Aug-09 21:42 
GeneralRe: Binding images to an ImageButton at runtime Pin
Wolfram Steinke19-Aug-09 1:43
Wolfram Steinke19-Aug-09 1:43 
GeneralRe: Binding images to an ImageButton at runtime Pin
Pete O'Hanlon19-Aug-09 2:22
mvePete O'Hanlon19-Aug-09 2:22 
GeneralPaint.Net for WPF Pin
sufiyan_ansari117-Aug-09 6:27
sufiyan_ansari117-Aug-09 6:27 
GeneralRe: Paint.Net for WPF Pin
Christian Graus17-Aug-09 16:54
protectorChristian Graus17-Aug-09 16:54 
QuestionWPF user interface stored in DB Pin
kstxx17-Aug-09 0:49
kstxx17-Aug-09 0:49 
AnswerRe: WPF user interface stored in DB Pin
Pete O'Hanlon17-Aug-09 1:13
mvePete O'Hanlon17-Aug-09 1:13 
GeneralRe: WPF user interface stored in DB Pin
kstxx17-Aug-09 1:19
kstxx17-Aug-09 1:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.