Quantcast
Channel: Silverlight 4 webclient authentication - anyone have this working yet? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Toran Billups for Silverlight 4 webclient authentication - anyone have this working yet?

$
0
0

I found 2 issues that caused this request to throw the security exception

1) - In this video by Tim Heuer it turns out my VS2010 w/ Silverlight 4 toolkit installation didn't match the final build so I'm missing the option that shows up in the "out of browser settings" dialog that provides the checkbox for "Require elevated trust when running outside the browser".

In the video listed above Tim checks this so the Silverlight app can talk to the twitter API

But because my application didn't have this option I had to manually edit the xml file so it looked like the below. You can find this xml under properties in the project folder or inside visual studio directly.

<OutOfBrowserSettings ShortName="TrustedNetworkApp Application" EnableGPUAcceleration="False" ShowInstallMenuItem="True"><OutOfBrowserSettings.Blurb>TrustedNetworkApp Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb><OutOfBrowserSettings.WindowSettings><WindowSettings Title="TrustedNetworkApp Application" Height="480" Width="640" /></OutOfBrowserSettings.WindowSettings><OutOfBrowserSettings.SecuritySettings><SecuritySettings ElevatedPermissions="Required" /></OutOfBrowserSettings.SecuritySettings><OutOfBrowserSettings.Icons /></OutOfBrowserSettings>

Notice the **security settings ElevatedPermissions="Required"

After you save this it's equivalent to checking this as Tim did in the video.

2) - as I was watching that video by Tim I noticed that you have to debug this outside of the browser to get it working. So install the app and run it outside the browser. This app now works.

I'll write a short blog post to summarize my experience with the networking stack under the beta and link to it for anyone interested.

Update

I finally wrote a blog post about my experience building an out of browser twitter client using Silverlight 4 if anyone is interested.


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>