In browser trusted application Silverlight 5

Posted by Philippe on Stack Overflow See other posts from Stack Overflow or by Philippe
Published on 2011-12-20T03:32:30Z Indexed on 2012/04/05 23:30 UTC
Read the original article Hit count: 289

With the new Silverlight 5, we can now have a In-Browser elevated-trust application. However, I'm experiencing some problems to deploy the application.

When I am testing the application from Visual Studio, everything works fine because it automatically gives every right if the website is hosted on the local machine (localhost, 127.0.0.1).

I saw on MSDN that I have to follow 3 steps to make it work on any website:

  1. Signed the XAP - I did it following the Microsoft tutorial
  2. Install the Trusted publishers certificate store - I did it too following the Microsoft Tutorial
  3. Adding a Registry key with the value : AllowElevatedTrustAppsInBrowser.

The third step is the one I am the most unsure about. Do we need to add this registry key on the local machine or on the server ? Is there any automatic function in silverlight to add this key or its better to make a batchfile?

Even with those 3 steps, the application is still not working when called from another url than localhost.

Does anybody has successfully implemented a In-browser elevated-trust application? Do you see what I'm doing wrong?

Thank you very much!

Philippe,

Sources: - http://msdn.microsoft.com/en-us/library/gg192793(v=VS.96).aspx - http://pitorque.de/MisterGoodcat/post/Silverlight-5-Tidbits-Trusted-applications.aspx

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about elevated-privileges